- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ORA-1652 Signaled during index rebuild
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2003 11:30 PM
тАО07-24-2003 11:30 PM
ORA-1652 Signaled during index rebuild
I was trying to rebuild one of my large index when I encountered
ORA-1652: unable to extend temp segment by 102400 in tablespace GENINDEX
in my alert log file.
I don't think there could be any temp (sort) segment in an index tablespace. Or is there?
Is Oracle trying to use the temp (sort) segment during index rebuild and failed?
During index rebuild, does Oracle keep the old index in the same tablespace while the new index is being built? And if so must we have free index tablespace in order to do index rebuild?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2003 11:56 PM
тАО07-24-2003 11:56 PM
Re: ORA-1652 Signaled during index rebuild
ciao
Claudio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 12:05 AM
тАО07-25-2003 12:05 AM
Re: ORA-1652 Signaled during index rebuild
First, there are the temporary segments that are used to store partial sort data when the SORT_AREA_SIZE is too small to process the complete sort set. These segments are built in the user's default TEMPORARY tablespace.
Second, as the index is being rebuilt, it uses a segment which is defined as a temporary segment until the rebuild is complete. Once this segment is fully populated, the old index can be dropped and this temporary segment is
redefined as a permanent segment with the index name. The error you are seeing is probably due to there being insufficient room in the index's tablespace to hold both the original index and the new version concurrently. The new version of the index, currently a temp segment, will be in the tablespace where the index is required (Oracle7) or in the default user tablespace (Oracle8).
However the tablespace referenced in the message can be the user's default tablespace (Oracle8) or the index tablespace (Oracle7).
This behaviour is different for different Oracle versions, what is your database verion?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 12:10 AM
тАО07-25-2003 12:10 AM
Re: ORA-1652 Signaled during index rebuild
The problem may be that the user you use to do the rebuild doesn't have the right setting for temporary tablespace. You might want to take a look at that first ...
Regards,
Tom Geudens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 12:34 AM
тАО07-25-2003 12:34 AM
Re: ORA-1652 Signaled during index rebuild
ORA-1652: unable to extend temp segment by 102400 in tablespace GENINDEX
means that my index tablespace is not big enough to accomodate both the old and new indexes during rebuild
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 12:55 AM
тАО07-25-2003 12:55 AM
Re: ORA-1652 Signaled during index rebuild
So, first of all, I would suggest to to check the current storage clause in dba_indexes:
Select OWNER
,INDEX_NAME
,TABLESPACE_NAME
,INITIAL_EXTENT
,NEXT_EXTENT
,MIN_EXTENTS
,MAX_EXTENTS
,PCT_INCREASE
from dba_indexes;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 01:07 AM
тАО07-25-2003 01:07 AM
Re: ORA-1652 Signaled during index rebuild
SELECT SEGMENT_NAME, SEGMENT_TYPE, BYTES FROM DBA_SEGMENTS WHERE SEGMENT_NAME = '
the size is shown in bytes. The new index will (probably) need the same amount of space; if in GENINDEX tablespace there isn't enough space, then you know it's a space problem. If it is so, you can rebuild that index in another tablespace (so the old index will be deleted from GENINDEX) an then rebuild it again in GENINDEX. Or you can extend the GENINDEX tablespace.
hth
Claudio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 01:27 AM
тАО07-25-2003 01:27 AM
Re: ORA-1652 Signaled during index rebuild
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 02:49 AM
тАО07-25-2003 02:49 AM
Re: ORA-1652 Signaled during index rebuild
Could be two things.
Either the number of extends for the index itself is not big enough or you do not have enough bytes free in your tablespace.
you can test the tablespaces with this little sql :
set termout off
set feedback off
set pages 65
set lines 60
ttitle " Free space report "
column "TS Name" format a20
column "Sum MB" format 99999.99
column "Max MB" format 99999.99
spool /var/tmp/free1&&2..lst.&&1
select tablespace_name "TS Name",
sum(bytes) / 1048576 "Sum MB",
max(bytes) / 1048576 "Max MB"
from sys.dba_free_space
group by tablespace_name
;
spool off
set termout on
set feedback on
exit
Rgds
alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 02:56 AM
тАО07-25-2003 02:56 AM
Re: ORA-1652 Signaled during index rebuild
first of all,
why are you rebuilding indexes?
what is the goal behind that?
do you have metrics that prove you are doing more good than harm?
did you know that rebuilding indexes can have a massive negative impact on your performance?
are you using locally managed tablespaces (LMT)?
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 10:34 AM
тАО07-25-2003 10:34 AM
Re: ORA-1652 Signaled during index rebuild
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2003 05:03 AM
тАО07-27-2003 05:03 AM
Re: ORA-1652 Signaled during index rebuild
While rebuilding the Index if you use the following command without tablespace option.
SQL> alter index
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2003 08:13 AM
тАО07-28-2003 08:13 AM
Re: ORA-1652 Signaled during index rebuild
hth,
Stan