ORA-00031-標記要終止的會話,在OS一級殺掉進程

來源:互聯網
上載者:User

ORA-00031-標記要終止的會話,在OS一級殺掉進程

殺進程的時候報出
ORA-00031-標記要終止的會話
但是查看v$session視圖會話還存在,只是狀態改為 killed,並未被真正kill掉

這時,我們可以從作業系統層殺掉該進程

步驟:
1、根據v$session 中的paddr欄位尋找對應的spid
select spid from v$process a where a.ADDR='paddr'

2、登入到作業系統Oracle使用者,尋找對應的進程
ps -ef |grep spid

3、殺掉查到的進程
kill -9 spid

完成後驗證一下,進程確實被殺掉了

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.