eygle.com   eygle.com
eygle.com  
 

« 游览的勇气 香山归来记 | Blog首页 | Oracle9i与Oracle10g之间的高级复制配置 »

如何启动DataGuard的备用数据库

作者:eygle |【转载时请以超链接形式标明文章和作者信息及本声明
链接:

一大早来到公司,打开邮箱,发现收到了一堆的报警邮件,一个Standby数据库Down掉了。

登陆检查主库,警告日志记录了错误信息:

*** 2006-10-30 07:32:10.614
kcrrfail: dest:2 err:12560 force:0
ORA-12560: TNS:protocol adapter error
*** 2006-10-30 07:34:10.615
Error 12541 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'bmarksb'
Error 12541 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'bmarksb'
Heartbeat failed to connect to standby 'bmarksb'. Error is 12541.
*** 2006-10-30 07:34:10.615
kcrrfail: dest:2 err:12541 force:0
ORA-12541: TNS:no listener
*** 2006-10-30 07:36:10.615
Error 12541 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'bmarksb'
Error 12541 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'bmarksb'
Heartbeat failed to connect to standby 'bmarksb'. Error is 12541.

马上登陆从库主机,手工启动备用数据库:

[oracle@wapcom2 bdump]$ sqlplus "/ as sysdba"

SQL*Plus: Release 9.2.0.6.0 - Production on Mon Oct 30 08:17:24 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

Connected to an idle instance.

SQL> startup nomount;
ORACLE instance started.

Total System Global Area 470881780 bytes
Fixed Size 452084 bytes
Variable Size 167772160 bytes
Database Buffers 301989888 bytes
Redo Buffers 667648 bytes
SQL> alter database mount standby database;

Database altered.

SQL> alter database recover managed standby database disconnect from session;

Database altered.

SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production
[oracle@wapcom2 bdump]$ lsnrctl start

观察从库的日志信息,发现归档可以自动应用:

[oracle@wapcom2 bdump]$ tail -f alert_bmark.log
Standby Database mounted.
Completed: alter database mount standby database
Mon Oct 30 08:19:23 2006
alter database recover managed standby database disconnect from session
Attempt to start background Managed Standby Recovery process
MRP0 started with pid=12
MRP0: Background Managed Standby Recovery process started
Media Recovery Waiting for thread 1 seq# 5151
Mon Oct 30 08:19:29 2006
Completed: alter database recover managed standby database di
Mon Oct 30 08:22:58 2006
Media Recovery Log /opt/oracle/oradata/bmark/stdarch/1_5151.arc
Media Recovery Log /opt/oracle/oradata/bmark/stdarch/1_5152.arc
Media Recovery Log /opt/oracle/oradata/bmark/stdarch/1_5153.arc
Media Recovery Log /opt/oracle/oradata/bmark/stdarch/1_5154.arc
Media Recovery Log /opt/oracle/oradata/bmark/stdarch/1_5155.arc
Media Recovery Waiting for thread 1 seq# 5156

再检查原因,发现原来是主机出现问题,在夜间不断重起:

-bash-2.05b$ last |grep reboot
reboot system boot 2.4.21-15.ELsmp Mon Oct 30 08:10 (02:14)
reboot system boot 2.4.21-15.ELsmp Mon Oct 30 07:51 (02:32)
reboot system boot 2.4.21-15.ELsmp Mon Oct 30 07:38 (02:45)
reboot system boot 2.4.21-15.ELsmp Mon Oct 30 07:35 (02:48)
reboot system boot 2.4.21-15.ELsmp Mon Oct 30 07:21 (03:02)
reboot system boot 2.4.21-15.ELsmp Mon Oct 30 07:18 (03:05)
reboot system boot 2.4.21-15.ELsmp Mon Oct 30 06:39 (03:44)
reboot system boot 2.4.21-15.ELsmp Mon Oct 30 06:37 (03:46)
reboot system boot 2.4.21-15.ELsmp Mon Oct 30 06:32 (03:51)
reboot system boot 2.4.21-15.ELsmp Mon Oct 30 06:03 (04:21)
reboot system boot 2.4.21-15.ELsmp Mon Oct 30 01:48 (08:36)
reboot system boot 2.4.21-15.ELsmp Mon Oct 30 01:23 (09:01)
reboot system boot 2.4.21-15.ELsmp Mon Oct 30 00:39 (09:44)

初步看来是硬件出现了故障,最近的硬件故障极为频繁,年底也到了事故多发期
提醒大家也多多注意。

参考文档:
http://www.eygle.com/ha/dataguard-step-by-step.htm

-The End-


历史上的今天...
      >> 2007-10-30文章:
             装修日记-瓷砖我选欧神诺
      >> 2005-10-30文章:
             穿越15年的记忆
             Oracle10g中可以抛弃命令行吗
             Lilina与李敖
      >> 2004-10-30文章:
------
这篇 【如何启动DataGuard的备用数据库】来自 www.eygle.com | CSDN技术网摘| del.icio.us|365Key

By eygle on 2006-10-30 10:57 | Comments (10) | Posted to Case | HowTo | Edit |Pageviews:

相关文章 随机文章
  • Oracle10g DataGuard中ORA-16026错误解决
  • ORA-00704 与 bootstrap 错误
  • 这是一个Oracle普及的时代
  • Duplicate standby 与 RMAN-05501 错误
  • duplicate standby 与 RMAN-05507 错误
  • 在ITPUB年会上的演讲
    SQL*Net more data to client意味着什么?
    请客吃饭 报名征集中...
    打针、吃糖丸-Baby安华医院游记
    OPTIMIZER_INDEX_COST_ADJ与成本计算
    搜索本站:

    留言 (10)

    thanks for inform!

    Posted by: yxyup at October 30, 2006 12:27 PM

    大师,请问一下你是通过什么方法实现收到警告邮件的阿?

    Posted by: qsxing at November 1, 2006 7:26 PM

    Unix上用shell脚本实现自动发送邮件很容易啊。

    Posted by: eygle at November 1, 2006 11:13 PM

    大师,请问是用的msmtp和mutt实现的,还是什么其他的方法实现的

    Posted by: qsxing at November 2, 2006 4:11 PM

    我配置了一下,就是配置不成功?!
    不晓得那里出错了

    Posted by: qsxing at November 2, 2006 4:13 PM

    我的是Unix,用mailx就可以了

    Posted by: eygle at November 3, 2006 10:25 AM

    请问警告邮件的触发条件是什么?如果发现警告日志里有新增的ora错误就发邮件会不会太频繁?可能有些无关紧要的错误信息不断触发邮件的发送。

    Posted by: novenbersky at February 27, 2007 9:44 AM

    ORA错误会频繁么?
    每一天ORA错误都需要DBA介入确认其原因的。

    Posted by: eygle at February 27, 2007 10:15 AM

    我是打算设个短信网关,用短信来报警。就是担心没必要的短信会太多,影响手机的正常使用。既然eygle都这么说了,我就放心了。

    Posted by: novenbersky at February 27, 2007 10:28 AM

    mfjwgbfb http://vfnpdpdk.com chiigzyr ieywqwmf

    Posted by: opjbzrbi at March 13, 2007 2:21 PM

    发表留言:



    Remember Me?
    (输入验证码后方可评论,谢谢支持)



    CopyRight © 2004 eygle.com, All rights reserved.