TEMP Tablespace shrink [message #541844] |
Thu, 02 February 2012 11:42 |
|
imran.reayat
Messages: 2 Registered: February 2012 Location: Kabul
|
Junior Member |
|
|
Hello,
I wanted to free up allocated_space in the following query.
select TABLESPACE_SIZE/1024/1024/1024, ALLOCATED_SPACE/1024/1024/1024,FREE_SPACE/1024/1024/1024 from DBA_TEMP_FREE_SPACE;
TABLESPACE_SIZE/1024/1024/1024 ALLOCATED_SPACE/1024/1024/1024 FREE_SPACE/1024/1024/1024
----------------------------- ------------------------------ -------------------------
102.867096 102.843658 51.4394531
As we can see that total size and alloacted size were quite high , so in order to free up allocated space I applied following command.
14:12:53 SQL> alter tablespace CUST_TEMP shrink space;
Tablespace altered.
14:17:32 SQL>
and now I have following
14:17:48 SQL> select TABLESPACE_NAME, TABLESPACE_SIZE/1024/1024/1024,ALLOCATED_SPACE/1024/1024/1024,FREE_SPACE/1024/1024/1024 from DBA_TEMP_FREE_SPACE;
TABLESPACE_NAME TABLESPACE_SIZE/1024/1024/1024 ALLOCATED_SPACE/1024/1024/1024 FREE_SPACE/1024/1024/1024
------------------------------ ------------------------------ ------------------------------ -------------------------
CUST_TEMP .023345947 .011627197 .01171875
14:18:15 SQL>
I am unable to understand what went wrong , what can now I do to increase the total space in temp tablespace to 102 GB.
Regards,
~Imran R
|
|
|
|
|
Re: TEMP Tablespace shrink [message #541850 is a reply to message #541848] |
Thu, 02 February 2012 12:31 |
John Watson
Messages: 8960 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Please read the forum guide, and always format your copy/paste with [code] tags, as I did.
As for whether you need to re-start the instance, think! Did you need to restart after shrinking the files?
|
|
|