ITPub博客

首页 > 数据库 > Oracle > 笔记: Oracle 10g中一些操作持有锁的小节

笔记: Oracle 10g中一些操作持有锁的小节

原创 Oracle 作者:foreverlee 时间:2009-01-05 19:04:45 0 删除 编辑

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/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-11-26

  • 博文量
    72
  • 访问量
    1356452