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: Use TOAD rebulid or perform table truncate & import?

Re: Use TOAD rebulid or perform table truncate & import?

From: Rozi & George Goldberger <ghita_at_worldnet.att.net>
Date: Fri, 02 Mar 2001 22:40:09 GMT
Message-ID: <djVn6.63$6A6.67678@typhoon2.ba-dsg.net>

I would go for this (if it is migrated rows)

Create a temp_table as select * from your table;

truncate the chained table

Insert into table select from temp_table;

Drop temp_table

The chained rows depend of the db_block_size and the length of the table's row and can happen only at INSERT time.

George.

"Glen A. Sromquist" <stromqgl_at_alpac.ca> wrote in message news:lNxn6.1427$go.76039_at_news0.telusplanet.net...
> I have 4 table(s) in a database that are showing a high number of chained
> rows, should I :
>
> -open the database in mount mode, export the table(s), truncate the table
 &
> import the data back in
> or
> -open the database in mount mode, use the TOAD rebuild table utility to
> build the script, and run the script?
>
> The latter seems like a lot simpler/faster process, but are there any
> potential pitfalls?
>
> What is the best method to determine the optimal PCTFREE for these tables
 to
> prevent this in the future?
>
>
> thanks in advance
>
>
Received on Fri Mar 02 2001 - 16:40:09 CST

Original text of this message

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