datapump跨数据库迁移数据时,提示”ORA-39002: invalid operation”错误

ORA-38818

[oracle@testos:/home/oracle]$ oerr ora 38818
38818, 00000, "illegal reference to editioned object %s.%s"
// *Cause:  An attempt was made to violate the rule "A noneditioned object
//          may not depend on an editioned object."
// *Action: Either make this object editioned; or do not make the illegal
//          reference.
[oracle@testos:/home/oracle]$

ORA-38818 iilegal reference to editioned object a.bbb

背景

数据库12.1

场景:
db 中2个用户: a和b。

目标:用户a要访问b中的视图,而且已经能够在a中通过 select * from b.bview查询到数据

此时想 在a中建同义词 create synonym bview for b.bview; 失败,报错 ORA-38818 iilegal reference to editioned object a.bbb

原因&解决

b用户启用了版本控制 (editions enabled),而a没有启用。

故只需要对a同样启用版本控制:

alter user a enable editions;

参考

ORA-38818: illegal reference to editioned object APPS.PARAMOBJECT while creating nested table. — oracle-tech

ORA-39002: invalid operation during datapump TZ version Difference

最近有个datapump跨数据库迁移数据时,提示”ORA-39002: invalid operation”错误, 排除过目录文件权限和语法兼容问题,后来发现是目标库的Timezone Version低于源库的TZ version. 需要升级目标库的TZ VERSION,这里简单记录该问题.

$ impdp xxx@xxx directory=xxx  dumpfile=xxx.dmp logfile=xxx.log table_exists_action=replace 
Import: Release 18.0.0.0.0 - Production on Tue Mar 22 17:40:58 2022
Version 18.3.0.0.0

Copyright (c) 1982, 2018, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
ORA-39002: invalid operati
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值