Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

133

积分

0

好友

17

主题
1#
发表于 2012-5-24 15:52:25 | 查看: 3613| 回复: 0
以前没遇到,最近二周总这样,可能是我忽略了什么地方,困惑中。。。

在Primary standby上都可以,在第三个机器上就是不行。命令如下:
$ nohup dgmgrl sys/oracle@db_pri10g "start observer file='/u01/app/oracle/admin/fsfo_PRI10G.dat'"  > /u01/app/oracle/admin/observer_PRI10G.log &

在第三个机器上执行后,dg 的配置
  1. DGMGRL> show configuration verbose

  2. Configuration
  3.   Name:                FSFO
  4.   Enabled:             YES
  5.   Protection Mode:     MaxAvailability
  6.   Fast-Start Failover: ENABLED
  7.   Databases:
  8.     pri10g - Primary database
  9.     sta10g - Physical standby database
  10.            - Fast-Start Failover target

  11. Fast-Start Failover
  12.   Threshold:           30 seconds
  13.   Observer:            dbserver1
  14.   Shutdown Primary:    TRUE

  15. Current status for "FSFO":
  16. Warning: ORA-16607: one or more databases have failed
复制代码
  1. DGMGRL> show database pri10g

  2. Database
  3.   Name:            pri10g
  4.   Role:            PRIMARY
  5.   Enabled:         YES
  6.   Intended State:  ONLINE
  7.   Instance(s):
  8.     PRI10G

  9. Current status for "pri10g":
  10. Error: ORA-16820: Fast-Start Failover observer is no longer observing this database


  11. DGMGRL>
  12. DGMGRL> show database sta10g

  13. Database
  14.   Name:            sta10g
  15.   Role:            PHYSICAL STANDBY
  16.   Enabled:         YES
  17.   Intended State:  ONLINE
  18.   Instance(s):
  19.     STA10G

  20. Current status for "sta10g":
  21. Error: ORA-16820: Fast-Start Failover observer is no longer observing this database
复制代码
在第三台机器上
$ dgmgrl sys/oracle@db_pri10g
DGMGRL for Linux: Version 10.2.0.4.0 - 64bit Production

Copyright (c) 2000, 2005, Oracle. All rights reserved.

Welcome to DGMGRL, type "help" for information.
Connected.

DGMGRL> start observer
也是可以的

第三台机器上可以通过sqlplus能连接到primary、standby
$ sqlplus sys/oracle@dg_pri10g as sysdba
$ sqlplus sys/oracle@dg_sta10g as sysdba$ sqlplus sys/oracle@db_pri10g as sysdba


TNSNAMES.ORA
  1. DG_PRI10G =
  2.   (DESCRIPTION =
  3.     (ADDRESS_LIST =
  4.       (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.41.145)(PORT = 1522))
  5.     )
  6.     (CONNECT_DATA =
  7.       (SERVICE_NAME = PRI10G.LK)
  8.       (server=dedicated)
  9.     )
  10.   )

  11. DG_PRI10G_S =
  12.   (DESCRIPTION =
  13.     (ADDRESS_LIST =
  14.       (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.41.145)(PORT = 1522))
  15.     )
  16.     (CONNECT_DATA =
  17.       (SERVICE_NAME = PRI10G_DGMGRL.LK)
  18.       (server=dedicated)
  19.     )
  20.   )


  21. DG_STA10G =
  22.   (DESCRIPTION =
  23.     (ADDRESS_LIST =
  24.       (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.41.76)(PORT = 1522))
  25.     )
  26.     (CONNECT_DATA =
  27.       (SERVICE_NAME = STA10G.LK)
  28.       (server=dedicated)
  29.     )
  30.   )

  31. DG_STA10G_S =
  32.   (DESCRIPTION =
  33.     (ADDRESS_LIST =
  34.       (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.41.76)(PORT = 1522))
  35.     )
  36.     (CONNECT_DATA =
  37.       (SERVICE_NAME = STA10G_DGMGRL.LK)
  38.       (server=dedicated)
  39.     )
  40.   )

  41. DB_PRI10G=
  42.    (DESCRIPTION =
  43.       (ADDRESS_LIST =
  44.       (ADDRESS=(PROTOCOL =TCP)(HOST = 192.168.41.145)(PORT = 1522))
  45.       (ADDRESS = (PROTOCOL=TCP)(HOST=192.168.41.76)(PORT=1522))
  46.        )
  47.      (CONNECT_DATA =
  48.          (SERVER=DEDICATED)
  49.          (SERVICE_NAME= PRI10G_TAF.LK)
  50.      )
  51. )
复制代码

[ 本帖最后由 saup007 于 2012-5-25 09:56 编辑 ]
您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-12-26 01:35 , Processed in 0.046418 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569