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

Home -> Community -> Usenet -> c.d.o.server -> Re: Table reorg.. what's the best way?

Re: Table reorg.. what's the best way?

From: Jerry Gitomer <jgitomer_at_erols.com>
Date: 2000/05/05
Message-ID: <20000505.4202900@noname.nodomain.nowhere>#1/1

        Although you can do this with an export and import I find it much faster to use T.O.A.D. To generate scripts to recreate the table, its indexes, its grants, and its constraints and then edit the script to reflect the new tablespaces (you are going to put the indexes in a different tablespace than the data, aren't you). Rename the existing table. Create the new table. Insert into new select * from old. Drop the indexes on the old table. Create the indexes on the new table.   

        I am getting ready to use this technique to move 1300+ tables and their indexes in an ERP application in order to get them out of 2 tablespaces and to enable uniform sizing so that I won't ever have to reorganize the database in the future.

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 5/4/00, 11:38:22 AM, Tom <ray.thomas_at_pmlmail.com> wrote regarding Table reorg.. what's the best way?:

> Hi all,
 

> I have 2 large tables with many extents. I have been instructed to
 move
> these tables to their own tablespace and reorg them at the same time.

I
> have to create a tablespace, export the two tables and everything
> associated with them and import them into the new tablespace without
> losing any indexes, constraints, grants etc. Can anyone suggest the
> best method to accomplish this without losing anything in the process?

> Tom
> Please reply to: ray.thomas_at_pmlmail.com

> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Fri May 05 2000 - 00:00:00 CDT

Original text of this message

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