简体   繁体   中英

Oracle: Dump file may be an Data Pump export dump file

I am trying to import data from Db dump

I have created a user 'user' and Granted following permissions:

CONNECT RESOURCE UNLIMITED TABLESPACE DBA ALL PRIVILEGES IMP_FULL_DATABASE

I am running the following command:

imp <user>/<password>@<server> touser=<user>
FILE=C:\App\<path>\admin\orcl\dpdump\EXPDAT.DMP full=y log=imp.log;

While running I am getting the following error message.

IMP-00401: dump file "C:\App\<path>\admin\orcl\dpdump\EXPDAT.DMP" may
be an Data Pump export dump file IMP-00000: Import terminated unsuccessfully

There are two import and export utilities.

One is client - server based, and is also deprecated. That would be IMPORT and EXPORT, shortened as IMP and EXP.

Data Pump is the 'new,' server based set of utilities - much more powerful and efficient at getting data in and out of your database.

You'll need to place your DMP file in a Database 'DIRECTORY' - these are known OS directories to the database, you can see them in the data dictionary via

SELECT * FROM ALL_DIRECTORIES

It's likely you already have a directory already defined just for data pump, look for something like 'DATA PUMP DIR'

Data Pump has a utility you can run from the OS, a PL/SQL API, and there is a Wizard in SQL Developer.

View > DBA menu.

Add a connection (not SYS), right-click on the Data Pump category, select Import Wizard...then walk the dialog.

We'll create and kick off the job for you, you can also watch the progress of the job and check for any errors.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM