datapump export - import

I have 2 databases in one server - dev and test. I logged into the dev database and exported a schema from the dev database as the system user. Commands I used: $ expdp system/password directory=dpdumpdir dumpfile=sales.dmp logfile=sales.log schemas=sales
The export was successfull. The dumpfile was created.
Now, I logged into the test database as the system user and tried to import the schema (sales ) by remapping it to  test_sales user. I intended to creat the test_sales user by remapping. It didn't exists in test database.
Commands I used: $ impdp system/password directory=dpdumpdir dumpfile=sales.dmp remap_schema=sales:test_sales
I received the following error messages:
Connected to: Oracle Database 10g Enterprise Edition Release - Production
With the Partitioning, OLAP and Data Mining options
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 475
ORA-29283: invalid file operation
What needs to be done to export and import between databases within the same server?
Thanks in advance.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try this way:
C:\>impdp system/tiger REMAP_SCHEMA=SCOTT:JKOOPMANN DIRECTORY=datapump DUMPFILE=dept.dmp LOGFILE=dept.log



Data Pump Import Utility

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Option 1: From the message  the "owner"  of the  database has no rights to write on the directory dpdumpdir where the log file  is meant to be written,
check the access rights or modifiy the destination of the logfile to a directory that has access rights.
Option 2 : the logfile already exists and cannot be overridden
Option 3 : the directory is not defined as a utlfile-directory in the init-parameters of the database
(but then i would have expected a message on the dumpfile)
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

VimrulAuthor Commented:
Hi flow01,
Thanks for the reply. couldn't solve it yet.
Both databases are in the same server. They share the same file system. I created the Directory object while I am being logged in the dev database. I dumped the file in the directory object which is in /u01/app/oracle. This mount point has the same access for the dba group in test database.
I tried giving 777 permission to the dumppfile. Didn't work.

ORA-39070: Unable to open the log file. :
concentrate on the log file not the dumppfile
VimrulAuthor Commented:
Isn't logfile an optional parameter? Don't we have a parameter Nologfile=Y? My understanding is logfile only records the used to log the messages and the results of datapump operations.
Please correct if I am wrong.
Logfile may be optional but you didn't specify Nologfile=Y (or did you ?).
What happens if you do specify  Nologfile=Y explicitly ?
What happens if you do specify a logfile (or rename/remove the existing sales.log) ?
VimrulAuthor Commented:
Hi Flow01,

Thank for your replies. Actually I needed to create the Directorry object in the Test database where I wanted to import the schema. It worked when I created a Directory object in test database pointing to the same location where my dumpfile was.
I suggest that split points across all posts with accepted answer as post ID: 29497764.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.