Re: Chained_Rows

From: <jdorlon_at_my-deja.com>
Date: Fri, 19 Jan 2001 15:26:32 GMT
Message-ID: <949mar$h2s$1_at_nnrp1.deja.com>


  1. Analyze table X list chained rows
  2. Create table Y with the same structure as X
  3. insert into Y select * from X where rowid in (select head_rowid from chained_rows where table_name = X)
  4. (verify that the rows are there..)
  5. delete from x where rowid in (select head_rowid from chained_rows where table_name = X)
  6. insert into X select * from Y
  7. (verify that you had the same number of rows as when you started)
  8. commit
  9. drop table Y
  10. think about increasing PCTFREE on table X so you don't get as many chained rows in the future
    • you may have to disable FK constraints and triggers before you move the rows around

There is a low costGUI tool called EZSQL that can do all of this for you with a few mouse clicks. Look under 'tuning' and 'analyze'. www.ezsql.net.

Sent via Deja.com
http://www.deja.com/ Received on Fri Jan 19 2001 - 16:26:32 CET

Original text of this message