ORA-16014 和 ORA-00312 錯誤解決
今天在做邏輯standby資料庫switchover角色轉換時,啟動資料庫時日誌出現了如下錯誤提示,記錄下來;
primary>startup
Oracle instance started.
Total System Global Area 281018368 bytes
Fixed Size 2020160 bytes
Variable Size 100666560 bytes
Database Buffers 171966464 bytes
Redo Buffers 6365184 bytes
Database mounted.
Database opened.
某一遠端工作階段終端啟動資料庫,給人一種假象,資料庫已經開啟,但是日誌中卻已經報錯了,錯誤資訊如下:
ARC0: Failed to archive thread 1 sequence 45 (4)
ARCH: Archival stopped, error occurred. Will continue retrying
Thu Mar 27 15:27:54 2014
ORACLE Instance orcl - Archival Error
Thu Mar 27 15:27:54 2014
ORA-16014: log 1 sequence# 45 not archived, no available destinations
ORA-00312: online log 1 thread 1: '/u01/app/oradata/orcl/redo01.log'
Thu Mar 27 15:27:54 2014
Errors in file /u01/app/admin/orcl/bdump/orcl_arc0_2955.trc:
ORA-16014: log 1 sequence# 45 not archived, no available destinations
ORA-00312: online log 1 thread 1: '/u01/app/oradata/orcl/redo01.log'
錯誤資訊提示:archive log 無法歸檔,而且報錯資訊看出是 standby01.log該記錄檔被損壞了。
primary>alter database clear unarchived logfile group 1; --將未歸檔的內容清除
Database altered.
primary>shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
primary>startup
ORACLE instance started.
Total System Global Area 281018368 bytes
Fixed Size 2020160 bytes
Variable Size 104860864 bytes
Database Buffers 167772160 bytes
Redo Buffers 6365184 bytes
Database mounted.
Database opened.
在終端執行語句時,眼睛一眨不眨的盯著日誌資訊,最後顯示沒有報錯。
批註:平時做實驗類比練習時,多開啟幾個終端,養成查看日誌資訊的習慣,不至於以後操作生產環境下的資料庫時手忙腳亂。也許用戶端沒有報錯,但是日誌已經提示出錯了。
在CentOS 6.4下安裝Oracle 11gR2(x64)
Oracle 11gR2 在VMWare虛擬機器中安裝步驟
Debian 下 安裝 Oracle 11g XE R2
Oracle 11g從入門到精通 PDF+光碟片原始碼
RHEL6 ASM方式安裝Oracle 11g R2