ora-00054:resource busy and acquire with nowait specified
當某個資料庫使用者在資料庫中插入、更新、刪除一個表的資料,或者增加一個表的主鍵時或者表的索引時,常常會出現ora-00054:resource busy and acquire with nowait specified這樣的錯誤。
主要是因為有事務正在執行(或者事務已經被鎖),所有導致執行不成功。
1、用dba許可權的使用者檢視資料庫都有哪些鎖
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;
如:testuser 339 13545 2009-3-5 17:40:05
知道被鎖的使用者testuser,sid為339,serial#為13545
2、根據sid檢視具體的sql語句,如果sql不重要,可以kill
select sql_text from v$session a,v$sqltext_with_newlines b
where DECODE(a.sql_hash_value, 0, prev_hash_value, sql_hash_value)=b.hash_value
and a.sid=&sid order by piece;
查出來的sql,如: begin :id := sys.dbms_transaction.local_transaction_id; end;
3、kill該事務
alter system kill session '339,13545';
4、這樣就可以執行其他的事務sql語句了
如增加表的主鍵:
alter table test
add constraint PK_test primary key (test_NO);
主要是因為有事務正在執行(或者事務已經被鎖),所有導致執行不成功。
1、用dba許可權的使用者檢視資料庫都有哪些鎖
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;
如:testuser 339 13545 2009-3-5 17:40:05
知道被鎖的使用者testuser,sid為339,serial#為13545
2、根據sid檢視具體的sql語句,如果sql不重要,可以kill
select sql_text from v$session a,v$sqltext_with_newlines b
where DECODE(a.sql_hash_value, 0, prev_hash_value, sql_hash_value)=b.hash_value
and a.sid=&sid order by piece;
查出來的sql,如: begin :id := sys.dbms_transaction.local_transaction_id; end;
3、kill該事務
alter system kill session '339,13545';
4、這樣就可以執行其他的事務sql語句了
如增加表的主鍵:
alter table test
add constraint PK_test primary key (test_NO);
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24558279/viewspace-712810/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-00054: resource busy and acquire with NOWAIT specifiedUIAI
- ORA-00054: resource busy and acquire with NOWAIT specified處理UIAI
- gc buffer busy acquire問題處理GCUI
- gc buffer busyGC
- Oracle中的for update 和 for update nowaitOracleAI
- Oracle Buffer Busy WaitsOracleAI
- oracle ora-00054錯誤處理Oracle
- No input file specified.
- Laravel Resource Routes和API Resource Routes講解LaravelAPI
- Oracle 資料庫執行提示:ORA-00054Oracle資料庫
- 【oracle 殺死繁忙程式 ORA-00054】實驗Oracle
- gc current/cr block busy等待事件GCBloC事件
- 【譯】Resource Hints
- 執行gedit報No protocol specifiedProtocol
- buffer busy wait 等待事件說明(轉)AI事件
- buffer busy waits引起的會話突增AI會話
- oracle buffer busy waits等待的含義OracleAI
- GC Buffer Busy Waits in RAC: Finding Hot BlocksGCAIBloC
- Educational Codeforces Round 100-C. Busy Robot
- 刪除使用者ORA-00604和ORA-00054
- DRM - Dynamic Resource MasteringAST
- Android resource linking failedAndroidAI
- Metasploit resource命令技巧
- Spring系列.Resource介面Spring
- 解決IDEA Error:Output directory is not specifiedIdeaError
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embeddedAI
- 頁面報錯 No input file specified
- Buffer Busy Waits是怎麼產生的?AI
- [20180305]手工模擬buffer busy wait.txtAI
- 【TUNE_ORACLE】等待事件之“buffer busy waits”Oracle事件AI
- vue_resource和axiosVueiOS
- Resource is out of sync with the file system
- Error-Expected resource of typeError
- The following instances are in the device manifest but not specified in framework compatibility matrix:devFramework
- no input file specified 三種解決方法
- Table is specified twice, both as a target for 'UPDATE' and as a separate source
- Buffer Cache以及buffer busy waits/gc相關事件AIGC事件
- profile的resource limits和資源計劃resource_manager_plan的limitMIT
- Web 伺服器顯示 no input file specifiedWeb伺服器