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

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[Oracle] 逻辑备库上创建JOB报ORA-01031错误

[复制链接]
跳转到指定楼层
楼主
发表于 2020-2-1 15:03:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在逻辑备库上创建任何JOB,包含使用SYS用户去创建,都会报这个:
ora-01031
ora-06152 SYS.DBMS_INTERNAL_LOGSTDBY
...


经确认,这个是ORACLE故意这样设计的。
创建job的时候job的id是oracle自动编号的,所以如果允许的话,可能会引起主库和LOGICAL STANDBY库上的ID冲突


Oracle PL/SQL supplied packages that modify system metadata typically are not
supported by SQL Apply, and therefore their effects are not visible on the logical
standby database. Examples of such packages are DBMS_JAVA, DBMS_REGISTRY,
DBMS_ALERT, DBMS_SPACE_ADMIN, DBMS_REFRESH, DBMS_REDEFINITION, DBMS_
SCHEDULER, and DBMS_AQ.
Specific support for DBMS_JOB has been provided. Job execution is suspended on a
logical standby database and jobs cannot be scheduled directly on the standby
database. However, jobs submitted on the primary database are replicated in the
standby database. In the event of a switchover or failover, jobs scheduled on the
original primary database will automatically begin running on the new primary
database

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-27 03:24 , Processed in 0.102728 second(s), 20 queries .

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

© 2001-2020

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