Oracle 11gでアーカイブログをオープンエラーメッセージの対策

1.アーカイブログのオープンに失敗した
SQL> alter database archivelog;
alter database archivelog
*
ERROR at line 1:
ORA-00265: instance recovery required, cannot set ARCHIVELOG mode //shutdown abortでデータベースを終了 NG

2.解決方法:
SQL> shutdown immediate //データベースを停止
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup –データベースを開く
ORACLE instance started.
Total System Global Area 661209088 bytes
Fixed Size 1338560 bytes
Variable Size 486540096 bytes
Database Buffers 167772160 bytes
Redo Buffers 5558272 bytes
Database mounted.
Database opened.
SQL> shutdown immediate //データベースを正常に停止
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount //データベースはマウント状態を起動
ORACLE instance started.
Total System Global Area 661209088 bytes
Fixed Size 1338560 bytes
Variable Size 486540096 bytes
Database Buffers 167772160 bytes
Redo Buffers 5558272 bytes
Database mounted.
SQL> alter database archivelog; //修正成功
Database altered.
SQL>

3.テスト:
SQL> select log_mode from v$database; //データベースはアーカイブモードかどうかを確認する
LOG_MODE
————
ARCHIVELOG
SQL>

DataBase

Posted by arkgame