Monday, 16 January 2017

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


Caused By: Error executing SQL CREATE INDEX ****.claimno ON ****.BPS_STATIC_PAY_DED (CLAMIN_NO) LOGGING NOPARALLEL         

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

Execute the below command to check if there is any lock occurred,

SELECT O.OBJECT_NAME, S.SID, S.SERIAL#, P.SPID, S.PROGRAM,SQ.SQL_FULLTEXT, S.LOGON_TIME FROM V$LOCKED_OBJECT L, DBA_OBJECTS O, V$SESSION S, V$PROCESS P, V$SQL SQ WHERE L.OBJECT_ID = O.OBJECT_ID AND L.SESSION_ID = S.SID AND S.PADDR = P.ADDR AND S.SQL_ADDRESS = SQ.ADDRESS;

Using the Output of the above query, please execute the below.

Killing the DB session

To kill the DB session execute the  sql

alter system kill session 'sid,serial#'

In my case it will be
         alter system kill session '953,40807'

No comments:

Post a Comment