使用DBLINK导数据【ORA-39001 ORA-39200 ORA-02019】

在网上经常看到网友使用dblink导数据报错,报错大致如下:

$ impdp system/system network_link=DB_LINK remap_schema=A:B schemas=A

Import: Release 11.2.0.3.0 - Production on Tue Aug 14 14:07:52 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
ORA-39001: invalid argument value
ORA-39200: Link name "DB_LINK" is invalid.
ORA-02019: connection description for remote database not found

解决办法:

只需要创建public database link就ok了,dblink用完后要尽快删掉,否则可能有安全隐患。

核心步骤:

一、创建dblink

create public database link DB_LINK connect to system identified by oracle using 'network';

二、impdp

impdp system/oracle network_link=network remap_schema=A:B schemas=A

转载于:https://www.cnblogs.com/weixun/p/3783766.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值