Oracle导入数据泵文件(dmp文件)


//首先创建文件夹,把对应DMP文件放入到创建好的文件夹中,
创建逻辑目录
create directory DATA_DIR as 'D:\DATA_DIR';
查看目录列表
select * from dba_directories; 用sys管理员给指定用户赋予在该目录的操作权限 grant read,write on directory DATA_DIR to wms; expdp fa2019/fa2019@orcl dumpfile=qkj20191126.dmp directory=DATA_DIR_1 schemas=fa2019 logfile=expdp.log;
DOS窗口中导入DMP文件 impdp ebill
/EBILL@omcsdt directory=DATA_DIR dumpfile=tables20200512-1.dmp logfile=20200512ebill.log remap_schema=ebill:ebill remap_tablespace=ebill:USERS ignore=y impdp user/123456@orcl directory=data_dir dumpfile=expdp.dmp impdp lsgxh/lsgxh@OMCSDT directory=data_dir dumpfile=FULL.DMP

在此之前,尝试过直接使用navicat、plsql直接导入数据泵,但效果不佳,最后只能尝试使用sql语句进行导入


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM