Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to reduce TEMP01.DBF?

Posted on 2004-05-01
1
Medium Priority
?
1,711 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 380 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
Suggested Courses

916 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