Home » RDBMS Server » Server Administration » Urgent - Need to manually shrink Temporary Space
icon5.gif  Urgent - Need to manually shrink Temporary Space [message #110983] Fri, 11 March 2005 11:53 Go to next message
hueymoo
Messages: 3
Registered: March 2005
Location: Goderich, ON
Junior Member
I have a huge temporary tablespace (no one has been monitoring it) and it has caused my disk to fill up. I want to shrink it and the corresponding datafile, but this is my only temporary tablespace and is, of course, the default.
What is the best way to do this.
Thanks,
Darlene
Re: Urgent - Need to manually shrink Temporary Space [message #110984 is a reply to message #110983] Fri, 11 March 2005 12:00 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
create another temp tablespace with the size you want.
make it defualt.
drop the old temp tablespace.

refer the administration manual for syntax
Re: Urgent - Need to manually shrink Temporary Space [message #110986 is a reply to message #110984] Fri, 11 March 2005 12:08 Go to previous messageGo to next message
hueymoo
Messages: 3
Registered: March 2005
Location: Goderich, ON
Junior Member
Since the disk is full, can I drop the space first and then recreate it?
Re: Urgent - Need to manually shrink Temporary Space [message #110999 is a reply to message #110986] Fri, 11 March 2005 14:24 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
>>create another temp tablespace with the size you want.
which means a temp tablespace of lesser size.
drop the tablespace;
create a new one.

Re: Urgent - Need to manually shrink Temporary Space [message #111129 is a reply to message #110983] Mon, 14 March 2005 02:03 Go to previous messageGo to next message
easywebtech123
Messages: 22
Registered: March 2005
Location: c
Junior Member
I had the same issue. Pls. keep in mind following things.

temporary tablespace use to store temporary data when you run sqls.
So after db restart, there should not be data in the temp table space.
But it can't reduce the datafile size after expand.
So you have to run below command manualy to reduce it.You can reduce what ever you need, but again it will increase depend on the sqls you run.

alter database datafile 'D:\ORACLE\ORADATA\....\TEMP01.DBF' resize 514M;

webmaster
http://www.easywebtech.com
Re: Urgent - Need to manually shrink Temporary Space [message #111175 is a reply to message #110983] Mon, 14 March 2005 08:19 Go to previous messageGo to next message
hueymoo
Messages: 3
Registered: March 2005
Location: Goderich, ON
Junior Member
Thanks to both of you for your advice.
I was able to recreate my temp space to 500MB and this morning, after a full weekend of loads, it is still sitting at only 10% of it's capacity. We still need to track down how it got so big in the first place, but for now we are at least able to operate.
Thanks again,
Darlene
Re: Urgent - Need to manually shrink Temporary Space [message #111674 is a reply to message #110983] Fri, 18 March 2005 09:56 Go to previous message
smartin
Messages: 1803
Registered: March 2005
Location: Jacksonville, Florida
Senior Member
You might want to prevent it from auto extending...It is probably just one large runaway query that is doing it to you.
Previous Topic: Which parameter file
Next Topic: Calculating SGA MAX Size
Goto Forum:
  


Current Time: Fri Sep 27 02:32:32 CDT 2024