数据库dmp文件怎么导入mysql,如何从dmp文件和日志文件导入Oracle数据库?

在尝试从DMP文件创建Oracle数据库时遇到问题。错误表明找不到指定的DMP文件。解决方案包括确认数据库导出方式(使用'exp'还是'expdp'),创建用户并授予权限,然后使用正确的命令('imp'或'impdp')进行导入。如果DMP文件是从Linux服务器获取的,可能需要处理文件格式或指定正确的目录。
摘要由CSDN通过智能技术生成

How would I go about to create a database from a dmp-file? I do not have an existing database with the same structure on my system so it has to be complete with jobs, events, tables and so on.

I placed dmp and log file in E: drive

I have tried the import utility

E:/>impdp system/tiger@oratest FILE=WB_PROD_FULL_20MAY11.dmp

But I'm getting error as

invalid argument value

bad dump file specification

unable to open dump file "E:\app\Vensi\admin\oratest\dpdump\WB_PROD_F

ULL_20MAY11.dmp" for read

unable to open file

unable to open file

(OS 2) The system cannot find the file specified.

And when I see in Windows Explorer dmp file(taken from Linux server) is showing as Crash dump file

I donot understand how I can resolve this issue. Please help me to solve this issue.

I'm a complete newbie on Oracle...

解决方案

How was the database exported?

If it was exported using exp and a full schema was exported, then

Create the user:

create user identified by default tablespace quota unlimited on ;

Grant the rights:

grant connect, create session, imp_full_database to ;

Start the import with imp:

imp /@ file=.dmp log=.log full=y;

If it was exported using expdp, then start the import with impdp:

impdp / directory= dumpfile=.dmp logfile=.log full=y;

Looking at the error log, it seems you have not specified the directory, so Oracle tries to find the dmp file in the default directory (i.e., E:\app\Vensi\admin\oratest\dpdump\).

Either move the export file to the above path or create a directory object to pointing to the path where the dmp file is present and pass the object name to the impdp command above.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值