SQL> alter database archivelog;
alter database archivelog
*
ERROR at line 1:
ORA-00265: instance recovery required, cannot set ARCHIVELOG mode
原因为上次库非正常关闭导致数据库处于不一致状态,重新启动实例到mount状态即可
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 71305460 bytes
Database Buffers 92274688 bytes
Redo Buffers 2973696 bytes
Database mounted.
SQL> alter database archivelog;
Database altered.
SQL>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29802484/viewspace-1418477/ ,如需转载,请注明出处,否则将追究法律责任。