RE: How to coalesce an LMT TS to drop extra datafiles?

From: TJ Kiernan <>
Date: Fri, 1 Feb 2013 11:33:04 -0600
Message-ID: <>

DBMS_REDEFINITION will handle *most* of the rename/cleanup for you, if you let it. Look at the copy_dependents & register_dependents procedures.

The only place I can remember it falling down is on stored code (packages/views/etc) - those need to be recompiled after you finish the redefinition (or you can wait until they error once and the automatic recompile should handle it for you). Synonyms may also get invalidated, but I use those so sparingly that my memory is mostly cloudy on that one.

T. J.

-----Original Message-----
From: [] On Behalf Of Rich Jesse Sent: Friday, February 01, 2013 10:55 AM To:
Subject: Re: How to coalesce an LMT TS to drop extra datafiles?

Wolfgang posts:

> I forgot ( to mention ) that "rebuild index(es)" part of the alter
> table move operation.

I've resigned myself to the fact that I'm going to have to move the tables once shrunk. But as MOVE operations require exclusive locks during the operation, I was considering DBMS_REDEFINITION. (DB is EE if there's restrictions) I like the idea of online moving all segments to the new TS then taking a short outage to rename/cleanup/etc.

Anyone used that package before? Any gotchas or bugs?

Thanks all for the input so far!



Received on Fri Feb 01 2013 - 18:33:04 CET

Original text of this message