一次由于arch参数导致oracle11g2 rac 无法启动解决过程

晚上接到用户电话由于ups停电检修,需关闭rac。shutdown immediate 时hang住,abort关闭,但startup时报错:

SQL> startup
ORACLE instance started.

Total System Global Area 1.3629E+10 bytes
Fixed Size                  2194168 bytes
Variable Size            6912214280 bytes
Database Buffers         6677331968 bytes
Redo Buffers               37339136 bytes
Database mounted.
ORA-03113: end-of-file on communication channel
Process ID: 4982
Session ID: 35 Serial number: 3

检查alertlog发现:

Mon Jun 27 20:53:49 2011
ARC1 started with pid=37, OS id=5167
SUCCESS: diskgroup ARCH was mounted
Errors in file /u01/app/oracle/diag/rdbms/zlsora9/zlsora92/trace/zlsora92_ora_5150.trc:
ORA-16038: log 3 sequence# 3 cannot be archived
ORA-00254: error in archive control string ''
ORA-00312: online log 3 thread 2: '+DATA/zlsora9/redo03.log'
ORA-15173: entry 'zlsora9' does not exist in directory '/'
Mon Jun 27 20:53:49 2011
System state dump requested by (instance=2, osid=5150), summary=[abnormal instance termination].
System State dumped to trace file /u01/app/oracle/diag/rdbms/zlsora9/zlsora92/trace/zlsora92_diag_5089.trc
Mon Jun 27 20:53:49 2011
ARC2 started with pid=38, OS id=5169
USER (ospid: 5150): terminating the instance due to error 16038
Dumping diagnostic data in directory=[cdmp_20110627205349], requested by (instance=2, osid=5150), summary=[abnormal instance termination].
Instance terminated by USER, pid = 5150

突然想起来前段时间打开arch时,设置log_archive_dest='+arch/zlsora9',但+arch下并没有zlsora9这个目录,问题找到了,下面解决就很容易了.

解决:

QL> archive log list
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            +ARCH/zlsora9
Oldest online log sequence     10
Next log sequence to archive   10
Current log sequence           11
SQL>
SQL> alter system set log_archive_dest='+arch';

System altered.

SQL>
SQL>
SQL> archive log list
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            +ARCH
Oldest online log sequence     10
Next log sequence to archive   10
Current log sequence           11
SQL>
SQL>
SQL> startup mount
ORA-01081: cannot start already-running ORACLE - shut it down first
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 1.3629E+10 bytes
Fixed Size                  2194168 bytes
Variable Size            6912214280 bytes
Database Buffers         6677331968 bytes
Redo Buffers               37339136 bytes
Database mounted.
Database opened.
SQL> archive log list
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            +ARCH
Oldest online log sequence     13
Next log sequence to archive   14
Current log sequence           14

同理在2号机修改log_archive_dest='+arch';startup正常.

修改参数时要小心呀!

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值