今天遇到的有關ORA-04020: deadlock detected while trying to lock object LBACSYS.LBAC_EVENTS錯誤
exp很順利,沒有問題
在測試庫上drop user * cascade;
然後重新建使用者,然後把剛才的備份都匯入,都很順利。
[@more@]
然後我要用pl/sql developer連線,察看匯入的表的時候,提示ORA-00942:表或試圖不存在。
我有一點心不在焉的,隨便百度了一把,看到有人說應該執行:
@$ORACLE_HOME/rdbms/admin/catproc.sql
我就執行了,提示很多錯誤,以下是第一個:
create or replace package dbms_standard is
*
ERROR at line 1:
ORA-04045: errors during recompilation/revalidation of
SYS.CDC_CREATE_CTABLE_AFTER
ORA-04068: existing state of packages has been discarded
ORA-04061: existing state of package body "LBACSYS.LBAC_EVENTS" has been
invalidated
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 2
。。。。。。
我都不是很上心,想著沒有關係,這些包未見得有用:
然後我可能有點兒暈了,以為還沒有imp,就繼續imp:
但是這時候開始,imp提示錯誤了:
Import: Release 9.2.0.1.0 - Production on Thu Feb 24 13:49:37 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
IMP-00058: ORACLE error 4045 encountered
ORA-04045: errors during recompilation/revalidation of LBACSYS.LBAC$LOGON
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 2
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 2Username: pointcard
Password:
我想那就重新編譯唄,就這麼三板斧,呵呵:
@$ORACLE_HOME/rdbms/admin/utlrp.sql
提示錯誤:
PL/SQL procedure successfully completed.
CREATE TABLE utl_recomp_invalid(obj# number)
*
ERROR at line 1:
ORA-04045: errors during recompilation/revalidation of
SYS.CDC_CREATE_CTABLE_BEFORE
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 2
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 2
.......
這時候發現客戶端已經連不上了,還是提示LBACSYS.LBAC_EVENTS的錯誤。我有點兒傻了,雖然是測試庫,但是還是有正在測試的應用在用的,而正因為是測試庫,所以沒有每天備份,好在最後一次備份是大前天,也就是還不是很麻煩,暗自慶幸當時隨手備了一個。
再往下我決定重啟試試,我甚至都做好了啟不了重建一個資料庫的準備了,有備份在手,就是比較有信心,呵呵。
shutdown immediate 沒有反應
kill掉 showdown abort
再startup再shutdown immediate 都沒有問題
察看alert.log,都是剛才執行.sql的錯誤:
Thu Feb 24 14:21:08 2005
Errors in file /home/oracle/admin/dwtest/udump/dwtest_ora_23467.trc:
ORA-04045: errors during recompilation/revalidation of LBACSYS.LBAC$LOGON
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 2
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 2
再去百度,這次比較細心了,看到Fenng在itpub的文章提到類似的問題:http://www.itpub.net/238819.html
他是在exp提示9204的時候執行了$ORACLE_HOME/rdbms/admin/catpatch.sql
並且執行了兩遍,然後發現客戶端連不上了。跟我的過程有一點像,再往下看到了解決方案:
The reason for this problem seems to be an Upgrade for Label-Security
even if it's not installed. //Label security 沒有安裝,居然補丁去預設給升級?
Solution:
shutdown immediate;
startup migrate;
alter view lbacsys.lbac$all_table_policies compile;
alter package lbacsys.lbac_events compile body;
shutdown immediate;
startup;
按照上面步驟的執行,就沒有問題。
非常感謝Fenng給我的這個幫助,儘管他應該不會看到這裡啦,哈哈哈。
最後發現pl/sql developer提示9204是需要:
GRANT SELECT ANY TABLE TO *;
GRANT SELECT ANY SEQUENCE TO *;
GRANT SELECT ANY DICTIONARY TO *;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/51862/viewspace-790956/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 今天遇到的有關ORA-04020: deadlock detected while trying to lock object LBACSYS.LWhileObject
- Oracle Global Enqueue Services Deadlock detected錯誤詳解OracleENQ
- 【ORA-00060】 deadlock detected while waiting for resourceWhileAI
- ORA-00600 "deadlock detected while waiting for resource"WhileAI
- 【死鎖】ORA-00060: deadlock detected while waiting for resourceWhileAI
- GLOBAL ENQUEUE SERVICES DEADLOCK DETECTEDENQ
- Global Enqueue Services Deadlock detected.ENQ
- ORA-04021: timeout occurred while waiting to lock objectWhileAIObject
- ORA-04021,timeout occurred while waiting to lock objectWhileAIObject
- Laravel 避免 Trying to get property of non-object 錯誤的六種方法 [新增第六種 data_get]LaravelObject
- ORA-000060 Deadlock detected 問題解決
- ORA-00060: Deadlock detected(場景模擬)
- oracle deadlock with TM lock in SX/SSX modeOracle
- 今天學習遇見的錯誤!!!(禁忌)
- Troubleshooting "Global Enqueue Services Deadlock detected" (Doc ID 1443482.1)ENQ
- 開發中遇到的錯誤
- github上傳遇到的錯誤Github
- 遇到 ORACLE 錯誤 6550Oracle
- 今天在object-c 和swift 混編的時候出現錯誤:could not build module foundationObjectSwiftUI
- [記錄]關於安裝VMware workstation 時我遇到的錯誤
- 安裝.NET Core遇到的錯誤
- JPA 開發中遇到的錯誤
- VMware vmdk錯誤: Failed to lock the file.AI
- 有遇到過 Invalid opcode 34/16/8.的錯誤嗎
- Shiro報錯-[org.apache.shiro.mgt.AbstractRememberMeManager] - There was a failure while trying to retrieve remembered principals.ApacheREMAIWhile
- 測試庫死鎖診斷DEADLOCK DETECTED ( ORA-00060 )
- Object-C,迴圈語句for,while,do-whileObjectWhile
- 使用React Hooks時遇到的錯誤提示ReactHook
- 使用flashback database 特性時遇到的錯誤Database
- Unable to create index.lock File exists錯誤Index
- Oracle優化案例-Bug 32852504 - ORA-60 deadlock detected(三十六)Oracle優化
- 如何解決該錯誤?(與Struts有關)
- CMP關聯中新增資料有錯誤?
- 關於 SAP ABAP SYSTEM_SHM_OPEN_CHANGE_LOCK 執行時錯誤的問題
- 關於oracle cluster執行runcluvfy.sh錯誤時遇到的問題Oracle
- Python中小錯誤 之 object() takes no parametersPythonObject
- Eclipse中使用Mybatis Generator遇到的錯誤EclipseMyBatis
- mongodb和python互動遇到的錯誤MongoDBPython