Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Moving LOBs of a particular partition to a new tablespace

Re: Moving LOBs of a particular partition to a new tablespace

From: Philip Douglass <philip.douglass_at_il.proquest.com>
Date: Mon, 29 Mar 2004 11:31:38 -0500
Message-ID: <029001c415ab$4f552eb0$d7f918ac@sirs.com>


That sure seems like a bug to me. Anyway, if I recall, Tom Kyte had a workaround that went something like this:

    alter table mytable add newcol clob(newcol) store as (tablespace newts);     update table mytable set newcol = oldcol;     (my syntax memory is failing, bear with me)     alter table mytable unused column oldcol;     alter table mytable rename column newcol to oldcol;     alter table mytable drop unused columns;

I'd give you a link to the post, but I forgot to keep it with my notes. You might be able to find it if you search for it on his site.

Hi people,

One of my colleagues is having a problem moving LOBs to a new tablespace.

He's trying to move JUST the LOBs in a particular partition of a table to a new tablespace, WITHOUT affecting the entire partition.

The following syntax:
alter table t1 move partition p1 to ts_p1;

Will move the partition contents to ts_p1 but not the LOB segments associated with that partition.

So, then he tried:
alter table <table> move partition <Partition> lob(<LOB column>) store as (tablespace <new TS>);
which works, but, in addition to moving the LOB segments to the appropriate tablespace, also moves the partition in place in it's own tablespace. Due to the size of the partition, this considerably increases the time required for the operation to complete, not to mention the invalidation of all requisite indexes, and the additional space required for the partition move to be successful
Does anyone have any ideas or suggestions as to how to move ONLY the LOB segments?
Thanks,
-Mark

PS This was posted on MetaLink a week ago, and has been met with a resounding silence....;-)

Mark J. Bobak
Oracle DBA
ProQuest Company
Ann Arbor, MI
"Post Hoc Ergo Propter Hoc"



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html


Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Mon Mar 29 2004 - 10:28:36 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US