ORA-25153 Temporary Tablespace is Empty Error in Oracle

When executing SQL query, the following Oracle error may appears:

ORA-25153: Temporary Tablespace is Empty

The cause for the ORA-25153 error is because attempt was made to use space in a temporary tablespace with no files (no datafiles defined).

To solve the problem, the solution is just by adding files (datafiles) to the TEMP tablespace by using ADD TEMPFILE command, or by using “Add Datafiles” in Oracle Enterprise Manager.

If you check and found that TEMP tablespace already has data files, check the default temporary tablespace for all users and your database and set the default temporary tablespace to a valid temporarary tablespace.

To check the default temporary tablespace of the database:

SQL> select property_name, property_value from database_properties;

The SQL will return the following results, look for DEFAULT_TEMP_TABLESPACE for the setting:

PROPERTY_NAME PROPERTY_VALUE
—————————— ——————————
DICT.BASE 2
DEFAULT_TEMP_TABLESPACE TEMP
DBTIMEZONE +01:00
NLS_NCHAR_CHARACTERSET AL16UTF16
GLOBAL_DB_NAME ARON.GENERALI.CH
EXPORT_VIEWS_VERSION 8
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET WE8ISO8859P1
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_RDBMS_VERSION 9.2.0.6.0

If default temporary tablespace is wrong the alter it with the following command:

SQL> alter database default temporary tablespace temp;

To check default temporary tablespace for all users of the database:

SQL> select username, temporary_tablespace, account_status from dba_users;

will return the following result, check if all users TEMPORARY_TABLESPACE is set to correct settings:

USERNAME TEMPORARY_TABLESPACE ACCOUNT_STATUS
—————————— —————————— ——————————–
SYS TEMPRY OPEN
SYSTEM TEMP OPEN
OUTLN TEMP OPEN
DBSNMP TEMP OPEN
DBMONITOR TEMP OPEN
TEST TEMP OPEN
WMSYS TEMP EXPIRED & LOCKED

If wrong temporary tablespace is found, alter it with the correct tablespace name (for example, sys) with the following SQL:

SQL> alter user sys temporary tablespace temp;

Alternatively, recreate or add a datafile to your temporary tablespace and change the default temporary tablespace for your database;

SQL> drop tablespace temp including contents and datafiles;

SQL> create temporary tablespace temp tempfile ‘/db/temp01.dbf’ size 100m autoextend off extent management local uniform size 1m;

SQL> alter database default temporary tablespace temp;


3 Responses to “ORA-25153 Temporary Tablespace is Empty Error in Oracle”

  1. atanu
    September 19th, 2008 16:15
    3

    very informative
    helps to find out
    why wrong and what to do to overcome

  2. Sharath
    May 7th, 2008 13:28
    2

    Hi,

    Thank you for such clear details.
    It helped me solve a problem in SAP BW system.

    Regards
    Sharath

  3. srinivas
    January 28th, 2008 17:52
    1

    very good informative articale.
    thanks
    srinivas

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

ora-25153 - ORA-25153: Temporary Tablespace is Empty - ora-25153 temporary tablespace is empty - temporary tablespace is empty - ora 25153 - ora 25153 temporary tablespace is empty - ORA-25153: Temporary Tablespace is Empty - ora-25153 temporary tablespace is empty oracle - java.sql.SQLException: ORA-25153: Temporary Tablespace is Empty - ORA-25153 - ora-25153 solution - ORA25153 - oracle ora-25153 temporary tablespace is empty - oracle temporary tablespace is empty - temp tablespace is empty - "ORA-25153: Temporary Tablespace is Empty" - error ora-25153 temporary tablespace is empty - how to check temporary tablespace - oracle ora-25153 - check default temporary tablespace - oracle 25153 - ORA-25153: - tablespace empty - oracle error 25153 - ORA-25153: Temporary Tablespace is Empty - how to check temp tablespace usage - ORA- 25153 - 25153 - Database error 25153 - ORA-25153- Temporary Tablespace is Empty - tempory table space is empty oracle - ORA-25153: Temporary Tablespace is Empty, - how to check temp tablespace usage in oracle - oracle ORA-25153: Temporary Tablespace is Empty - SAP ORA-25153: Temporary Tablespace is Empty - temporary tablespace empty - ORA-25153 - oracle "Temporary Tablespace is Empty" - problem dropt temporary tablespace - Error - ORA-25153: Temporary Tablespace is Empty - ORA-25153 -bc - v$ view database default temporary tablespace - how t o check the default temporary table space - Temporary Tablespace si Empty - all - clear + temporary + oracle + 9i - how to check oracle temp tablespace - ora-25153 temporary tablespace - temporary tablespace empty emca - (Bridge ODBC-JDBC)(ORA-25153: Temporary Tablespace is Empty ) -