oracle 查lock session, 并且kill session

Select * From GV$LOCKED_OBJECT
得到锁住的session_id,
拿着这个id 去查

Select * From Gv$session S Where SID= session_id;
找到记录 拿到SERIAL#

然后
  Alter System Kill Session 'SID,SERIAL#';
    alter system kill session '13,36543';

你可能感兴趣的:(oracle,DB)