PLSQL 锁表处理

SELECT s.username,l.OBJECT_ID,l.SESSION_ID,s.SERIAL#,l.ORACLE_USERNAME,l.OS_USER_NAME,l.PROCESS

FROM V$LOCKED_OBJECT l,V$SESSION S

WHERE l.SESSION_ID=S.SID;

 

格式:alter system kill session 'SESSION_ID,SERIAL#'

案例:alter system kill session '156,64363'

posted on 2021-05-18 12:14  小乐丶  阅读(487)  评论(0编辑  收藏  举报