How to reduce size of TEMP01.DBF? [message #503140] |
Wed, 13 April 2011 03:23 |
ibanpaf
Messages: 11 Registered: September 2008 Location: peshawar pakistan
|
Junior Member |
|
|
hi i am using oracle 8.1.5 database and my temp01.dbf file size is increased upto 19.8 GB now i want reduce its size can you help me.
|
|
|
|
|
Re: temp01.dbf' [message #503181 is a reply to message #503177] |
Wed, 13 April 2011 06:54 |
|
Michel Cadot
Messages: 68718 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Increase the size of the file or add a new file to the tablespace.
Also you MUST post the complete error message and statement you executed when the error came.
Regards
Michel
[Updated on: Wed, 13 April 2011 06:57] Report message to a moderator
|
|
|
|
|
Re: temp01.dbf' [message #503196 is a reply to message #503192] |
Wed, 13 April 2011 07:57 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
You see, the complete error message changes the answer? The problem is with TEMP space in SYSTEM tablespace, not TEMP tablespace.
Are you running a giant query void of proper joins that is giving a Cartesian product?
How about answering the question of what query you were running when this occurred?
|
|
|
Re: temp01.dbf' [message #503197 is a reply to message #503192] |
Wed, 13 April 2011 07:58 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
ibanpaf wrote on Wed, 13 April 2011 08:51i am using toad for oracle and where ever i access the temp01.dbf
What does this mean, whenever you access temp1.dbf? This makes no sense to me.
|
|
|
|
|
Re: temp01.dbf' [message #503330 is a reply to message #503204] |
Thu, 14 April 2011 10:25 |
shaneone1
Messages: 8 Registered: August 2009
|
Junior Member |
|
|
In Sqlplus try this
Connect / as sysdba
SQL> alter tablespace temp add tempfile
'e:\Oracle\Ora10g\DbfSID\temp02.dbf' size 2000m reuse autoextend on next 100m;
SQL> alter database tempfile 'e:\ORACLE\ORA10g\DBFSID\TEMP01.DBF' drop including datafiles;
SQL> alter tablespace temp add tempfile
'e:\Oracle\Ora10g\DbfSID\temp01.dbf' size 2000m reuse autoextend on next 100m;
SQL> alter database tempfile 'e:\ORACLE\ORA10g\DBFSID\TEMP02.DBF' drop including datafiles;
Look at your alert_log afterwards and determine if the temporary tablespace is having problems extending.
Just bounce database and try again.
Hope that helps.
|
|
|
|
|
Re: temp01.dbf' [message #504353 is a reply to message #504340] |
Sun, 24 April 2011 01:17 |
|
Michel Cadot
Messages: 68718 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
But this is not the correct solution for the posted problem.
Regards
Michel
|
|
|