oracle 进程锁定与释放

ORA-02049 错误,解决方法:

select username,lockwait,status,machine,program from v$session where sid in
(select session_id from v$locked_object  )


select s.SID,p.SERIAL#,p.PID
from v$session s ,v$process p where s.SID in (115,116)
and  s.PADDR=p.ADDR


select s.USERNAME,i.OBJECT_ID,i.SESSION_ID,s.SERIAL#,i.ORACLE_USERNAME,i.OS_USER_NAME,i.PROCESS
from v$locked_object i,v$session s where i.SESSION_ID=s.SID

alter system kill session '116,25884'

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