Operating System - HP-UX
1748180 Members
3772 Online
108759 Solutions
New Discussion юеВ

Re: ORA-1652 Signaled during index rebuild

 
Stan_17
Valued Contributor

Re: ORA-1652 Signaled during index rebuild

Hi,

The problem is 'GENINDEX' ran out of space. make sure to have additional space in genindex that is, equivalent size of the index being rebuilt. Reason being, oracle never drops the old index until the new index is built sucessfully in GENINDEX tablespace.

yes, index creation/rebuild uses, users default temp tablespace for creating indexes initially which you can monitor that in v$sort_segment, then once build it updates seg$ to make it permanant segments in GENINDEX tablespace and releases the temp segments for others to use. when all this goes through, it finally drops the old index.

hth,
Stan
KVS Raju
Advisor

Re: ORA-1652 Signaled during index rebuild

Hi,

While rebuilding the Index if you use the following command without tablespace option.
SQL> alter index rebuild ;

System will take the user default tablespace for rebuilding the index.

If the TEMPORARY TABLESPACE is of type TEMPORARY, the space is not released
until the instance is shutdown. If the TEMPORARY TABLESPACE is of type
PERMANENT, then cleanup is performed by SMON after completion of the process
using it.

A sort segment is created by the first statement that uses a TEMPORARY
tablespace for sorting, after startup. These are not released until the database is restarted. The view V$SORT_SEGMENT can be used to see how many of the currently allocated sort segments are being used.

To find out if a TEMP segment is FREE or being USED and also in which tablespace the segment resides, query the new dynamic performance view V$SORT_SEGMENT.
Time and Tide wait for none
Stan_17
Valued Contributor

Re: ORA-1652 Signaled during index rebuild

i should have been wary in saying "releases the temp segments for others to use" -- i meant, the allocated extents will get reused by others.

hth,
Stan