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 first published in October 2004

Dig deeper on Oracle database design and architecture

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close