Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

export

Posted on 2014-02-26
8
390 Views
Last Modified: 2014-06-09
I want to export schema sch1 from db1 which is residing in serv1 to a location /back
which is in serv2

what is the command

how we make directory in db1 and grants..

before we start export using expdp
we have to create directory,.
I am confused about the syntax to create directory..
0
Comment
Question by:thomasliju
8 Comments
 
LVL 34

Expert Comment

by:johnsone
ID: 39888763
The command to create a directory is CREATE DIRECTORY, documentation is here -> http://docs.oracle.com/cd/E16655_01/server.121/e17209/statements_5008.htm#SQLRF01207  Good examples in the doc.  What are you confused about with this command?

I am not an expert on expdp, however, I don't believe you can do what you are asking.  The directory has to be on serv1 to use expdp.  What you would need to do is have the client installed on serv2 and run the exp command there.  Or, you could have an NFS mount of the directory, but I wouldn't recommend that.
0
 
LVL 23

Expert Comment

by:David
ID: 39888771
In oracle, this is to create and use aliases that are platform independent.  One example of the syntax is at http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_5007.htm.

Is this clear to you, or would an example help?

dvz
0
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 39888776
If you run datapump versions, you would need to manually transmit the file from serv1 to serv2.

You would need to create the database directory on serv2 for impdp.

This is why I prefer the classic version.  No need for database directories and it can from from remote clients.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 23

Expert Comment

by:David
ID: 39888797
I just came across an 11gR2 doc that implies a NETWORK_LINK eliminates the need to pass a dumpfile, classic style.  One more feature for my to-explore list....

"Specifying a connect identifier when you invoke the Import utility is different from performing an import operation using the NETWORK_LINK parameter. When you start an import operation and specify a connect identifier, the local Import client connects to the database instance identified by the connect identifier and imports the data from the dump file named on the command line to that database instance.

Whereas, when you perform an import using the NETWORK_LINK parameter, the import is performed using a database link, and there is no dump file involved. (A database link is a connection between two physical database servers that allows a client to access them as one logical database.)"  source: http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_import.htm#SUTIL300
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39888805
The issue with NETWORK_LINK you need to create a database link (DBLINK) between the two databases.  This is not always viable, allowed or desired depending on what databases you are exporting and importing.

For example:
If you are taking data from production and refreshing a test or dev database, you probably should NEVER create a database link between a production and non-production database.
0
 
LVL 23

Expert Comment

by:David
ID: 39888893
Yeah, I suppose we have a subscriber or two who would want to try that.....
0
 
LVL 22

Expert Comment

by:Steve Wales
ID: 40121506
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Queries 15 45
How to free up undo space? 3 50
Character matching different date formats for dates between 6 59
ODBC in excel 2016 in Windows 10 via VBA 16 135
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question