Oracle Temp Tablespace is too BIG [message #591563] |
Mon, 29 July 2013 14:30 |
|
akinur
Messages: 12 Registered: July 2013 Location: Canada
|
Junior Member |
|
|
Oracle TEMP tablespace is too big 36 GB
I deleted, created and shrinked the table but again it come back, any idea?
~~ 1)
SELECT tablespace_name, file_name, bytes FROM dba_temp_files WHERE tablespace_name like 'TEMP%'
ALTER database tempfile '/oracle/product/oradata/riotest/temp01.dbf' resize 1024M;
ALTER TABLESPACE temp SHRINK SPACE KEEP 1024M;
~~ 2)
CREATE TEMPORARY TABLESPACE temp2
TEMPFILE '/oracle/product/oradata/riotest/temp02.dbf' SIZE 50M REUSE
AUTOEXTEND ON NEXT 20M MAXSIZE unlimited
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 10M;
ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp2;
DROP TABLESPACE temp INCLUDING CONTENTS AND DATAFILES;
~~3)
CREATE TEMPORARY TABLESPACE temp
TEMPFILE '/data/u02/app/oracle/oradata/riotest/temp01.dbf' SIZE 1024M REUSE
AUTOEXTEND ON NEXT 200M MAXSIZE unlimited
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 50M;
ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp;
DROP TABLESPACE temp2 INCLUDING CONTENTS AND DATAFILES;
|
|
|
|
|
|
|
Re: Oracle Temp Tablespace is too BIG [message #591590 is a reply to message #591580] |
Mon, 29 July 2013 23:57 |
|
Michel Cadot
Messages: 68716 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
akinur wrote on Mon, 29 July 2013 22:16If I off the "Auto Extend" is there will be a problem to the running database?
Michel Cadot wrote on Mon, 29 July 2013 21:46...
If "it come back" then this means you need it. It does not come back for the pleasure, only because you ask it to do so.
So the conclusion is... if you have not enough space you will have an error.
Regards
Michel
[Updated on: Mon, 29 July 2013 23:59] Report message to a moderator
|
|
|
|
|
Re: Oracle Temp Tablespace is too BIG [message #591651 is a reply to message #591638] |
Tue, 30 July 2013 08:25 |
|
Michel Cadot
Messages: 68716 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Michel Cadot wrote on Tue, 30 July 2013 06:57akinur wrote on Mon, 29 July 2013 22:16If I off the "Auto Extend" is there will be a problem to the running database?
Michel Cadot wrote on Mon, 29 July 2013 21:46...
If "it come back" then this means you need it. It does not come back for the pleasure, only because you ask it to do so.
So the conclusion is... if you have not enough space you will have an error.
Regards
Michel
[Updated on: Tue, 30 July 2013 08:25] Report message to a moderator
|
|
|