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
- 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
- rpm: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such fi...ErrorWhileGCObject
- Database TimeoutDatabase
- ## 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