ORA-00054,ORA-00031 resource busy and acquire with NOWAIT 資源佔用處理過程
truncate佔用資源解決辦法
SQL> truncate table test_source;
truncate table test_source
*
ERROR at line 1:
ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
SQL> truncate table test_source;
truncate table test_source
*
ERROR at line 1:
ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
SQL> select object_name,session_id,oracle_username from v$locked_object t1, user_objects t2 where t1.object_id = t2.object_id;
OBJECT_NAME
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SESSION_ID ORACLE_USERNAME
---------- ------------------------------
TEST_SOURCE
190 **********
---------- ------------------------------
TEST_SOURCE
190 **********
SQL> select sid, serial#, username, osuser from v$session where sid='190';
SID SERIAL# USERNAME
---------- ---------- ------------------------------
OSUSER
------------------------------
190 2028 **********
KYS\kyslogin
---------- ---------- ------------------------------
OSUSER
------------------------------
190 2028 **********
KYS\kyslogin
SQL> conn sys/oracle as sysdba
Connected.
SQL> alter system kill session '190,2028';
alter system kill session '190,2028'
*
ERROR at line 1:
ORA-00031: session marked for kill
SQL> select spid, osuser, s.program from v$session s,v$process p where s.paddr=p.addr and s.sid=190;
SPID OSUSER
------------------------ ------------------------------
PROGRAM
----------------------------------------------------------------
5024 KYS\kyslogin
sqlplus.exe
------------------------ ------------------------------
PROGRAM
----------------------------------------------------------------
5024 KYS\kyslogin
sqlplus.exe
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Pr
oduction
With the Partitioning, OLAP, Data Mining and Real Application Testing options
C:\Users\kyslogin>orakill m1data 5024 --在linux下,使用 kill -9 命令
Kill of thread id 5024 in instance m1data successfully signalled.
C:\Users\kyslogin>
C:\Users\kyslogin>sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Fri Dec 2 15:02:31 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> conn **********/**********
Connected.
SQL> truncate table test_source;
Connected.
SQL> truncate table test_source;
Table truncated.
SQL>
按常理到此處已經可以解決資源佔用的問題,如果還是無法解決,就需要等待資料庫資料回滾結束。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26143577/viewspace-715840/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-00054: resource busy and acquire with NOWAIT specified處理UIAI
- 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
- 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
- gc buffer busy acquire問題處理GCUI
- oracle錯誤處理之ORA-00054:資源正忙,要求指定NOWAITOracleAI
- Oracle wait interface - ORA-00054: resource busyOracleAI
- ORA-00054: 資源正忙,要求指定 NOWAITAI
- 如何解決ORA-00054資源正忙,要求指定NOWAITAI
- oracle之報錯:ORA-00054: 資源正忙,要求指定 NOWAITOracleAI
- ora-00054: 資源正忙, 但指定以 nowait 方式獲取資源如何解決AI
- ORA-00054: 資源正忙, 但指定以 NOWAIT 方式獲取資源, 或者超時失效AI
- 記一次資料庫高CPU佔用率處理過程資料庫
- oracle 資料庫鎖表處理 ORA-00031Oracle資料庫
- open failed: EBUSY (Device or resource busy)AIdev
- oracle ora-00054錯誤處理Oracle
- 異常處理過程
- ORA-00054 故障處理一例
- 大資料處理過程是怎樣大資料
- 資料庫變慢的處理過程資料庫
- Oracle ASM oracleasm createdisk "Device or resource busy"OracleASMdev
- rac 遭遇GC BUFFER BUSY 處理思路GC
- 一次GC BUFFER BUSY處理GC
- DML 語句處理過程
- Nucleus中斷處理過程!!!!
- oracle處理SQL的過程OracleSQL
- 【故障處理】一次RAC故障處理過程
- 大資料的處理是怎樣的過程大資料
- 【原始碼】Redis命令處理過程原始碼Redis
- 某次BW 異常處理過程
- ora-14452處理過程
- HSG80故障處理過程
- ora-04031處理過程
- SQL語句的處理過程SQL