oracle表解锁方法
1.获取出sid,serial 用于解锁的参数 select s.username, s.osuser, s.sid, s.serial#, p.spid from v$session s,v$process p where s.paddr = p.addr and s.username is not null; select 'alter system kill session ',''''||trim(t2.sid)||','||trim(t2.serial#)||''';' from v$locked_object t1,v$session t2 where t1.session_id=t2.sid order by t2.logon_time; 2.执行sql进行解锁 --alter system kill session 'sid,serial#'; alter system kill session '331,277'; |
|
最新喜欢:Locust |
沙发#
发布于:2018-07-19 11:00
看看支持
|
|
板凳#
发布于:2019-04-02 10:27
硕士生
|
|