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 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
- Laravel Resource Routes和API Resource Routes講解LaravelAPI
- Oracle 資料庫執行提示:ORA-00054Oracle資料庫
- 【oracle 殺死繁忙程式 ORA-00054】實驗Oracle
- gc current/cr block busy等待事件GCBloC事件
- 【譯】Resource Hints
- 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
- 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
- Buffer Cache以及buffer busy waits/gc相關事件AIGC事件
- profile的resource limits和資源計劃resource_manager_plan的limitMIT
- [求助][iOS] 獲取 iOS 應用的 crash 報告,cpu_resource/diskwrites_resource/wakeups_resource 這些型別的如何分析iOS型別
- ApiBoot - ApiBoot Resource Load 使用文件APIboot
- Eclipse:Resource is out of sync with the file systemEclipse
- @Autowired 與@Resource的區別
- 2.7 Overview of Oracle Resource Manager in a CDBViewOracle
- Caused by: Error: ' ' is not a valid resource name characterError
- The bean ‘xxx‘, defined in class path resource , ......Bean
- Matrix原始碼分析————Resource Canary原始碼
- WPF FindResource,Resource[key] SystemColors TryFindResource