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

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

转载于:http://blog.itpub.net/76065/viewspace-1015707/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值