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 )

 

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Your email address will not be published. Required fields are marked *