Welcome 微信登录

首页 / 数据库 / MySQL / Oracle 11g数据库维护中错误总结

Oracle 11g数据库维护中错误总结开启归档日志失败
SQL> alter database archivelog;
alter database archivelog
*
ERROR at line 1:
ORA-00265: instance recovery required, cannot set ARCHIVELOG mode    --上欠数据库意外中止才会出现这种情况,千万不要用shutdown abort终止数据库解决方法:
SQL> shutdown immediate   --停止数据库
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup   --打开数据库
ORACLE instance started.
Total System Global Area  661209088 bytes
Fixed Size          1338560 bytes
Variable Size       486540096 bytes
Database Buffers      167772160 bytes
Redo Buffers            5558272 bytes
Database mounted.
Database opened.
SQL> shutdown immediate    --正常停止数据库
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount    --数据库启动到挂载状态
ORACLE instance started.
Total System Global Area  661209088 bytes
Fixed Size          1338560 bytes
Variable Size       486540096 bytes
Database Buffers      167772160 bytes
Redo Buffers            5558272 bytes
Database mounted.
SQL> alter database archivelog;    --修改成功
Database altered.
SQL>测试:
SQL> select log_mode from v$database;    --查看数据库是否为归档模式
LOG_MODE
------------
ARCHIVELOG
SQL>更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12MySQL主从复制配置详述Oracle 11g数据库之数据导入导出与事物相关资讯      Oracle 11g 
  • Oracle 11g导入到10g引起的错误  (11/16/2015 10:55:27)
  • Oracle 11g 导库导不出空表问题  (08/19/2015 19:55:58)
  • Oracle 11g统计信息收集--多列统计  (07/24/2015 10:32:39)
  • Oracle 11gClone安装方法  (08/24/2015 20:25:41)
  • Oracle 11g中和SQL TUNING相关的新  (08/12/2015 11:22:52)
  • Oracle 11g数据泵详解  (07/08/2015 08:29:51)
本文评论 查看全部评论 (0)
表情: 姓名: 字数
<