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.

    Requires Free Membership to View

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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

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: