Question

expdp remote machine

Asked by: basirana

Hi

I am trying to do export of some table which are more then 20GB.
The problem is the database is on remote server.
Is it possible to export dump file directly on to local machine.
How can I do that?

Can you help me with example.

Thanks

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-07-07 at 09:34:33ID24550142
Topics

PL / SQL

,

Oracle Database

,

Oracle 10.x

Participating Experts
2
Points
500
Comments
26

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. backups - dump - remote
    I am also trying to backup remotly with dump - I keep getting "lost connection to reote site" what am I to do about this. Also I am trying to setup rlogin between machines via root when ever I rlogin remote host it asks for my password twice then lets me in -- wha...
  2. Full database export directly to tape on Digital Unix ??
    Due to lack of disk space on our Alpha Unix box our company has decided to be doing full database export directly to a tape. We have created the following shell script on Dital Unix to do a full Database export directly to a tape. Our idea is to have this script running off...
  3. Remote DB Dump
    I'm running SQL 11.5.1 and trying to dump a database to a remote server. The syntax I was using: dump database master to "d:\syback\mastdat.dat" at PC_REMOTE_BS I have added the appropriate backup servers to DSEDIT, pinged from the remote and master server and st...
  4. Exporting or Importing a Remote Oracle DB tables
    I have to export and import remote oracle database tables. I am using rsh and exp/imp. The following does not work: rsh ${rSERVER} "exp ${rDB_USER}/{rDB_PWD} file=${lPATH}/master.dmp TABLES=\(TAB1, TAB2\)" rsh ${rSERVER} "imp ${rDB_USER}/{rDB_PWD} file=${lPAT...
  5. Remote Export
    Hi, Can i do Remote export Like.. i am using one pc where Oracle10g is installed on Linux and there is another Pc where Oracle9i on Windows XP is installed . now from Linux Pc can i run Remote Export for taking a backup of Oracle9i on Windows XP ? Regards SayanC

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: basiranaPosted on 2009-07-07 at 09:37:21ID: 24795777

Remote DB name is rdb1
Local DB name is ldb1
remote machine is rmachine1
local machine name is lmachine1

 

by: basiranaPosted on 2009-07-07 at 09:39:02ID: 24795797

Tables that need to be exported are ASP_D, ASP_E, ASP_F.
Is it possible I can schedule as it is 20GB.How can I do that?

Thanks

 

by: basiranaPosted on 2009-07-07 at 09:44:31ID: 24795846

Is it possible I can rebuild index later? bcoz indexes are more then 40GB size.
I just want to import tables and constraints.

 

by: mrjoltcolaPosted on 2009-07-07 at 10:27:42ID: 24796257

With expdp I don't believe you can do that. Data pump exports into an Oracle DIRECTORY object, which is local. You could try creating a network mapped directory.

Data Pump does have a network mode, but it does not create an interim dump file, it is direct database to database.

So I think you need to try regular old export, or try to allocate space on the server in a regular directory or, again, try a network mounted directory.

 

by: schwertnerPosted on 2009-07-07 at 11:12:35ID: 24796696

It is possible:

With the Oracle 10g import utility, you can use a network connection so that you can directly import either a single or multiple table(s) from one server to another. Here are the steps you need to perform in order to import a table or tables from one server to another. First, assume that you have two servers, Server A and Server B, and you want to import a table or tables such as "EMP" and "DEPT" from server "A" to "B."

1. Go to Server B and create a database link that will access the database in Server A.
Example:
SQL> CREATE DATABASE LINK mylink2a CONNECT TO scott IDENTIFIED BY password USING 'mylink2a';
Note that 'scott' is a user in the database in Server "A" and that its password is 'password'.

2. Then, perform the following import dump command.
Example:
# impdp scott2/password2 TABLES=emp,dept DIRECTORY=dpump1 NETWORK_LINK=mylink2a
Note that 'scott2' is a user in the database in Server B and that its password is 'password2'.

 

by: schwertnerPosted on 2009-07-07 at 11:17:24ID: 24796749

I do not see the need to use files here, but if you decide to use single instance Export via Data Pump you will hit the 2GB barier (not in all cases, but this happens often on 32 bits machines).

The workaround:
1. Use filesize parameter like
filesize=1900M
2. use wildcard %U in the DUMPFILE:
DUMPFILE=expdat%U.dmp

So Data Pump will create many dump files.

 

by: basiranaPosted on 2009-07-07 at 11:20:33ID: 24796781

we have AIX bceyenetdb1 3 5 00C8AADD4C00 which is 64 bit and has 8 processors.
I need help to do datapump of tables without indexes and I want to run it parallel.
Any help?

 

by: schwertnerPosted on 2009-07-07 at 11:25:14ID: 24796831

It is easy.
Use
PARALLEL=8

Also

GRANTS=y
INDEXES=n
ROWS=y
CONSTRAINTS=y
CONSISTENT=n
 
 

 

by: schwertnerPosted on 2009-07-07 at 11:27:38ID: 24796853

But PARALLEL has no practical meaning if there are no datafiles.
You use 'network' variant and actually there is only one media - the network.
Normally I use PARALLEL=4 but when the dump file is a real dumpfile and with 2 Xeon processors.

 

by: basiranaPosted on 2009-07-07 at 11:29:17ID: 24796871

below is the expdp I have written does it work? If it works how can I schedule it to run at 5PM today?

expdp dhana@SOURCE_DB directory=dpump tables=MYDATA.SL_AN,MYDATA.SL_AT,MYDATA.SL_AN parallel=4 dumpfile=SL%U.dat network_link=source_link

After export How can I do import from multiple files?

Thanks

 

by: basiranaPosted on 2009-07-07 at 11:36:25ID: 24796940

CREATE DIRECTORY DUMP_DIR AS '/d032/oradata/dpump'

expdp dhana@SOURCE_DB
DIRECTORY=dump_dir
TABLES=MYDATA.SL_AN,MYDATA.SL_AT,MYDATA.SL_AN
PARALLEL=4
DUMPFILE=SL%U.dat
NETWORK_LINK=source_link
GRANTS=y
INDEXES=n
ROWS=y
CONSTRAINTS=y
CONSISTENT=n

 

by: schwertnerPosted on 2009-07-07 at 12:17:45ID: 24797403

using impdp

In contrast to clasic Import
the parameters have the same name :)

But possibly you missunderstood me.

ID:24796696 do not needs files. It is via the network.
You need files when you make pure server dump, transfer it on another machine and do import. But using DBLink you do not use files

 

by: basiranaPosted on 2009-07-07 at 12:33:27ID: 24797556

How can I do i using DB link? can you help me with example.

 

by: schwertnerPosted on 2009-07-07 at 12:36:26ID: 24797589

It is explained in the post ID:24796696 in details.

 

by: basiranaPosted on 2009-07-07 at 12:59:46ID: 24797802

schwertner

The posting explains about impdp. But I do not see expdp. Can you help me step by step. As I am new to datapump

 

by: mrjoltcolaPosted on 2009-07-07 at 13:03:12ID: 24797834

schwertner, will the network mode create an actual .dmp file? I was under the impression that the network mode for data pump does not create an interim file at all?

I will admit I do not use data pump much yet, still using exp/imp for most databases.

 

by: schwertnerPosted on 2009-07-07 at 23:19:46ID: 24801023

DP Dump files can not be exported directly to a remote machine.
Only if you use common SAN, NAS, remote disk or some other kind of shared disk drives.
Import is used because the dump files could only be used for imports.
Or ftp can be scheduled on the remote server.

If you would like to use Data Pump then create a local empty DB,
do the DP import via DBlink and after that export locally the DB in files.

If not - use classic export via client but set NLS_LANG appropriatelly.

 

by: basiranaPosted on 2009-07-08 at 05:43:26ID: 24803044

 

by: mrjoltcolaPosted on 2009-07-08 at 06:15:24ID: 24803348

That is what I thought, I checked docs yesterday, and it is correct, to export with data[ pump remotely requires an actual Oracle instance plus a DB link, which will not exist for a pure client. So expdp cannot work like the old exp remote method. That is one thing I will miss if they ever remove exp completely.

 

by: schwertnerPosted on 2009-07-08 at 06:53:40ID: 24803758

The DP export is between two instances.
You can use an existing client instance and after that to export the dump file.
I guess you need for some reason Data Pump dump. If this is not so - use the old Export,
but you need client installation.

 

by: basiranaPosted on 2009-07-08 at 07:01:41ID: 24803846

I am not running expdb on my local machine it is on development machine and has dev DB running.
I am planning to export from prod to dev box over DB Link. and then import the data on to development.
All I need is stesp to export table and import using datapump.
As we are not having enough disk space I want to do export on to more then one disk.

I have disk1, and disk5 free which are of 15GB each but the table size is more then 23GB so we need to export on to diff disk and import.

I am looking for steps to perform this operation.

Thanks

 

by: schwertnerPosted on 2009-07-08 at 11:56:10ID: 24806951

The steps are described above.
Syntactically they are not long, but need some training.
If you have not enough space think about commpressed tablespaces, but also about the danger to hit some bugs.
Also please be aware that the using the method I find in my notes the data will be directly entered in the database, in the tables. So the tablespaces should be created. Do not expect that you will get dmp files - the method works other way, it is import and imports the data immediatelly.

 

by: basiranaPosted on 2009-07-23 at 07:17:21ID: 24925446

I have specified smaller filesize and given two destination directories the files are distributed equally in both directories and now it working fine.
Export the scott schema from orcl database and split the dump file into three files. The dump files will be stored in three different location. This method is especially useful if you do not have enough space in one file system to perform the complete expdp job. After export is successful, import the dump file into ordb database.

Expdp parfile content:

userid=system/password@orcl
logfile=schemaexp_split.log
directory=dumplocation
dumpfile=dump1:schemaexp_%U.dmp,dump2:schemaexp_%U.dmp,dump3:schemaexp_%U.dmp
filesize=50M
schemas=scott
include=table

 

by: schwertnerPosted on 2009-07-23 at 23:57:11ID: 24932677

In this case

parallel=n

will help.

Oracle recommends n to be 2 times the number of the cores.

 

by: schwertnerPosted on 2009-07-24 at 00:35:56ID: 24932789

Backup LISTENER.ORA file!!!!!!!

In ...\network\admin open listener.ora

see

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = D:\Ora10g)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (SID_NAME = test)
      (ORACLE_HOME = D:\Ora10g)
    )
  )

Add the entry
    (SID_DESC =
      (SID_NAME = test)
      (ORACLE_HOME = D:\Ora10g)
    )
with regard to the particular Oracle Home and SID Name.


In Oracle 11g you have to create from scratch in the listener.ora file the section

SID_LIST_LISTENER =
&..

mentioned above.
Restart the listener:
c:>lsnrctl stop
c:>lsnctl start

 

by: schwertnerPosted on 2009-08-12 at 11:07:28ID: 25081184

Goooood luck!

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...