运维联盟俱乐部

 找回密码
 立即注册
查看: 5654|回复: 0

[技术专题] fsfo

[复制链接]
  • TA的每日心情
    开心
    2023-8-9 11:05
  • 发表于 2021-8-10 22:21:01 | 显示全部楼层 |阅读模式
    在主库上开启fsfo,提示flashback没开,检查发现主库开了,备库没开,备库开闪回后,再看下fsfo

    1. [oracle@vm1 ~]$ dgmgrl
    2. DGMGRL for Linux: Release 19.0.0.0.0 - Production on Tue Aug 10 21:52:20 2021
    3. Version 19.12.0.0.0

    4. Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

    5. Welcome to DGMGRL, type "help" for information.
    6. DGMGRL> connect sys@ora19
    7. Password:
    8. Connected to "ora19"
    9. Connected as SYSDBA.
    10. DGMGRL> show configuration

    11. Configuration - dgcfg

    12.   Protection Mode: MaxPerformance
    13.   Members:
    14.   ora19  - Primary database
    15.     ora19b - Physical standby database

    16. Fast-Start Failover:  Disabled

    17. Configuration Status:
    18. SUCCESS   (status updated 25 seconds ago)

    19. DGMGRL> enable fast_start failover
    20. Warning: ORA-16827: Flashback Database is disabled

    21. Enabled in Potential Data Loss Mode.
    复制代码
    提示observer没开启,用命令开启一下,发现连个库都连接才能都取消掉警告信息
    1. DGMGRL> connect sys@ora19  
    2. Password:
    3. Connected to "ora19"
    4. Connected as SYSDBA.
    5. DGMGRL> show configuration

    6. Configuration - dgcfg

    7.   Protection Mode: MaxPerformance
    8.   Members:
    9.   ora19  - Primary database
    10.     Warning: ORA-16819: fast-start failover observer not started

    11.     ora19b - (*) Physical standby database
    12.       Warning: ORA-16819: fast-start failover observer not started

    13. Fast-Start Failover: Enabled in Potential Data Loss Mode

    14. Configuration Status:
    15. WARNING   (status updated 43 seconds ago)
    复制代码
    1. [oracle@vm2 ~]$ pwd
    2. /home/oracle
    3. [oracle@vm2 ~]$ nohup dgmgrl sys/oracle@ora19 "start observer file=FSFO.dat">>fsfo.log 2>&1 &
    4. [1] 3123
    5. [oracle@vm2 ~]$ nohup dgmgrl sys/oracle@ora19b "start observer file=FSFO.dat">>fsfo.log 2>&1 &
    6. [2] 3177
    复制代码
    启动了两个分别到主备的observer后,再看fsfo,状态正常了
    1. DGMGRL> show configuration

    2. Configuration - dgcfg

    3.   Protection Mode: MaxPerformance
    4.   Members:
    5.   ora19  - Primary database
    6.     ora19b - (*) Physical standby database

    7. Fast-Start Failover: Enabled in Potential Data Loss Mode

    8. Configuration Status:
    9. SUCCESS   (status updated 45 seconds ago)
    复制代码
    1. DGMGRL> edit configuration set protection mode as maxavailability;
    2. Error: ORA-16654: fast-start failover is enabled

    3. Failed.
    4. DGMGRL> disable fast_start failover;
    5. Disabled.
    6. DGMGRL> edit database ora19b set property 'LogXptMode'='SYNC';
    7. Property "LogXptMode" updated
    8. DGMGRL> edit configuration set protection mode as maxavailability;
    9. Succeeded.
    10. DGMGRL> enable fast_start failover
    11. Enabled in Zero Data Loss Mode.
    12. DGMGRL>
    复制代码
    1. DGMGRL> SHOW FAST_START FAILOVER;

    2. Fast-Start Failover: Enabled in Zero Data Loss Mode

    3.   Protection Mode:    MaxAvailability
    4.   Lag Limit:          0 seconds

    5.   Threshold:          30 seconds
    6.   Active Target:      ora19b
    7.   Potential Targets:  "ora19b"
    8.     ora19b     valid
    9.   Observer:           vm2
    10.   Shutdown Primary:   TRUE
    11.   Auto-reinstate:     TRUE
    12.   Observer Reconnect: (none)
    13.   Observer Override:  FALSE

    14. Configurable Failover Conditions
    15.   Health Conditions:
    16.     Corrupted Controlfile          YES
    17.     Corrupted Dictionary           YES
    18.     Inaccessible Logfile            NO
    19.     Stuck Archiver                  NO
    20.     Datafile Write Errors          YES

    21.   Oracle Error Conditions:
    22.     (none)
    复制代码





    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    运维联盟俱乐部 ( 冀ICP备19036648号 )

    GMT+8, 2024-5-17 11:23 , Processed in 0.050883 second(s), 21 queries , Gzip On.

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表