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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-04021,timeout occurred while waiting to lock objectWhileAIObject
- ORA-02049: timeout: distributed transaction waiting for lockAI
- Waiting for table metadata lockAI
- Object-C,迴圈語句for,while,do-whileObjectWhile
- 鎖:innodb_lock_wait_timeout和 innodb_rollback_on_timeout?AI
- MySQL5.7 Waiting for global read lockMySqlAI
- create table if not exists Waiting for table metadata lockAI
- git push fatal: HttpRequestException encountered. An error occurred while sending the requestGitHTTPExceptionErrorWhile
- Error occurred while downloading files from admin server for deploymentErrorWhileServer
- Oracle 11G ddl_lock_timeoutOracle
- 【ORA-00060】 deadlock detected while waiting for resourceWhileAI
- ORA-00600 "deadlock detected while waiting for resource"WhileAI
- MySQL新增索引偶遇waiting for table metadata lockMySql索引AI
- MySQL DDL Waiting for table metadata lock 解決MySqlAI
- An error occurred while updating the entries. See the inner exception for details.ErrorWhileExceptionAI
- 今天遇到的有關ORA-04020: deadlock detected while trying to lock object LBACSYS.LWhileObject
- MySQL更新卡住報錯lock wait timeoutMySqlAI
- Lock wait timeout exceeded; try restarting transactionAIREST
- An error occurred while the wizard was checking the current Windows product license. Error Code: 8:ErrorWhileWindows
- ORA-00607: Internal error occurred while making a change to a data blockErrorWhileBloC
- Timeout (30000 milliseconds) waiting for the OracleService service to connect.AIOracle
- 【死鎖】ORA-00060: deadlock detected while waiting for resourceWhileAI
- org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.SQLExceptionErrorWhile
- Another app is currently holding the yum lock; waiting for it to exit...APPAI
- AttributeError: 'module' object has no attribute 'lock'ErrorObject
- 今天遇到的有關ORA-04020: deadlock detected while trying to lock object LBACSYS.LBAC_EVENTS錯誤WhileObject
- mysql, Lock wait timeout exceeded; try restarting 解決MySqlAIREST
- 'Lock wait timeout exceeded; try restarting transaction'問題AIREST
- 【11g新特性】DDL_LOCK_TIMEOUT的作用
- 設定 ddl_lock_timeout來避免truncate 報錯
- 解決Eclipse裡Maven工程報 An error occurred while filtering resources錯誤EclipseMavenErrorWhileFilter
- MySQL:簡單記錄一下Waiting for commit lockMySqlAIMIT
- ORA-25254: time-out in LISTEN while waiting for a message 解決WhileAI
- Lock wait timeout exceeded; try restarting transaction引數控制AIREST
- Oracle 11g DDL_LOCK_TIMEOUT引數說明Oracle
- yum 提示 Another App is currently holding the yum lock; waiting for it to exit...APPAI
- MySql報錯:Lock wait timeout exceeded: try restadina transactionMySqlAIREST
- Batch containing 11 record(s) expired due to timeout while requesting metadataBATAIWhile