启动归档时提示:ORA-00265: instance recovery required, cannot set ARCHIVELOG mode

故障现象:

将数据库修改为归档模式时,有如下的提示:

SQL> alter database archivelog;

alter database archivelog

*

ERROR at line 1:

ORA-00265: instance recovery required, cannot set ARCHIVELOG mode

原因分析:

将数据库关闭使用了, shutdown abort或者startup force mount等非一致性关闭,导致数据库

数据文件,控制文件,日志文件三者不同步,下次启动数据库时需要进行实例恢复。只有实例恢复后,数据库一致了,才能更改归档模式。

解决办法:

将数据库启动到OPEN状态后,正常(一致性)关闭,然后再启动到MOUNT阶段,修改归档模式。

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  623546368 bytes

Fixed Size                  1338308 bytes

Variable Size             436208700 bytes

Database Buffers          180355072 bytes

Redo Buffers                5644288 bytes

Database mounted.

SQL> alter database archivelog;

Database altered.

SQL> alter database open;

Database altered.

总结:

只有在数据库一致的情况下,才能归档。

http://blog.itpub.net/25851087/viewspace-764035/

时间: 2024-08-04 18:20:37

启动归档时提示:ORA-00265: instance recovery required, cannot set ARCHIVELOG mode的相关文章

【小错误】起归档是遇到ORA-00265: instance recovery required, cannot set ARCHIVELOG mode

今天在起归档时遇到ORA-00265: instance recovery required, cannot set ARCHIVELOG mode的错误 从错误我们能够看到是由于datafile,controlfile,redolog中的SCN号不一致导致无法开启归档,那么导致该问题的解决办法是由于我重新启动数据库到mount的时候采用的是startup force mount;由于这个命令实际上是做了两步操作.分别例如以下:1.shutdown abort    ---强制关闭数据库2.st

『ORACLE』修改归档时报错:instance recovery required, cannot set ARCHIVELOG mode

SQL> alter database archivelog;alter database archivelog*ERROR at line 1:ORA-00265: instance recovery required, cannot set ARCHIVELOG mode 正常关库.启库使数据库一致性关闭 SQL>shutdown immediate SQL>startup 在关库.启动到mount状态 SQL>shutdown immediate SQL>startup

ORA-00265: instance recovery required, cannot set ARCHIVELOG mode

问题现象: 我在执行开启归档命令后报错误ORA-00265 SQL> alter database archivelog; alter database archivelog * ERROR at line 1: ORA-00265: instance recovery required, cannot set ARCHIVELOG mode 问题分析: 从如上错误我们可以看到是因为datafile,controlfile,redolog中的SCN号不一致导致无法开启归档,那么导致该问题的原因是

【小错误】ORA-00265: instance recovery required, cannot set ARCHIVELOG mode

1.错误描述:今天在起归档的时候报一下错误: SQL> alter database archivelog; alter database archivelog * ERROR at line 1: ORA-00265: instance recovery required, cannot set ARCHIVELOG mode 2.从错误上看到是由于三大文件(datafile,controlfile,logfile)的scn不一致导致,造成scn不一致的原因是我们用了shutdown abor

启动Oracle时提示:ORA-01078:failure in processing system parameters

一.使用环境操作系统:CentOS release 6.2 (Final) 数据库:Oracle 12g数据库主目录:/ora12/product/product/12.1.0/db_1 二.问题描述 用sys用户登录sqlplus后,用startup命令启动Oracle时提示:ORA-01078:failure in processing system parametersLRM-00109: could not open parameter file '/ora12/product/prod

关于DOS下启动MySQL时提示服务名无效

主要原因:启动时:net start mysql 而打开服务后发现,本地服务中mysql这个服务实际名字为mysql55,故启动语句应为:net  start mysql55: 以下摘自课程提问: 你要看你的服务里存在不存在相应的服务.如下图: 如存在,再看下服务名是否拼写正确. 新建/删除mysql服务,mysql中已为我们提供相应的程序,使用mysqld就可以实现添加/删除mysql服务. 添加mysql服务: “mysqld -install 服务名(自定义)” 删除mysql服务: "m

启动PHP时提示初始化错误

[[email protected] php]# sbin/php-fpm -t [08-Dec-2015 23:08:13] ERROR: failed to open configuration file '/usr/local/php/etc/php-fpm.conf': No such file or directory (2) [08-Dec-2015 23:08:13] ERROR: failed to load configuration file '/usr/local/php/

linux下使用Android studio启动模拟器时提示 waiting for target device to come online 的问题

方法来自:http://stackoverflow.com/questions/42612468/how-can-i-get-more-information-about-waiting-for-target-device-to-come-online 原因:android studio 下载的linux emulator, 版本26.1, 里面自带的库文件跟系统不兼容,可能存在版本上的兼容问题 文件位于androoid sdk/emulator/lib64/libstdc++ 应该源自SDK自

ubuntu myeclipse 启动时提示 A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be avail ....

jdk已经安装过但是启动eclipse时提示“A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be avail ” 解决方法 终端进入你的eclipse目录,然后输入: mkdir jrecd jre ln -s 你的JDK目录/bin bin