--两个相关视图v$logv$logfile alter system switch logfile; --强制日志切换alter system checkpoint; --强制检查点 --添加日志组alter database add logfile group 4 ('/u01/app/oracle/oradata/dbtest/redo04a.log', '/u01/app/oracle/redofile/redo04b.log') size 50M; --删除日志组alter…
--查看归档模式archive log list select log_mode from v$database; --修改为归档模式(mount下)alter database archivelog --修改为非归档模式(mount下)alter database noarchivelog --切换日志三个相关命令SQL> alter system switch logfile;SQL> alter system archive log current;SQL> alter syste…
经验总结: 联机日志分为当前联机日志和非当前联机日志,非当前联机日志的损坏是比较简单的,一般通过clear命令就可以解决问题. 损坏非当前联机日志:1.启动数据库,遇到ORA-00312 or ORA-00313错误,如:ORA-00313: open failed for members of log group 4 of thread 1ORA-00312: online log 3 thread 1: '/opt/oracle/db04/oradata/ORCL/redo03.log'从这…