Solved

Temporary Tablespace is Empty

Posted on 2013-06-21
7
860 Views
Last Modified: 2013-06-21
I'm getting an error.  I've researched it but still not sure what to do.

I run...

select dbms_metadata.get_ddl ('PACKAGE_BODY','<<package name>>') from dual

And I get...

ORA-25153: Temporary Tablespace is Empty
ORA-06512: at "SYS.DBMS_METADATA", line 5088
ORA-06512: at "SYS.DBMS_METADATA", line 7589
ORA-06512: at line 1
25153. 00000 -  "Temporary Tablespace is Empty"
*Cause:    An attempt was made to use space in a temporary tablespace with
           no files.
*Action:   Add files to the tablespace using ADD TEMPFILE command.
0
Comment
Question by:patriotpacer
  • 4
  • 3
7 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39266093
Looks like you don't have a temporary tablespace or it is offline.

Possible the user you are using doesn't have a default temp tablepsace.

 select tablespace_name, status from dba_temp_files;

select temporary_tablespace from dba_users where username='SOME_USERNAME';
0
 

Author Comment

by:patriotpacer
ID: 39266105
>> select tablespace_name, status from dba_temp_files;

Brings back nothing


>>select temporary_tablespace from dba_users where username='SOME_USERNAME';

I ran with my username and get the result back of "temp"


BTW - this is the crap I hate about Oracle.
0
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 39266118
>>Brings back nothing

Then you need to create a temp tablespace:

Creating a Locally Managed Temporary Tablespace
http://docs.oracle.com/cd/E11882_01/server.112/e25494/tspaces002.htm#ADMIN11366
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:patriotpacer
ID: 39266143
Why am I getting this when I just run a query to see a package contents?
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39266157
My guess is dbms_metadata creates temporary objects internally.

Some objects cannot be created in a permanent tablespace.
0
 

Author Comment

by:patriotpacer
ID: 39266175
Thx, slightwv.

I'll accept your answer, but I can't test it.  Says I have ""insufficient privileges."

Never thought this would be so hard.
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39266185
>> Says I have ""insufficient privileges."

You need to be SYS to create tablespaces.  If you don't have SYS access, have your DBA create it for you.

Any database created should have a TEMP tablespace.  Since yours doesn't, I would try my best to figure out why.  This can do bad things to your database...
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now