Tuesday, June 17, 2014

Temp space was 32GB - how to make it smaller.

Add new TEMPORARY TABLESPACE TEMP2
Set new TEMP2 as DEFAULT
Drop the original TEMP space.


  1. CREATE TEMPORARY TABLESPACE "TEMP2" TEMPFILE '/home/oracle/app/oracle/oradata/orcl/temp02.dbf' SIZE 1G REUSE AUTOEXTEND ON NEXT 16M MAXSIZE 8G;
  2. ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp2; 
  3. DROP TABLESPACE temp INCLUDING CONTENTS AND DATAFILES;
And that will make it smaller.

No comments:

Post a Comment