oracle 函數(儲存過程)或表儲存卡死,被鎖定的解決方案

來源:互聯網
上載者:User

標籤:add   情況   from   alter   表名   use   ora   函數名   kill   

1.如果函數被鎖住,那麼肯定是有進程在使用這個函數

Select b.SID,b.SERIAL# From dba_ddl_locks a, v$session b Where a.session_id = b.SID And a.name = ‘函數名或者表名‘;

2.在oracle使用命令殺死進程

alter system kill session ‘SID,SERIAL#‘;

3.遇到在oracle中無法殺死的情況,則在OS層殺死該進程

select spid, osuser, s.program from v$session s,v$process p where s.paddr=p.addr and s.sid=1715

kill -9 pid

oracle 函數(儲存過程)或表儲存卡死,被鎖定的解決方案

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.