重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 817|回复: 0
打印 上一主题 下一主题

[Oracle] 逻辑备库11.2.0.4升级到19.20,日志应用报错ORA-26808 ORA-23421

[复制链接]
跳转到指定楼层
楼主
发表于 2023-10-25 18:34:17 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
这里可以参考官方文档 ID 2809432.1


After successfully upgrading the logical standby database from 11.2.0.4 to 19.11.0.0 and with the primary still on 11.2.0.4, below error is seen while applying logs on logical standby.


ORA-26808: Apply process AS02 died unexpectedly.
ORA-23421: job number 4002 is not a job in the job queue


CHANGES
Upgraded database from 11.2.0.4 to 19.11

CAUSE
Job exists on primary under sys schema is not present in standby and hence the statement is failing and  causing the error on standby log apply
It is not required to sync 'SYS'.'JOB$' related transactions on logical standby

SOLUTION
Execute the below steps on Logical standby database to start the SQL apply:


1. Stop logical apply :


SQL> alter database stop logical standby apply;

2. Create a skip rule on sys.job$:


SQL> exec dbms_logstdby.skip('DML','SYS','JOB$');
SQL> exec dbms_logstdby.skip('SCHEMA_DDL','SYS','JOB$');

Confirm the skip rules are present:


SQL> select statement_opt, name from dba_logstdby_skip where name = 'JOB$';


3. Start logical apply :


SQL> alter database start logical standby apply;

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

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

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-2 22:04 , Processed in 0.084889 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

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