Site icon IT Tutorial

ORA-1652: unable to extend temp segment

I got “ORA-1652: unable to extend temp segment” error in Oracle database.

 

ORA-1652: unable to extend temp segment

 

Details of error are as follows.

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

Cause: Failed to allocate an extent of the required number of blocks for a temporary segment in the tablespace indicated.

Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the tablespace indicated.





 

 

unable to extend temp segment

This ORA-1652 errors are related with the required number of blocks for a temporary segment in the tablespace indicated.

To solve this error, Use ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the tablespace indicated as follow.

 

Check your temp tablespaces and its size.

select file_name,tablespace_name,bytes/power(2,30), maxbytes/power(2,30),autoextensible from dba_temp_files;

If you use the Oracle ASM, you can add the datafile as follows.

ALTER TABLESPACE TEMP ADD TEMPFILE '+DATA' SIZE 100M AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED;

 

If you use file system, then add tempfile as follows.

ALTER TABLESPACE TEMP ADD TEMPFILE '/oradata/datafiles/temp03.dbf' SIZE 100M AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED;

 

 

You can read the following post if you want to learn more details about Temp tablespace.

How to Drop and Recreate Temp Tablespace in Oracle Database

 

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

Exit mobile version