如何将数据库中被锁表解锁
文章作者 100test 发表时间 2007:11:28 11:18:29
来源 100Test.Com百考试题网
我们在操作数据库的时候,有时候会由于操作不当引起数据库表被锁定,这么我们经常不知所措,不知怎么给这些表解锁,在pl/sql developer工具的的菜单“tools”里面的“sessions”可以查询现在存在的会话,但是我们很难找到那个会话被锁定了,想找到所以被锁的会话就更难了,下面这叫查询语句可以查询出所以被锁的会话。如下:
0select sn.username, m.sid,sn.serial#, m.type, decode (m.lmode, 0, none , 1, null , 2, row share , 3, row excl. , 4, share , 5, s/row excl. , 6, exclusive , lmode, ltrim (to_char (lmode, 990 )) ) lmode, decode (m.request, 0, none , 1, null , 2, row share , 3, row excl. , 4, share , 5, s/row excl. , 下一页:阅读《如何将数据库中被锁表解锁》的全文
|