首页 > 数据库 >oracle使用dblink impdp数据时报错ORA-39169

oracle使用dblink impdp数据时报错ORA-39169

时间:2022-12-10 20:31:53浏览次数:117  
标签:impdp 0.0 leo dblink 10.2 39169 scott oracle ogg

问题描述:oracle使用dblink impdp数据时报错ORA-39169,如下所示:
源 端:oracle 10.2.0.4 64位 + oel 5.11 64位
目标端:oracle 19.16 64位 + centos 7.9 64位
1、异常重现
[oracle@leo-19c-ogg ~]$ nohup impdp system/oracle_4U@SIMDB directory=EXPDP_DIR version=10.2.0.4 NETWORK_LINK=ORCL_LINK flashback_scn=2478277 exclude=statistics parallel=4 schemas=SCOTT logfile=impdp_scott.log logtime=ALL TRANSFORM=DISABLE_ARCHIVE_LOGGING:Y &

[oracle@leo-19c-ogg ~]$ tail -5000f nohup.out

Import: Release 19.0.0.0.0 - Production on Sat Dec 10 18:30:04 2022
Version 19.16.0.0.0

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

Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
ORA-39001: invalid argument value
ORA-39169: Local version of 19.16.0.0.0 cannot work with remote version of 10.2.0.4.0.
2、异常原因
oracle 10.2.0.4通过dblink无法与oracle 19.16进行远程通讯.
3、解决方案
采用直接导入导出的方式.
3.1、源端操作
[oracle@leo-10g-ogg ogg]$ export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
[oracle@leo-10g-ogg ogg]$ exp scott/tiger@orcl file=/home/oracle/scott.dmp tables=dept,emp rows=y log=/home/oracle/exp.log

Export: Release 10.2.0.4.0 - Production on Sun Dec 10 18:48:24 2022

Copyright (c) 1982, 2007, Oracle. All rights reserved.


Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set

About to export specified tables via Conventional Path ...
. . exporting table DEPT 4 rows exported
. . exporting table EMP 14 rows exported
Export terminated successfully without warnings.

将源端dmp文件scp到目标端.
[oracle@leo-10g-ogg ~]$ scp scott.dmp [email protected]:/home/oracle/
3.2、目标端操作
--创建用户并授予权限
sys@SIMDB 2022-12-10 19:28:54> create user scott identified by tiger;

User created.

sys@SIMDB 2022-12-10 19:35:11> grant connect,resource to scott;

Grant succeeded.

sys@SIMDB 2022-12-10 19:37:28> alter user scott quota unlimited on users;

User altered.
--导入测试数据
[oracle@leo-19c-ogg ~]$ export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
[oracle@leo-19c-ogg ~]$ imp scott/tiger file=/home/oracle/scott.dmp full=y

Import: Release 19.0.0.0.0 - Production on Sat Dec 10 19:40:01 2022
Version 19.16.0.0.0

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


Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.16.0.0.0

Export file created by EXPORT:V10.02.01 via conventional path
import done in AL32UTF8 character set and UTF8 NCHAR character set
export server uses AL16UTF16 NCHAR character set (possible ncharset conversion)
. importing SCOTT's objects into SCOTT
. importing SCOTT's objects into SCOTT
. . importing table "DEPT" 4 rows imported
. . importing table "EMP" 14 rows imported
About to enable constraints...
Import terminated successfully without warnings.

标签:impdp,0.0,leo,dblink,10.2,39169,scott,oracle,ogg
From: https://blog.51cto.com/u_12991611/5927844

相关文章

  • KingbaseES数据库通过dblink访问Oracle数据库
    本文介绍如KingbaseES数据库通过dblink访问Oracle数据库。源端:KingbaseES数据库(KingbaseESV008R006C006B0021)目标端:Oracle数据库一、配置Oracle的ODBC1、安装odbc,若有......
  • Oracle通过本地DBLINK访问远程函数
     SELECT SCOTT.PKG_UTIL.FUNC_GET_BASE_RATE@DBLINK(T.BUSI_DT,DECODE(T.RATE_CODE,'OD_LPR','LPR','PBOC......
  • 达梦数据库配置DBLINK
    1 配置同构 DBLINK(DM-DM)1.1 、前置条件两台数据库服务器A(192.168.1.30   DM01),B (192.168.1.20   DM02), 目前只支持同平台,不支持跨平台建外部连接,两个服......
  • 创建dblink
    --查询是否有dblink权限select*fromuser_sys_privswhereprivilegelikeupper('%DATABASELINK%');--没有赋权grantCREATEPUBLICDATABASELINK,DROPPUBLIC......
  • Oracle 创建dblink
    1、检查该用户是否拥有创建dblink权限select*fromuser_sys_privsawherea.privilegelikeupper('%DATABASELINK%');   2、用户没有dblink权限,则需要赋权......
  • postgresql dblink垮库查询
    环境:OS:Centos7DB:13.8 1.赋予普通用户超级用户权限因为创建扩展需要超级用户的权限,否则报如下的错误:db_test=>createextensiondblink;ERROR:permissiondenie......
  • Oracle使用expdp/impdp实现数据库迁移
    Oracle使用expdp/impdp实现数据库迁移导出0.准备导出路径cd/u01/app/oraclemkdirbak&&chmod777bak1、创建目录(sqlplus)createdirectorybakas'/u01/app......
  • ORACLE如何使用DBLINK连接另一个数据库(两数据库关联操作)
    一、实现结果:在当前数据库去访问另一个数据库某用户下的视图二、创建DBLINK方法:CREATEPUBLICDATABASELINKDBLINKCONNECTTOTOTALPLANTIDENTIFIEDBYTOTALPLANTUSI......
  • 【Vegas原创】Oracle Dblink(链接服务器)创建(Oracle对Oracle的链接)以及SQL对Oracle的互
    Oracle对Oracle的链接:创建:CREATEPUBLICDATABASELINKlinknameCONNECTTOusernameIDENTIFIEDBYpasswordUSING‘tnsname’删除:DROPPUBLICDATABASELINKlin......
  • Oracle创建DBLink
    dblink(DatabaseLink)数据库链接顾名思义就是数据库的链接,当我们要跨本地数据库,访问另外一个数据库表中的数据时,本地数据库中就必须要创建远程数据库的dblink,通过dblink......