impdp Usage

impdb loads the dmp file from ORACLE_HOME/admin/ORACLE_SID/dpdump/test.dump, so before we run impdb, we put it into this folder.
 
oracle@laptop-ubuntu:/opt/oracle/admin/orcl/dpdump$ impdp system/manager SCHEMAS=test DUMPFILE=test.dmp TABLE_EXISTS_ACTION=replace LOGFILE=test.log

Import: Release 11.1.0.6.0 - Production on Monday, 27 April, 2009 19:19:28

Copyright (c) 2003, 2007, Oracle.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-31640: unable to open dump file "/opt/oracle/admin/orcl/dpdump/test.dmp" for read
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3


oracle@laptop-ubuntu:/opt/oracle/admin/orcl/dpdump$ cp /home/robert/Desktop/test.dmp /opt/oracle/admin/orcl/dpdump/test.dmp
oracle@laptop-ubuntu:/opt/oracle/admin/orcl/dpdump$ impdp system/manager SCHEMAS=test DUMPFILE=test.dmp TABLE_EXISTS_ACTION=replace LOGFILE=test.log

Import: Release 11.1.0.6.0 - Production on Monday, 27 April, 2009 19:21:00

................................................
 
 
 
impdp system/osl SCHEMAS=osl DUMPFILE=SCHEMA.DMP TABLE_EXISTS_ACTION=replace LOGFILE=test.log REMAP_SCHEMA=osl:osldev
 
If there is an error to replace, please drop the user firstly.
drop user *** cascade
create user *** identified by ***
grant connect, resource to ***

你可能感兴趣的:(职场,impdp,休闲,usage)