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

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[Oracle] Upgrade From 12C To 18C (18.3) - ORA 942 Errors Are Observed

[复制链接]
跳转到指定楼层
楼主
发表于 7 天前 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
现象:
After an upgrade to 18C, one of the pl/sql block is failing and throwing a 942 Error in one of the sql which is dynamically generating:
PARSE ERROR #140737245922752:len=207 dep=2 uid=63 oct=3 lid=63 tim=2418737549978 err=942<<<<
SELECT distinct TBL$OR$IDX$PART$NUM("ENTITY_.....) ORDER BY 1
about to signal 942


改动:
Database upgrade to 18C from 12C.

原因:
This is due to an internal bug:

Bug 29970587 - ORA-00942 WHILE RUNNING THE PROCEDURE AFTER UPGRADE TO 12.2.0.1
During the creation of TAB$, query current user is set as table owner and schema is also set as table owner so owner name is not attached to the table name in the query.


处理方法:
1. Bug is fixed in 20.1

2. Apply Patch 29970587

3. Or use following workaround:

ALTER SESSION SET "_fix_control"="20379571:0"

ALTER SESSION SET"_subquery_pruning_enabled"=false

ALTER SESSION SET "optimizer_features_enable"=12.1.0.2

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-24 21:32 , Processed in 0.086162 second(s), 21 queries .

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

© 2001-2020

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