Oracle Data Pump Detailed (4) network_link

Source: Internet
Author: User

EXPDP's Network_link

As we know, EXPDP the default is to export the local database, the Network_link is to export the remote database to the local server, and its steps are as follows:

Terminology Description:

SOURCE database: Remote Database

Target database: Local database (that is, the server where the EXPDP client is located)

1. Add the connection string of the source database to the Tnsnames.ora on the target database side:

source_db =  
  (DESCRIPTION = (  
    address_list =  
      (address = (PROTOCOL = TCP) (HOST = 192.168.1.15) (PORT = 1521)) 
  
   )  
    (Connect_data =  
      (sid = Orcl)  
    )  
  
  

2. Create DB link in the target database:

Sql>create Public Database link Source_db_link connect to system identified by * * * 

using ' test15 ';  
      
Database link created.  
      
Sql>select instance_name from v$instance@source_db;  
      
instance_name  
----------------  
ORCL

3. Perform EXPDP on the target server:

$ EXPDP System Directory=dump_dir network_link=test15 tables=test.test dumpfile=test.dmp logfile=expdp_test.log

where Network_link equals the db Link,dumpfile,logfile created on step 2nd in the target database Dump_dir

IMPDP's Network_link

The above mentioned EXPDP Network_link is to export the remote database to the local dumpfile, and IMPDP is more powerful and convenient, it can directly import the remote database to the local database, the middle is not even dumpfile generation, its syntax is as follows:

$ IMPDP System Directory=dump_dir network_link=test15 tables=test.test Logfile=impdp_test.log

The above statement directly imports the Test.test table from the source database to the target database, the middle does not produce dumpfile, to produce logfile (logfile placed in the dump_dir of the target database)

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.