Q

Calculating space needed to create index

I need to create an index for over 332 million of records. The question is, how can I calculate the space needed to create the index?

I need to create an index for over 332 million of records. The question is, how can I calculate the space needed to create the index? Actually, Oracle gives me the ORA-01652 error, and it says that there isn't enough space in tablespace TEMP. So, I need to know how much free space to allocate in TEMP to create the index.
When you create the index, Oracle performs a full table scan, collecting the smbolic key and ROWID for each row in the table. Plus, Oracle writes the TEMP segments in discontiguous segments. A rough estimate is to multiply the ROWID*symbolic_key*num_rows, times a fudge factor of 1.5.
This was last published in October 2004

Dig Deeper on Oracle database design and architecture

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close