首页 > 数据库技术 > 详细

oracle数据导入dmp

时间:2019-09-30 17:04:03      阅读:80      评论:0      收藏:0      [点我收藏+]

导入数据库
--创建表空间(原数据库所在的表空间名)
create tablespace 表空间名 datafile ‘g:\hygy\zjgltest.dbf‘ size 1024M;
--创建用户
create user xhdc identified by hygy default tablespace 表空间名;
--授予dba权限
grant dba to xhdc;
--创建目录
create or replace directory hygy_dir as ‘G:\hygy‘;
--授予读写权限
grant read,write on directory hygy_dir to hygy;

这里先把dmp文件放到G:\hygy目录下后再在cmd窗口执行下列语句,直接执行。

--cmd导入
impdp hygy/hygy@orcl remap_schema=thytest7:hygy directory=hygy_dir dumpfile=T220190924hdp_1819_thytest7.dmp

依次说明: hygy/hygy 为 用户名/密码 , thytest7为原导出用户名,hygy为新的导入用户名 ,   T220190924hdp_1819_thytest7.dmp为数据dmp名

oracle数据导入dmp

原文:https://www.cnblogs.com/ketoli/p/11613295.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!