筆記: Oracle 10g中一些操作持有鎖的小節

foreverlee發表於2009-01-05

Lock mode in which the process requests the lock:
¦ 0 - none
¦ 1 - null (NULL)
¦ 2 - row-S (SS)
¦ 3 - row-X (SX)
¦ 4 - Table share (S)
¦ 5 - Table Share and Row-X (SSX)
¦ 6 - Table exclusive (X)


Conclusion in 10gR2.

1> create index az_obj_id. (4-TM)

2>
alter index az_obj_id rebuild online; (2-TM and 4-TM)

3>
alter index az_obj_id rebuild; (4-TM and 3-TM)

4>
alter table az move tablespace test; (6-TM)

5>
alter table az shrink space; (3-TM and 6-TM But the amount of time for TM 6 is far more less than ALTER TABLE MOVE)

6>
alter table az shrink space COMPACT; (3-TM only)
and then alter table az shrink space; (6-TM only)
Please see shrinkSpaceIn10g.doc in the same direcotry to find the mechanism for SHRINK SPACE in Oracle 10g.

7> truncate table az;(DDL) (6-TM)

[@more@]

推薦文章:

http://www.dbafan.com/blog/?p=49

http://space.itpub.net/13095417/viewspace-171152

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/76065/viewspace-1015707/,如需轉載,請註明出處,否則將追究法律責任。

相關文章