Solved

How to reduce TEMP01.DBF?

Posted on 2004-05-01
1
1,595 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.

Join & Write a Comment

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…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

757 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

23 Experts available now in Live!

Get 1:1 Help Now