oracle数据库锁表,解锁查询语句

select 'alter system kill session '||''''||t2.sid||','||t2.serial#||''';'
from gv$locked_object t1,gv$session t2
where t1.session_id=t2.sid order by t2.logon_time;

获取查询结果后:批量执行查询语句,进行批量解锁

发布了89 篇原创文章 · 获赞 18 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/qq_32641813/article/details/102785900