ORA-04021,timeout occurred while waiting to lock object
SQL> create or replace procedure binzhang_t is
2 begin
3 dbms_output.put_line('hello');
4 dbms_lock.sleep(12000);
5 end;
6 /
Procedure created.
SQL> create or replace procedure binzhang_t is
2 begin
3 dbms_output.put_line('hello');
4 dbms_lock.sleep(12000);
5 end;
6 /
create or replace procedure binzhang_t is
*
ERROR at line 1:
ORA-04021: timeout occurred while waiting to lock object
Elapsed: 00:15:00.00
SQL> select event,SECONDS_IN_WAIT from v$session_wait where wait_class<>'Idle';
EVENT SECONDS_IN_WAIT
------------------------------ ---------------
SQL*Net message to client 0
library cache pin 100
SQL*Net more data from dblink 1196934
SQL*Net message to client 0
網路上有人說是5分鐘,我實驗了下大約是15分鐘。
而且這個錯誤的提示,timeout occurred while waiting to lock object,比較讓人誤解是在獲取library cache lock的時候發生的,其實根據實驗看出pin也一樣會發生。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22034023/viewspace-687249/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 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