Oracle之:查询锁表,删除锁表

mac2022-06-30  114

-- 查询当前哪个表被锁 select sess.sid, sess.serial#, lo.oracle_username, lo.os_user_name, ao.object_name, lo.locked_mode from v$locked_object lo, dba_objects ao, v$session sess where ao.object_id = lo.object_id and lo.session_id = sess.sid; -- kill掉锁表 sid,serial# alter system kill session '1152,59673';

转载于:https://www.cnblogs.com/bilaisheng/p/10210983.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)