| Twitter | Del.icio.us | Comments (5) | | Edit

Comments Powered by Disqus

留言评论 | Comments (5)

终于又见技术文章了,赞

呵呵,太简单.备忘

http://orafaq.com/node/4

一篇英文的文章,可以供参考

Subject: How to Re-Organize a Table Online
Metalink Note:177407.1

Yet another Refer

When rebuild index


How Oracle Ensures Consistency
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

When the ONLINE keyword is specified as a part of an alter index or
create index command a temporary journal table to record changes made to
the base table is created. The journal is an IOT (Index Organized Table)
table type.

A Row Share Table Lock(RS) is held on the table during the index creation.
The index creation process so as to ensure read consistency and avoid any
ORA-1555s adopts a modified read algorithm.

Oracle merges the changes entered in the journal at the end of the index
build process. This merge by which changed rows are incorporated into the
new index, is done while the table is still online.

This is accomplished by scanning the journal table and operating on a per
row basis. Operations are committed every 20 rows. Locked rows are
skipped. Oracle may make multiple passes over the journal table to
process previously locked rows