Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How much can shrink

2670775Dec 22 2016 — edited Dec 28 2016

TABLESPACE_NAME                 TABLESPACE_SIZE  ALLOCATED_SPACE       FREE_SPACE

------------------------------ ---------------- ---------------- ----------------

TEMP1                                     5,776,596,992    1,296,031,744    4,480,565,248

suppose I have a temp tablespace with 1 file , how much space I could shrink using

alter tablespace TEMP1 shrink space keep 2G;

ALTER TABLESPACE TEMP1 SHRINK TEMPFILE '/data/temp1.dbf' KEEP 2G;

ALTER TABLESPACE TEMP1 SHRINK TEMPFILE '/data/temp1.dbf' ;

alter database tempfile '/data/temp1.dbf' resize 2G;

non of the above work. How can I know how much I can shrink ??

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 25 2017
Added on Dec 22 2016
17 comments
1,118 views