啟動資料庫報錯,ORA-18008: cannot find OUTLN schema

來源:互聯網
上載者:User

啟動資料庫報錯,ORA-18008: cannot find OUTLN schema

問題現象:
資料庫版本 Oracle 11g r2
hrdb1>startup
ORACLE 常式已經啟動。

Total System Global Area 4392697856 bytes
Fixed Size                  2233616 bytes
Variable Size            1090521840 bytes
Database Buffers         3288334336 bytes
Redo Buffers               11608064 bytes
資料庫裝載完畢。
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-18008: cannot find OUTLN schema
進程 ID: 5294
會話 ID: 683 序號: 3


hrdb1>!oerr ora 18008
18008, 00000, "cannot find OUTLN schema"
// *Cause:  The database creation script that creates this schema must not
//          have been executed.
// *Action: Review the log files to see what happened when the database
//          was created.

問題原因:
outlin使用者被誤刪除

解決方案:

按照metalink上的解決辦法,先修改replication_dependency_tracking參數,重建資料庫outln使用者及相關對象即可。

1,啟動到mount狀態,修改replication_dependency_tracking參數
alter system set replication_dependency_tracking =false scope=spfile;

2,啟動資料庫至open狀態
hrdb1>shutdown immediate
hrdb1>startup

3,執行指令碼doptim.bsq,oracle 10g版本可參考執行附錄指令碼
@$ORACLE_HOME/rdbms/admin/doptim.bsq

此時,使用者已建立

hrdb1>select username from dba_users;

USERNAME
------------------------------
OUTLN

4,修改回replication_dependency_tracking參數為true

alter system set replication_dependency_tracking =true scope=spfile;


5,重新啟動資料庫,系統復原正常
hrdb1>shutdown abort
ORACLE 常式已經關閉。
hrdb1>startup
ORACLE 常式已經啟動。

Total System Global Area 4392697856 bytes
Fixed Size                  2233616 bytes
Variable Size            1090521840 bytes
Database Buffers         3288334336 bytes
Redo Buffers               11608064 bytes
資料庫裝載完畢。
資料庫已經開啟。
hrdb1>select username from dba_users;

USERNAME
------------------------------
WJ
OUTLN
SYS
SYSTEM
HR
STRMADMIN

已選擇6行。


由於版本是oracle 11g,直接執行相關指令碼即可,oracle 10g版本可以參考《Script to Create User OUTLN in 10.2 [ID 422983.1]》

備忘:用於複製的一個參數,第一次碰到,做個記錄
REPLICATION_DEPENDENCY_TRACKING enables or disables dependency tracking for read/write operations to the database. Dependency tracking is essential for propagating changes in a replicated environment in parallel.

參考資料:
Unable To Start The Database With OUTLN Schema Dropped ORA-01092& ORA-18008 [ID 855104.1]
Script to Create User OUTLN in 10.2 [ID 422983.1]

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.