ITPub博客

首页 > Linux操作系统 > Linux操作系统 > [转载]oracle手动锁表

[转载]oracle手动锁表

原创 Linux操作系统 作者:renjixinchina 时间:2013-01-15 14:12:30 0 删除 编辑
手工锁表:
lock table tbl_t1 in row share mode nowait;                --2
lock table tbl_t1 in share update mode nowait;             --2
lock table tbl_t1 in row exclusive mode nowait;            --3
lock table tbl_t1 in share mode nowait;                    --4
lock table tbl_t1 in share row exclusive mode nowait;      --5
lock table tbl_t1 in exclusive mode nowait;                --6


0:none
1:null      空                 
2:Row-S     行共享(RS):共享表锁   
3:Row-X     行专用(RX):用于行的修改
4:Share     共享锁(S):阻止其他DML操作
5:S/Row-X   共享行专用(SRX):阻止其他事务操作
6:exclusive 专用(X):独立访问使用

手工解锁:
rollback/commit
http://blog.163.com/xjming487@126/blog/static/21295135200951081942377/

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/15747463/viewspace-752687/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: [ID 965876.1]
请登录后发表评论 登录
全部评论

注册时间:2011-01-30

  • 博文量
    373
  • 访问量
    2161116