Oracle wait interface - ORA-00054: resource busy
SQL> ALTER INDEX ESMDBA.ESM_PRCS_ERR_IDX1
rebuild;
ALTER INDEX ESMDBA.ESM_PRCS_ERR_IDX1 rebuild
*
ERROR at line
1:
ORA-00054: resource busy and acquire with NOWAIT specified
1. check the index on which table
SQL> select OWNER,INDEX_NAME,TABLE_NAME,INDEX_TYPE from dba_indexes where INDEX_NAME like '%ESM_PRCS_ERR_IDX1%';
OWNER INDEX_NAME TABLE_NAME INDEX_TYPE
------------------------------ ------------------------------ ------------------------------ ---------------------------------------------------------------------------
ESMDBA ESM_PRCS_ERR_IDX1 ESM_PRCS_ERR NORMAL
2. check which session is using the table
select object_name,s.sid,s.serial#,p.spid
from v$locked_object l
, dba_objects o , v$session s , v$process p
where l.object_id=o.object_id
and l.session_id=s.sid and s.paddr=p.addr;
OBJECT_NAME SID SERIAL#
SPID
------------------------------ ---------- ----------
------------
PLAN_TABLE 622 15849
26577
ESM_PRCS_ERR 892
2002 8309
ESM_PRCS_ERR 490 24755
8403
ESM_PRCS_ERR 396 60589
8388
ESM_PRCS_ERR 395 24011 8353
3. find the session and check it can be killed or not ? confirm with Applications.
set linesize 150
set pagesize 999
SELECT sql_text FROM
v$session, v$sqltext_with_newlines
WHERE
decode(v$session.sql_hash_value, 0, prev_hash_value, sql_hash_value) =
v$sqltext_with_newlines.hash_value
AND v$session.sid = &sid
ORDER BY
piece;
Enter value for sid: 892
old 5: AND v$session.sid =
&sid
new 5: AND v$session.sid = 892
SQL_TEXT
----------------------------------------------------------------
SELECT
ERR_OID, MQ_MSGE FROM ESM_PRCS_ERR WHERE ERR_OID = :1 FOR
UPDATE NOWAIT
SQL> /
Enter value for sid: 490
old 5: AND v$session.sid =
&sid
new 5: AND v$session.sid = 490
SQL_TEXT
----------------------------------------------------------------
SELECT
ERR_OID, MQ_MSGE FROM ESM_PRCS_ERR WHERE ERR_OID = :1 FOR
UPDATE NOWAIT
4. kill these sessions and try to rebuild it again.
alter system kill session '892,2002';
alter system kill session '490,24755';
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22578826/viewspace-711522/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-00054:resource busy and acquire with nowaitUIAI
- ORA-00054: resource busy and acquire with NOWAITUIAI
- ORA-00054: resource busy and acquire with NOWAIT specifiedUIAI
- ora-00054:resource busy and acquire with nowait specifiedUIAI
- [摘錄]Oracle Wait Interface之Buffer busy waits事件OracleAI事件
- ORA-00054: resource busy and acquire with NOWAIT specified處理UIAI
- ora-00054:resource busy and acquire with nowait specified解決方法UIAI
- "ORA-00054 resource busy and acquire with NOWAIT specified"的解決方法UIAI
- Oracle wait interface -- sessionOracleAISession
- Oracle, History and the Wait InterfaceOracleAI
- Oracle ASM oracleasm createdisk "Device or resource busy"OracleASMdev
- Oracle Wait Interface解釋OracleAI
- buffer busy wait 解析AI
- oracle之 RA-00054: resource busy and acquire with NOWAITOracleUIAI
- open failed: EBUSY (Device or resource busy)AIdev
- Oracle資料庫buffer busy wait等待事件 (2)Oracle資料庫AI事件
- Oracle資料庫buffer busy wait等待事件 (1)Oracle資料庫AI事件
- ORA-00054,ORA-00031 resource busy and acquire with NOWAIT 資源佔用處理過程UIAI
- wait event:gc buffer busyAIGC
- Buffer Busy Wait小結AI
- zt_buffer busy waitAI
- 等待模擬-BUFFER BUSY WAITAI
- buffer busy wait 的深度剖析AI
- Oracle10g New Feature -- 11. Wait InterfaceOracleAI
- buffer busy wait 等待事件說明AI事件
- Oracle Wait Interface效能診斷與調整實踐指南OracleAI
- buffer busy wait 等待事件說明(轉)AI事件
- device-mapper create ioctl failed: Device or resource busydevAPPAI
- FILE ON OCFS CANNOT BE DELETED LINUX ERROR: 16: DEVICE OR RESOURCE BUSYdeleteLinuxErrordev
- Linux rm -rf 之rm: cannot remove `linux': Device or resource busyLinuxREMdev
- Oracle OCP 1Z0-053 Q20(Resource Manager&CPU_WAIT_TIME)OracleAI
- Oracle Buffer Busy WaitsOracleAI
- 模擬產生CBC LATCH與buffer busy wait等待事件AI事件
- 轉載經典文章 buffer busy wait 等待事件說明AI事件
- buffer busy waits與rac cluster wait之間的聯絡AI
- oracle ora-00054錯誤處理Oracle
- oracle wait!OracleAI
- Oracle Database Resource ManagerOracleDatabase