TA的每日心情 | 开心 2023-8-9 11:05 |
---|
|
19.12,在配置dg broker得时候报错ORA-16698
- [oracle@vm2 ~]$ dgmgrl
- DGMGRL for Linux: Release 19.0.0.0.0 - Production on Mon Aug 9 21:39:32 2021
- Version 19.12.0.0.0
- Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
- Welcome to DGMGRL, type "help" for information.
- DGMGRL> sys@ora19
- Unrecognized command "sys", try "help"
- DGMGRL> connect sys@ora19
- Password:
- Connected to "ora19"
- Connected as SYSDBA.
- DGMGRL> create configuration 'dgcfg' as primary database is ora19 connect identifier is ora19;
- Configuration "dgcfg" created with primary database "ora19"
- DGMGRL> add database ora19b as connect identifier is ora19b maintained as physical;
- Error: ORA-16698: member has a LOG_ARCHIVE_DEST_n parameter with SERVICE attribute set
- Failed.
复制代码- [oracle@vm1 ~]$ oerr ora 16698
- 16698, 00000, "member has a LOG_ARCHIVE_DEST_n parameter with SERVICE attribute set"
- // *Cause: One or more LOG_ARCHIVE_DEST_n initialization parameters that
- // contain a SERVICE attribute for another member in the
- // configuration were set on the new member when attempting to add a
- // standby database or far sync instance to the configuration.
- // *Action: Clear all LOG_ARCHIVE_DEST_n initialization parameters that
- // contain a SERVICE attribute for another member in the configuration
- // on the new member to be added.
复制代码 主备库都置空log_archive_dest_n参数,重启实例
- SYS@ora19> alter system reset log_archive_dest_1;
- System altered.
- SYS@ora19> alter system reset log_archive_dest_2;
- System altered.
- SYS@ora19> shutdown immediate
- Database closed.
- Database dismounted.
- ORACLE instance shut down.
- SYS@ora19> startup
- ORACLE instance started.
复制代码 配置成功
- [oracle@vm2 ~]$ dgmgrl
- DGMGRL for Linux: Release 19.0.0.0.0 - Production on Mon Aug 9 21:52:41 2021
- Version 19.12.0.0.0
- Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
- Welcome to DGMGRL, type "help" for information.
- DGMGRL> connect sys@ora19
- Password:
- Connected to "ora19"
- Connected as SYSDBA.
- DGMGRL> create configuration 'dgcfg' as primary database is ora19 connect identifier is ora19;
- Error: ORA-16504: The Oracle Data Guard broker configuration already exists.
- Failed.
- DGMGRL> add database ora19b as connect identifier is ora19b maintained as physical;
- Database "ora19b" added
复制代码
|
|