What if ora-01652 cannot extend the temp segment through 128?

Time:2021-10-17

An error is reported when Oracle 11g database is restored with impdp:

ORA-39171: Job is experiencing a resumable wait.

ORA-01652: unable to extend temp segment by 128 in tablespace TEMP

ORA-39171: Job is experiencing a resumable wait.

ORA-01652: unable to extend temp segment by 128 in tablespace TEMP

ORA-39171: Job is experiencing a resumable wait.

ORA-01652: unable to extend temp segment by 128 in tablespace TEMP

The reason for the error is that the temp space is not enough. Just increase the temp space.

SQL> alter database tempfile ‘/data/oracle/oradata/WMSTEST/WMS_USER_TEMP.ora’ resize 25000m;

Database altered.

View the usage of page tour space in temp table:

SELECT D.TABLESPACE_NAME,SPACE “SUM_SPACE(M)”,BLOCKS SUM_BLOCKS,

USED_SPACE “USED_SPACE(M)”,ROUND(NVL(USED_SPACE,0)/SPACE*100,2) “USED_RATE(%)”,

NVL(FREE_SPACE,0) “FREE_SPACE(M)”

FROM

(SELECT TABLESPACwww.pizei.comE_NAME,ROUND(SUM(BYTES)/(1024*1024),2) SPACE,SUM(BLOCKS) BLOCKS

FROM DBA_TEMP_FILES

GROUP BY TABLESPACE_NAME) D,

(SELECT TABLESPACE_NAME,ROUND(SUM(BYTES_USED)/(1024*1024),2) USED_SPACE,

ROUND(SUM(BYTES_FREE)/(1024*1024),2) FREE_SPACE

FROM V$TEMP_SPACE_HEADER

GROUP BY TABLESPACE_NAME) F

WHERE D.TABLESPACE_NAME = F.TABLESPACE_NAME(+);

TABLESPACE_NAME SUM_SPACE(M) SUM_BLOCKS USED_SPACE(M) USED_RATE(%) FREE_SPACE(M)

TEMP 10000 1280000 658 6.58 9342

SEC_DEV_TEMP 0000 1280000 100 1 9900

WMS_USER_TEMP 25000 3200000 1 0 24999

WMS_DEV_TEMP 10000 1280000 1866 18.66 8134