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: reclaiming table size

Re: reclaiming table size

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Wed, 16 Jun 1999 17:18:01 +0100
Message-ID: <929550913.936.1.nnrp-13.9e984b29@news.demon.co.uk>


Step 1 is (probably) ineffective.

All DDL statements are preceded and terminated by an implicit commit, so the lock in step 1 is released before the select in step 2 commences, which means that another user could insert rows whilst step 2 was being inserted.

--

Jonathan Lewis
Yet another Oracle-related web site: www.jlcomp.demon.co.uk

Jerry Gitomer wrote in message <7k84p3$832$3_at_autumn.news.rcn.net>...
> If it doesn't take too long to copy a table you might consider the
>following:
>
> 1. Lock the original table
> 2. CREATE new_table AS SELECT * FROM original_table.
> 3. DROP original table
> 4. Rename the new table
> 5. Recreate any indexes, constraints, etc.
>
> Ideally this should be run after normal business hours as a cron job.
Received on Wed Jun 16 1999 - 11:18:01 CDT

Original text of this message

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