ORA-04021: timeout occurred while waiting to lock object
資料庫版本:11.2.4.0
作業系統:AIX 6.1
SQL> drop user PATROL2;
*
ERROR at line 1:
ORA-04021:timeout occurred while waiting to lock object
檢視SID 242
kill 掉非本地程式
再次DROP 使用者正常
MOS:
CAUSE
This is most likely due to following internal bug:
SQL statements that make use of the new GV$() function would acquire a
librarycache (KGL) lock for session duration. One example of such a SQL statement is:
SELECT c FROM table(GV$(cursor(select count(*) c from
v$active_session_history where is_awr_sample='Y')));
These locks are acquired in shared mode but will block other operations that
require an exclusive mode lock.
If you are seeing exclusive library cache locks against GV$ related objects
where the holder has acquired the lock in shared mode and has executed a
SQL statement that involves a GV$() function then you might be seeing this
problem.
Unable To Drop User Due to Ora-4021 (文件 ID 2325903.1)
SOLUTION
-
Apply
Or use following workarounds: -
Kill the blocker session
Or - Stop db console (or cloud control)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30327022/viewspace-2649844/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MySQL5.7 Waiting for global read lockMySqlAI
- MySQL新增索引偶遇waiting for table metadata lockMySql索引AI
- MySQL DDL Waiting for table metadata lock 解決MySqlAI
- Lock wait timeout exceeded; try restarting transactionAIREST
- git push fatal: HttpRequestException encountered. An error occurred while sending the requestGitHTTPExceptionErrorWhile
- An error occurred while updating the entries. See the inner exception for details.ErrorWhileExceptionAI
- MySQL更新卡住報錯lock wait timeoutMySqlAI
- yum 提示 Another App is currently holding the yum lock; waiting for it to exit...APPAI
- MySQL:簡單記錄一下Waiting for commit lockMySqlAIMIT
- mysql, Lock wait timeout exceeded; try restarting 解決MySqlAIREST
- org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.SQLExceptionErrorWhile
- MySql報錯:Lock wait timeout exceeded: try restadina transactionMySqlAIREST
- Lock wait timeout exceeded; try restarting transaction引數控制AIREST
- Batch containing 11 record(s) expired due to timeout while requesting metadataBATAIWhile
- Dynamics CRM CRM Reporting Error: Error occurred while fetching the data extension的解決方法ErrorWhile
- 當匯入flutter專案時,報Waiting for another flutter command to release the startup lockFlutterAI
- 【YashanDB知識庫】YAS-02024 lock wait timeout, wait time 0 millisecondsAI
- 設定mysql 事務鎖超時時間 innodb_lock_wait_timeoutMySqlAI
- error while loading shared libraries: libgsl.so.27: cannot open shared objectErrorWhileObject
- [20211111]18c index (re)build lock or pin object.txtIndexUIObject
- 為什麼經常會出這個問題? An unknown server-side error occurred while processing the commandServerIDEErrorWhile
- mysql死鎖deadlock相關幾個系統變數innodb_lock_wait_timeoutMySql變數AI
- 5分鐘的ORA-04021(zt)
- Commvault+XSKY 推出基於 Object Lock 的防勒索病毒聯合方案Object
- ./XXX.XX: error while loading shared libraries: libGLEW.so.2.1: cannot open shared object file: NoErrorWhileObject
- Waiting for target device to come onlineAIdev
- Database TimeoutDatabase
- rpm: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such fi...ErrorWhileGCObject
- ## yum提示Another app is currently holding the yum lock; waiting for it to exit... 這是因為有另一個yum程式正在執行APPAI
- error while loading shared libraries: libpython3.7m(2.7).so.1.0: cannot open shared object file: NErrorWhilePythonObject
- MySQL5.7 Waiting FOR TABLE FLUSHMySqlAI
- Java 迴圈 - for, while 及 do…whileJavaWhile
- npm包管理器報錯-npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/@XXX(over 30000ms)NPMWhileHTTPJS
- Linux timeout命令Linux
- MySQL之wait_timeout和interactive_timeout引數MySqlAI
- while迴圈以及do while迴圈While
- INBOUND_CONNECT_TIMEOUT與SQLNET.INBOUND_CONNECT_TIMEOUT小結SQL
- python while/forPythonWhile