ORA-00054: resource busy and acquire with NOWAIT
SQL> drop table sfcs_sn_site_statistics_arv;
drop table sfcs_sn_site_statistics_arv
*
ERROR at line 1:
ORA-00054: resource busy and acquire with NOWAIT specified
1.用dba許可權的使用者檢視資料庫都有哪些鎖
SQL> select t2.username,t2.sid,t2.serial#,t2.logon_time
from v$locked_object t1,v$session t2
where t1.session_id=t2.sid order by t2.logon_time;
USERNAME SID SERIAL# LOGON_TIM
------------------------------ ---------- ---------- ---------
SMP 3261 383 26-AUG-10
SMP 3277 18634 31-AUG-10
SMP 3276 10853 31-AUG-10
2.根據sid檢視具體的sql語句,如果sql不重要,可以kill
SQL> select sql_text from v$session a,v$sqltext_with_newlines b
2 where DECODE(a.sql_hash_value, 0, prev_hash_value, sql_hash_value)=b.hash_value
3 and a.sid=&sid order by piece;
Enter value for sid: 3276
old 3: and a.sid=&sid order by piece
new 3: and a.sid=3276 order by piece
SQL_TEXT
----------------------------------------------------------------
DELETE FROM sfcs_sn_site_statistics
WHERE org_id = 51
AND sn_key IN (SELECT sn_key
FROM wip_runcard
WHERE org_id = 51
AND time BETWEEN
SQL_TEXT
----------------------------------------------------------------
to_date('2009-6-2 00:00:00',
'yyyy-mm-dd hh
24:mi:ss') AND to_date('2009-7-1 23:59:59',
'yyyy-mm-dd hh24:mi:ss'))
AND ROWNUM < 2000
6 rows selected.
3.kill該事務
SQL> alter system kill session(3277,18634);
alter system kill session(3277,18634)
*
ERROR at line 1:
ORA-00026: missing or invalid session ID
SQL> alter system kill session '3277,18634';
alter system kill session '3277,18634'
*
ERROR at line 1:
ORA-00031: session marked for kill
4.查出os中對應的pid
SQL> select spid, osuser, s.program
2 from v$session s,v$process p
3 where s.paddr=p.addr and s.sid=&sid;
Enter value for sid: 3277
old 3: where s.paddr=p.addr and s.sid=&sid
new 3: where s.paddr=p.addr and s.sid=3277
SPID OSUSER
------------ ------------------------------
PROGRAM
------------------------------------------------
18352 Proto
toad.exe
5.從OS中KILL SESSION
SQL> host kill -9 18352
6.drop table
SQL> drop table sfcs_sn_site_statistics_arv;
Table dropped.
[@more@]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/789833/viewspace-1037642/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 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
- 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之 RA-00054: resource busy and acquire with NOWAITOracleUIAI
- ORA-00054,ORA-00031 resource busy and acquire with NOWAIT 資源佔用處理過程UIAI
- Oracle wait interface - ORA-00054: resource busyOracleAI
- gc buffer busy acquire問題處理GCUI
- open failed: EBUSY (Device or resource busy)AIdev
- ORA-00054: 資源正忙,要求指定 NOWAITAI
- Oracle ASM oracleasm createdisk "Device or resource busy"OracleASMdev
- 如何解決ORA-00054資源正忙,要求指定NOWAITAI
- oracle之報錯:ORA-00054: 資源正忙,要求指定 NOWAITOracleAI
- device-mapper create ioctl failed: Device or resource busydevAPPAI
- FILE ON OCFS CANNOT BE DELETED LINUX ERROR: 16: DEVICE OR RESOURCE BUSYdeleteLinuxErrordev
- oracle錯誤處理之ORA-00054:資源正忙,要求指定NOWAITOracleAI
- 分析解決11gR2 雙節點RAC環境下的gc cr block busy/gc buffer busy acquire等待GCBloCUI
- Linux rm -rf 之rm: cannot remove `linux': Device or resource busyLinuxREMdev
- ora-00054: 資源正忙, 但指定以 nowait 方式獲取資源如何解決AI
- ORA-00054: 資源正忙, 但指定以 NOWAIT 方式獲取資源, 或者超時失效AI
- gc buffer busyGC
- select for update nowaitAI
- for update和for update nowaitAI
- FOR UPDATE NOWAIT和 FOR UPDATEAI
- PMON failed to acquire latch, see PMON dumpAIUI
- Oracle Buffer Busy WaitsOracleAI
- buffer busy wait 解析AI
- oracle ora-00054錯誤處理Oracle
- Laravel Resource Routes和API Resource Routes講解LaravelAPI
- Bug 4632780 - PMON "failed to acquire latch" during shutdownAIUI
- PMON "failed to acquire latch" during shutdown-4632780.8AIUI
- PMON failed to acquire latch, see PMON dump in alert logAIUI
- mysql innodb之select for update nowaitMySqlAI
- Oracle中的for update 和 for update nowaitOracleAI
- 【譯】Resource Hints
- RESOURCE_LIMITMIT