SQL> alter database archivelog;
alter database archivelog
*
ERROR at line 1:
ORA-00265: instance recovery required, cannot set ARCHIVELOG mode
--实例错误,需要先打开数据库,让数据文件、控制文件、redo log日志同步后再切换归档
SQL> alter database open;
Database altered.
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 918618112 bytes
Fixed Size 2258640 bytes
Variable Size 549456176 bytes
Database Buffers 360710144 bytes
Redo Buffers 6193152 bytes
Database mounted.
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL>
原文地址:https://blog.51cto.com/ssunandmoon/2410406
时间: 2024-10-05 09:34:22