Oracle Hata Kodları

ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired

Soru : ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired hatası alıyorum ne yapabilirim ?

Cevp : Oracle Database üzerinde bir tabloda işlem yaparken eğer bu hatayı alırsanız, tablo bir başkası tarafından kullanılıyor demektir. Beklemek istemeden tabloyu meşgul eden kişiyi bulmak yada kill etmek için ;

select
   c.owner,
   c.object_name,
   c.object_type,
   b.sid,
   b.serial#,
   b.status,
   b.osuser,
   b.machine
from
   v$locked_object a,
   v$session b,
   dba_objects c
where
   b.sid = a.session_id
and
   a.object_id = c.object_id;
ALTER SYSTEM KILL SESSION 'sid,serial#';
Tags

Bugra Parlayan

I use this blog in my spare time to jot down thoughts and share my professional experiences. It’s my personal space to unwind and reflect. Feel free to share or reuse anything you find helpful here — just a small thank you is more than enough :) You can reach me at: bugra[@]bugraparlayan.com.tr

Related Articles

Back to top button
Close