运维联盟俱乐部

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

[故障处理] ORA-16698

[复制链接]
  • TA的每日心情
    开心
    2023-8-9 11:05
  • 发表于 2021-8-9 21:58:54 | 显示全部楼层 |阅读模式
    19.12,在配置dg broker得时候报错ORA-16698
    1. [oracle@vm2 ~]$ dgmgrl
    2. DGMGRL for Linux: Release 19.0.0.0.0 - Production on Mon Aug 9 21:39:32 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> sys@ora19
    7. Unrecognized command "sys", try "help"
    8. DGMGRL> connect sys@ora19
    9. Password:
    10. Connected to "ora19"
    11. Connected as SYSDBA.
    12. DGMGRL> create configuration 'dgcfg' as primary database is ora19 connect identifier is ora19;
    13. Configuration "dgcfg" created with primary database "ora19"
    14. DGMGRL> add database ora19b as connect identifier is ora19b maintained as physical;   
    15. Error: ORA-16698: member has a LOG_ARCHIVE_DEST_n parameter with SERVICE attribute set

    16. Failed.
    复制代码
    1. [oracle@vm1 ~]$ oerr ora 16698
    2. 16698, 00000, "member has a LOG_ARCHIVE_DEST_n parameter with SERVICE attribute set"
    3. // *Cause:  One or more LOG_ARCHIVE_DEST_n initialization parameters that
    4. //          contain a SERVICE attribute for another member in the
    5. //          configuration were set on the new member when attempting to add a
    6. //          standby database or far sync instance to the configuration.
    7. // *Action: Clear all LOG_ARCHIVE_DEST_n initialization parameters that
    8. //          contain a SERVICE attribute for another member in the configuration
    9. //          on the new member to be added.
    复制代码
    主备库都置空log_archive_dest_n参数,重启实例
    1. SYS@ora19> alter system reset log_archive_dest_1;

    2. System altered.

    3. SYS@ora19> alter system reset log_archive_dest_2;

    4. System altered.

    5. SYS@ora19> shutdown immediate
    6. Database closed.
    7. Database dismounted.
    8. ORACLE instance shut down.
    9. SYS@ora19> startup
    10. ORACLE instance started.
    复制代码
    配置成功
    1. [oracle@vm2 ~]$ dgmgrl
    2. DGMGRL for Linux: Release 19.0.0.0.0 - Production on Mon Aug 9 21:52:41 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> create configuration 'dgcfg' as primary database is ora19 connect identifier is ora19;
    11. Error: ORA-16504: The Oracle Data Guard broker configuration already exists.

    12. Failed.
    13. DGMGRL> add database ora19b as connect identifier is ora19b maintained as physical;
    14. Database "ora19b" added
    复制代码





    回复

    使用道具 举报

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

    本版积分规则

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

    GMT+8, 2024-5-17 12:42 , Processed in 0.045960 second(s), 21 queries , Gzip On.

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

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