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: [EMAIL PROTECTED]
>
>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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to