---
title: "impdp"
author: "RobertLeeJesus"
date: "2009-04-27T19:29:38Z"
tags: []
slug: "impdp"
draft: false
lastmod: "2009-05-28T11:53:51Z"
id: 375728
url: "https://hidefromall.iteye.com/blog/375728"
---

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 \*\**