RE: shrinking space

Done forget about “default values” when using CTAS

http://kamranagayev.wordpress.com/2011/01/13/beware-of-default-values-when-using-ctas/


From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On 
Behalf Of Eugene Pipko
Sent: Wednesday, 1 June 2011 10:16 PM
To: 'Bobak, Mark'; oracle-l@xxxxxxxxxxxxx
Subject: RE: shrinking space

Thanks everyone for your responses.
I have a luxury of having downtime most weekends, so I will CTAS new table. 
That seem to be the simplest approach.

From: Bobak, Mark [mailto:Mark.Bobak@xxxxxxxxxxxx]
Sent: Tuesday, May 31, 2011 8:31 PM
To: Eugene Pipko; oracle-l@xxxxxxxxxxxxx
Subject: Re: shrinking space

Depending on if you can get maintenance window, I would CTAS new table with 
rows to keep, truncate original table, and then insert rows from temp table 
into empty table. Do as much as possible with nologging.

HTH,

-Mark

Sent from my Motorola ATRIX™ 4G on AT&T


-----Original message-----
From: Eugene Pipko <eugene.pipko@xxxxxxxxxxxx>
To: "oracle-l@xxxxxxxxxxxxx" <oracle-l@xxxxxxxxxxxxx>
Sent: Wed, Jun 1, 2011 03:21:03 GMT+00:00
Subject: shrinking space
Hi all,
Oracle 9.2.0.8 on Win 2003.
SAP admitted a bug in their app, which resulted in millions of rows inserted in 
a couple of tables.
They came up with a script to delete them, but failing to provide any solutions 
on how to reclaim unused space.
One of the tables has CLOB column and another has BLOB column in them.

Question: how do I shrink tables with CLOB and BLOB columns?

Thanks,
Eugene

Other related posts: