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: defragment ?

Re: defragment ?

From: Muthaiah <cvmuthaiah_at_yahoo.com>
Date: Sun, 29 Apr 2001 04:20:12 -0700
Message-ID: <F001.002F50DD.20010429040538@fatcity.com>

Hi,

  1. Create a dummy table by using create table dummy_table as select * from original_table;
  2. Truncate your original_table
  3. insert into original_table select * from dummy_table;

This will eliminate the fragmenataion

Hope this helps,

Regards,

Muths

At 11:40 PM 4/28/01 -0800, you wrote:
>hi oracle gurus,
>how can I defrag a table?
>this table has many relations,I was going to drop them and export the table
>and import it again,then create the relations.
>this is very tedious!
>is their any better way?
>
>
>
>
> stuck with fragmented tables
>
>____________________________________________________________________
>Get free email and a permanent address at http://www.netaddress.com/?N=1
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: MOHAMMAD AMER
> INET: mohammad_amer_at_usa.net
>
>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
>San Diego, California -- Public Internet access / Mailing Lists
>--------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
>the message BODY, include a line containing: UNSUB ORACLE-L
>(or the name of mailing list you want to be removed from). You may
>also send the HELP command for other information (like subscribing).



Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Muthaiah
  INET: cvmuthaiah_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Sun Apr 29 2001 - 06:20:12 CDT

Original text of this message

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