使用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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM