RE: Data Pump over NETWORK_LINK

From: Xu, Roger <>
Date: Tue, 21 Apr 2009 08:50:46 -0600
Message-ID: <>

Thank ya'll (esp. Ian, Jakub, Alan, Jared and Dick) for your reply. I will test it out next time I copy the schema and I will surely share the result with the list. Thanks. Roger

-----Original Message-----
From: Ian Cary [] Sent: Tuesday, April 21, 2009 9:40 AM
To: Xu, Roger
Cc:; Subject: Re: Data Pump over NETWORK_LINK

Hi Roger,

You can actually do this directly using the datapump API without the need
for an intermediary dmp file.

All you need to do is create a dblink (called e.g. mydblink) on the test database that points to the production one and run the following PL/SQL (again from the test database)

  h1 number;
  h1 :=>'IMPORT',

  dbms_datapump.metadata_remap(h1,'REMAP_SCHEMA','HR','TESTHR'); end;

I've deliberately kept the example short but this can be expanded on to produce log information if needed.




| | |
| | Sent by: |
| | oracle-l-bounce_at_fr|
| | |
| | |
| | |
| | 20/04/2009 21:05 |
| | Please respond to |
| | Roger.Xu |
| | |
|---------+-----------------------------> >----------------------------------------------------------------------- ---------------------------------------|
  | To: |
  | cc: |
  | Subject: Data Pump over NETWORK_LINK |  

Here is how I currently copy a schema from production to dev in 10gR2 -

  1. expdp system/password1 schemas=HR directory=pump_dir1 dumpfile=hr.dmp
  2. FTP the dump file (hr.dmp) to the dev box
  3. drop user TESTHR in the dev box
  4. impdp system/password2 schemas=TESTHR directory=pump_dir2 dumpfile=hr.dmp remap_schema=HR:TESTHR
  5. reset password for TESTHR (alter user TESTHR identified by ??????)

Now my question is: how do I do this over the NETWORK_LINK? What kind of DB
link I need?

Would the command looks like this?

impdp system/password2 schemas=TESTHR directory=pump_dir2 network_link=mydblink remap_schema=HR:TESTHR



Click here to learn more about Dr Pepper Snapple Group's commitment to corporate social responsibility.

Please be conscious of the environment and print this email only if absolutely necessary.
This e-mail (including any attachments) is confidential and may contain privileged information of Dr Pepper Snapple Group, Inc. and/or its subsidiaries ("Dr Pepper Snapple Group"). If you are not the intended recipient or receive it in error, you may not use, distribute, disclose or
copy any of the information contained within it and it may be unlawful to
do so. If you are not the intended recipient, please notify us immediately
by returning this e-mail to us at and destroy all copies. Any views expressed by individuals within this e-mail do not necessarily reflect the views of Dr Pepper Snapple Group. This e-mail does
not constitute a binding offer, acceptance, amendment, waiver or other agreement, unless the intent that an e-mail will constitute such is clearly
stated in the body of the email. Recipients are advised to subject this e-mail and attachments to their own virus checking, in keeping with good computing practice. Please note that e-mail received by Dr Pepper Snapple
Group may be monitored in accordance with applicable law.

This email was received from the INTERNET and scanned by the Government Secure Intranet anti-virus service supplied by Cable&Wireless in partnership with MessageLabs. (CCTM Certificate Number 2007/11/0032.) In case of problems, please call your organisation?s IT Helpdesk. Communications via the GSi may be automatically logged, monitored and/or recorded for legal purposes.(See attached file: att4c4ek.dat)

For the latest data on the economy and society consult National Statistics at

Please Note: Incoming and outgoing email messages are routinely monitored for compliance with our policy on the use of electronic communications

Legal Disclaimer : Any views expressed by the sender of this message are not necessarily those of the Office for National Statistics

The original of this email was scanned for viruses by the Government Secure Intranet virus scanning service supplied by Cable&Wireless in partnership with MessageLabs. (CCTM Certificate Number 2007/11/0032.) On leaving the GSi this email was certified virus free. Communications via the GSi may be automatically logged, monitored and/or recorded for legal purposes.

Received on Tue Apr 21 2009 - 09:50:46 CDT

Original text of this message