oracle 11g,安装后丢失了日志文件,启动数据库发生错误
ORA-16038: 日志 2 序列号 23 无法归档
ORA-00312: 联机日志 2 线程 1:
'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG'
ORA-16032: 参数 LOG_ARCHIVE_DEST_1 的目标字符串无法被转换
ORA-19801: 尚未设置初始化参数 DB_RECOVERY_FILE_DEST查看alter日志文件提示
ORA-16032: parameter LOG_ARCHIVE_DEST_1 destination string cannot be translated
ORA-19801: initialization parameter DB_RECOVERY_FILE_DEST is not set查看arch文件内的提示
ORA-16038: log 3 sequence# 25 cannot be archived
ORA-00312: online log 3 thread 1: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG'
ORA-16032: parameter LOG_ARCHIVE_DEST_1 destination string cannot be translated
ORA-19801: initialization parameter DB_RECOVERY_FILE_DEST is not set
*** 2011-10-14 18:02:25.375 20256 kcrr.c
ORA-16014: log 3 sequence# 25 not archived, no available destinations
ORA-00312: online log 3 thread 1: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG'这个原因是因为丢失了日志文件的路径,我们可以将该日志清除,启动即可
启动到mount阶段
startup mount
SQL> alter database clear unarchived logfile 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\O
RCL\REDO02.LOG';启动数据库
alter database open;
切换日志,看是否正常:
启动一直没显示,查看日志提示:
ORA-16038: log 3 sequence# 25 cannot be archived
ORA-00312: online log 3 thread 1: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG'
ORA-16032: parameter LOG_ARCHIVE_DEST_1 destination string cannot be translated
ORA-19801: initialization parameter DB_RECOVERY_FILE_DEST is not set关闭数据库,启动到mount阶段,设置一下log_archive_dest_1参数
SQL> alter system set log_archive_dest_1='location=c:\oracle' scope=spfile;
重启一下数据库,切换日志
SQL> alter system switch logfile;
系统已更改。