Solved

Not  able to  import using Data pump

Posted on 2006-06-13
3
2,922 Views
Last Modified: 2008-01-09
Hi
I exported  entire scott  database  using  expdp now but unable to  import one table from this  dmp   to my HR  schema..  my impdp command is as follows ..

C:\> impdp hr/hr  tables=scott.emp directory=dpump_dir dumpfile=dpump_dir:scott.dmp  logfile=dpump_dir:scott.log

I tried all alternates like changing username  and pwd from hr/hr  to scott tiger ,, i tried with  even schema option ,, but nothing   worked .. it  imports in own  schema  but not in other schema .. I just want to  import this  object from scott  schema to hr  schema..
Here output from my log file

;;;
Import: Release 10.1.0.2.0 - Production on Tuesday, 13 June, 2006 10:18

Copyright (c) 2003, Oracle.  All rights reserved.
;;;
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
Master table "HR"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded
Starting "HR"."SYS_IMPORT_TABLE_01":  hr/******** directory=dpump_dir dumpfile=dpump_dir:scott.dmp logfile=dpump_dir:scott.log tables=scott.emp
Processing object type SCHEMA_EXPORT/TABLE/TABLE
ORA-31684: Object type TABLE:"SCOTT"."EMP" already exists
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Processing object type SCHEMA_EXPORT/TABLE/GRANT/OBJECT_GRANT
ORA-39111: Dependent object type OBJECT_GRANT:"RHM_ROLE" skipped, base object type TABLE:"SCOTT"."EMP" already exists
ORA-39111: Dependent object type OBJECT_GRANT:"PUBLIC" skipped, base object type TABLE:"SCOTT"."EMP" already exists
ORA-39111: Dependent object type OBJECT_GRANT:"HR" skipped, base object type TABLE:"SCOTT"."EMP" already exists
ORA-39111: Dependent object type OBJECT_GRANT:"HR" skipped, base object type TABLE:"SCOTT"."EMP" already exists
ORA-39111: Dependent object type OBJECT_GRANT:"HR" skipped, base object type TABLE:"SCOTT"."EMP" already exists
ORA-39111: Dependent object type OBJECT_GRANT:"HR" skipped, base object type TABLE:"SCOTT"."EMP" already exists
ORA-39111: Dependent object type OBJECT_GRANT:"HR" skipped, base object type TABLE:"SCOTT"."EMP" already exists
ORA-39111: Dependent object type OBJECT_GRANT:"HR" skipped, base object type TABLE:"SCOTT"."EMP" already exists
ORA-39111: Dependent object type OBJECT_GRANT:"HR" skipped, base object type TABLE:"SCOTT"."EMP" already exists
ORA-39111: Dependent object type OBJECT_GRANT:"HR" skipped, base object type TABLE:"SCOTT"."EMP" already exists
ORA-39111: Dependent object type OBJECT_GRANT:"HR" skipped, base object type TABLE:"SCOTT"."EMP" already exists
ORA-39111: Dependent object type OBJECT_GRANT:"HR" skipped, base object type TABLE:"SCOTT"."EMP" already exists
ORA-39111: Dependent object type OBJECT_GRANT:"HR" skipped, base object type TABLE:"SCOTT"."EMP" already exists
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
ORA-39111: Dependent object type INDEX:"SCOTT"."PK_EMP" skipped, base object type TABLE:"SCOTT"."EMP" already exists
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
ORA-39111: Dependent object type CONSTRAINT:"SCOTT"."PK_EMP" skipped, base object type TABLE:"SCOTT"."EMP" already exists
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
ORA-39111: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"SCOTT"."PK_EMP" already exists
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
ORA-39111: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"SCOTT"."EMP" already exists
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
ORA-39111: Dependent object type REF_CONSTRAINT:"SCOTT"."FK_DEPT" skipped, base object type TABLE:"SCOTT"."EMP" already exists
Processing object type SCHEMA_EXPORT/TABLE/TRIGGER
ORA-39111: Dependent object type TRIGGER:"SCOTT"."DEL_EMP_TRIG" skipped, base object type TABLE:"SCOTT"."EMP" already exists
Job "HR"."SYS_IMPORT_TABLE_01" completed with 20 error(s) at 10:18
0
Comment
Question by:rehman123
3 Comments
 
LVL 12

Accepted Solution

by:
jwahl earned 500 total points
ID: 16892514
to import in another schema add  FROMUSER=<username> TOUSER=<username> to the parameters.
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.

Join & Write a Comment

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.

705 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now