ORA-00265问题的解决方法

今天在设置归档模式的时候遇到了这个问题:
在open的情况下设置归档路径:
SQL>alter system set log_archive_dest_1='location=/u01/app/oracle/arch_prod'scope=spfile;
SQL>starup mount force;
ORACLE instance started.

Total System Global Area 419430400 bytes
Fixed Size 1262140 bytes
Variable Size 134221252 bytes
Database Buffers 281018368 bytes
Redo Buffers 292860 bytes
Database mounted.

SQL>alter database archivelog;
alter database archivelog
*
ERROR at line 1:
ORA-00265:instance recovery required,cannot set ARCHIVELOG mode

报这个错误,我想了想,原来是刚才启动的太暴力了,用了FORCE,相当于shutdown abort,然后再启。
这次温柔一点吧
SQL>shutdown immediate;
ORA-01109:database not open
SQL>startup mount ;
ORACLE instance started.

Total System Global Area 419430400 bytes
Fixed Size 1262140 bytes
Variable Size 134221252 bytes
Database Buffers 281018368 bytes
Redo Buffers 292860 bytes
Database mounted.
SQL>alter database archivelog;
alter database archivelog
*
ERROR at line 1:
ORA-00265:instance recovery required,cannot set ARCHIVELOG mode
还报这个错误,哦,想起来了,可能必须要在OPEN的状态下安全关闭才行,因为刚才也报了01109的错。
SQL>alter database open;
SQL>shutdown immediate;
SQL>startup mount;
ORACLE instance started.

Total System Global Area 419430400 bytes
Fixed Size 1262140 bytes
Variable Size 134221252 bytes
Database Buffers 281018368 bytes
Redo Buffers 292860 bytes
Database mounted.

SQL>alter database archivelog;

Database altered.
成功了。我们查看一下。
SQL>archive log list;

resserver.php?blogId=43523&resource=_WOWOE%7BT(4JG%403L4A7%7D3PQ2.jpg&mode=preview

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25116248/viewspace-1059077/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/25116248/viewspace-1059077/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值