Q
Problem solve Get help with specific problems with your technologies, process and projects.

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.

Dig Deeper on Oracle database design and architecture

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.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close