| ORA-1652 Error Troubleshooting [ID 793380.1] | |||||
| 修改时间 12-JUL-2010 类型 TROUBLESHOOTING 状态 PUBLISHED | |||||
In this Document
Purpose
Last Review Date
Instructions for the Reader
Troubleshooting Details
References
This document can be used to approach the 'ORA-1652: unable to extend temp segment by %s in tablespace %s' error in non-RAC environments.
For RAC environments, use Note 280578.1 - Troubleshooting ORA-1652 Errors in RAC.
Error explanation
This error is fairly self explanatory - we cannot get enough space for a temporary segment. The size reported in the error message is the number of contiguous free Oracle blocks that cannot be found in the listed tablespace.
How to approach the ORA-1652 error
There are two views in the database that help keep track of the free space in the temporary tablespace: v$sort_usage and v$tempseg_usage (from 9i onwards). In order for the approach to be relevant, the following investigation steps should be followed when the error occurs (i.e. as soon as the problem is spotted and before any sql performing a sort finishes) :
select TABLESPACE_NAME,TOTAL_BLOCKS,USED_BLOCKS,FREE_BLOCKS from v$sort_segment; In the process of diagnostic and tuning, the resumable statement feature can be useful. It allows the DBA, once having applied the appropriate solution to the space allocation issue, to resume the suspended transaction which does not lose all the work done previously. By querying dba_resumable one can find the statement that is executed when ORA-1652 occurs. See Note 136941.1 - Using RESUMABLE Session to Avoid Transaction Abort Due to Space Errors.
There are two ways of solving this error:
Note that the extents allocated for a user's sort
segment are NOT deallocated but are marked as FREE from performance
reasons. The FREE extents can be further used by other users that are
executing sort
operations. After the database restart the allocated extents are NOT released either but are FREE to be reused.
Hence,
seeing the physical space of the temporary tablespace fully allocated
is not a reason to be concerned per se. The above query of
V$SORT_SEGMENT should be used to establish the free space inside the
temporary tablespace.
Known issues
Note 463819.1 - Database HANG After Migrating to 10.2 : ORA-1652
Note 164850.1 - ORA-01652 in Resumable Statements Prevents any SELECT on DBA_RESUMABLE View
Note 750209.1 - Temp LOB space not released after commit: ora-1652 being hit
|
产品
| |||
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/161195/viewspace-1053403/ ,如需转载,请注明出处,否则将追究法律责任。