Solved

How to reduce TEMP01.DBF?

Posted on 2004-05-01
1
1,606 Views
Last Modified: 2012-06-27
Hello,
I've got two temporary tablespaces TEMP and TEMP02:

select file_name from dba_temp_files where tablespace_name = 'TEMP';
C:\ORACLE\ORADATA\OEA1\TEMP01.DBF

select file_name from dba_temp_files where tablespace_name = 'TEMP02';
F:\DATOSORA\TEMP02:DBF

User System uses tablespace TEMP02 and user Sys uses tablespace TEMP.
Problem is TEMP01.DBF is quite large and I would like to reduce it. But how? Maybe if I do:

alter user SYS temporary tablespace Another_Table_Space;

I would spoil a lot of things... Could anyone give me an example of what to do, please?
Thanks!
 
0
Comment
Question by:mogulwindows
1 Comment
 
LVL 12

Accepted Solution

by:
geotiger earned 95 total points
ID: 10969571
Here is the excerption from this Q&A: http://www.experts-exchange.com/Databases/Oracle/Q_20827160.html?query=reduce+temp+tablespace&searchType=all

1. shutdow the database instance to make sure there is nobody using the temp tablespace at this very moment.l
2. say your current , giant temporary tablespace is called "TEMP",

SQL> create temporary tablespace temp2 tempfile '<file_path_to_new_temp_file>' size 100M extent management local uniform size 6M;

SQL> alter database default temporary tablespace temp2;
SQL> drop tablespace TEMP;

--In the OS level, delete the temp file.
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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Oracle Pivot 2 43
Read only access to a Procedure in oracle? 4 48
Bash Script to Analyze Oracle Schemas 11 84
How to free up undo space? 3 29
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

895 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

14 Experts available now in Live!

Get 1:1 Help Now