暂无图片
oracle adg不能同步
我来答
分享
Tomcat
2021-09-03
oracle adg不能同步

Alert 日志发现如下错误

Fri Sep 03 09:18:59 2021
Media Recovery Log /arch/1_436911_1005783801.dbf
Media Recovery Waiting for thread 2 sequence 503832
Fetching gap sequence in thread 2, gap sequence 503832-503832
Error 1017 received logging on to the standby
------------------------------------------------------------
Check that the primary and standby are using a password file
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
and that the SYS password is same in the password files.
returning error ORA-16191
------------------------------------------------------------
FAL[client, USER]: Error 16191 connecting to JDEDB for fetching gap sequence
Fri Sep 03 09:19:04 2021
Errors in file /u01/app/oracle/diag/rdbms/jdedbdg/JDEDB/trace/JDEDB_pr00_34873.trc:
ORA-16191: Primary log shipping client not logged on standby
RFS[3]: Opened log for thread 2 sequence 503832 dbid 3892519434 branch 1005783801
Fri Sep 03 09:19:18 2021
Archived Log entry 299931 added for thread 2 sequence 503832 rlc 1005783801 ID 0xe8ce7e1f dest 2:
Fri Sep 03 09:19:18 2021
Media Recovery Log /arch/2_503832_1005783801.dbf


说明:1 . 我并没有修改oracle任何账户的密码

           2. 我把主库的密码复制到了adg库后还是同样报错,不过我发现adg在应用gap的归档了。我担心还是出现adg不能同步的症状

我来答
添加附件
收藏
分享
问题补充
6条回答
默认
最新
Tomcat
上传附件:JDEDB_pr00_34873.trc
暂无图片 评论
暂无图片 有用 0
打赏 0
Lucifer三思而后行
暂无图片

检查是否存在GAP,然后备库是否在追归档,如果都正常的话,那应该问题不大。

暂无图片 评论
暂无图片 有用 0
打赏 0
薛晓刚

oracle的adg非常成熟和稳定,和mysql不同,mysql不同步你可以跳过。oracle不行。你只要追平了就是一致的。中间一定是连续的,数据没有丢失。如果中间断了,那么他就卡在中断的那一个时刻,一直停在那里。

暂无图片 评论
暂无图片 有用 0
打赏 0
Tomcat

我在备库上执行

select SEQUENCE#,FIRST_TIME,NEXT_TIME ,APPLIED from v$archived_log order by 1 desc; 发现日志又不应用了。

在主库上执行select * from V$ARCHIVE_GAP; 并没有发现gap。


在主库的第二个节点的alert日志里面还能看见下面的错误

Errors in file /u01/app/oracle/diag/rdbms/jdedb/JDEDB2/trace/JDEDB2_arc8_113933.trc:
ORA-01017: invalid username/password; logon denied
Fri Sep 03 10:47:27 2021
Error 1017 received logging on to the standby
------------------------------------------------------------
Check that the primary and standby are using a password file
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
and that the SYS password is same in the password files.
returning error ORA-16191

暂无图片 评论
暂无图片 有用 0
打赏 0
Lucifer三思而后行
暂无图片

在主库上执行select * from V$ARCHIVE_GAP; 并没有发现gap。


上面的语句,在备库执行。

暂无图片 评论
暂无图片 有用 0
打赏 0
Tomcat
题主
2021-09-03
刚才在dg库上查了,也没有gap
Tomcat
题主
2021-09-03
备库上log 都是0 了SQL> archive log list; Database log mode Archive Mode Automatic archival Enabled Archive destination /arch Oldest online log sequence 0 Next log sequence to archive 0 Current log sequence 0
Lucifer三思而后行
答主
2021-09-03
那看起来,还是密码文件不对导致的
茂材

备库分别使用easy conn方式与dg tns配的连接串试下报错吗,连接被拒啊

暂无图片 评论
暂无图片 有用 0
打赏 0
Tomcat
题主
2021-09-03
easy conn 和用tns字符串都能正常登录
茂材
答主
2021-09-03
到时想起之前一个类似,网络调整设备导致dg不同步报密码错误不报连接不上。如果dg是正常的突然不同步。最近有过什么变更,或者数据库加过触发器之类的操作
回答交流
Markdown


请输入正文
提交