分享交流
合作共赢!

【亲测无误】Oracle数据泵导入数据库案例

1.创建表空间(包括临时表空间)

您暂时无权查看此隐藏内容!

2.添加表空间文件(包括临时表空间)

alter tablespace EAS_D_ZLDCZS_STANDARD add datafile '/data2/oradata/EAS_D_ZLDCZS_STANDARD01.dbf' size 100m autoextend on next 50m maxsize UNLIMITED; 
alter tablespace EAS_D_ZLDCZS_STANDARD add datafile '/data2/oradata/EAS_D_ZLDCZS_STANDARD02.dbf' size 100m autoextend on next 50m maxsize UNLIMITED; 
alter tablespace EAS_D_ZLDCZS_STANDARD add datafile '/data2/oradata/EAS_D_ZLDCZS_STANDARD03.dbf' size 100m autoextend on next 50m maxsize UNLIMITED; 
alter tablespace EAS_D_ZLDCZS_STANDARD add datafile '/data2/oradata/EAS_D_ZLDCZS_STANDARD04.dbf' size 100m autoextend on next 50m maxsize UNLIMITED; 
alter tablespace EAS_D_ZLDCZS_STANDARD add datafile '/data2/oradata/EAS_D_ZLDCZS_STANDARD05.dbf' size 100m autoextend on next 50m maxsize UNLIMITED; 
alter tablespace EAS_D_ZLDCZS_STANDARD add datafile '/data2/oradata/EAS_D_ZLDCZS_STANDARD06.dbf' size 100m autoextend on next 50m maxsize UNLIMITED; 
alter tablespace EAS_D_ZLDCZS_STANDARD add datafile '/data2/oradata/EAS_D_ZLDCZS_STANDARD07.dbf' size 100m autoextend on next 50m maxsize UNLIMITED; 
alter tablespace EAS_D_ZLDCZS_STANDARD add datafile '/data2/oradata/EAS_D_ZLDCZS_STANDARD08.dbf' size 100m autoextend on next 50m maxsize UNLIMITED; 
alter tablespace EAS_D_ZLDCZS_STANDARD add datafile '/data2/oradata/EAS_D_ZLDCZS_STANDARD09.dbf' size 100m autoextend on next 50m maxsize UNLIMITED;

alter tablespace EAS_D_ZLDCZS_INDEX add datafile '/data2/oradata/EAS_D_ZLDCZS_INDEX01.dbf' size 100m autoextend on next 50m maxsize UNLIMITED; 
alter tablespace EAS_D_ZLDCZS_INDEX add datafile '/data2/oradata/EAS_D_ZLDCZS_INDEX02.dbf' size 100m autoextend on next 50m maxsize UNLIMITED; 
alter tablespace EAS_D_ZLDCZS_INDEX add datafile '/data2/oradata/EAS_D_ZLDCZS_INDEX03.dbf' size 100m autoextend on next 50m maxsize UNLIMITED; 
alter tablespace EAS_D_ZLDCZS_INDEX add datafile '/data2/oradata/EAS_D_ZLDCZS_INDEX04.dbf' size 100m autoextend on next 50m maxsize UNLIMITED;

alter tablespace EAS_T_ZLDCZS_STANDARD add tempfile '/data2/oradata/EAS_T_ZLDCZS_STANDARD01.dbf' size 100m autoextend on next 50m maxsize UNLIMITED;

3.创建用户

create user username identified by passwd;
grant resource,connect to username;

4.导入数据库操作

impdp system/Zldc**** directory=impdp dumpfile=zldczs20190116010001.dmp logfile=zldc20190117.log remap_schema=zldczs:eas20190116 TABLE_EXISTS_ACTION=REPLACE

 

温馨提示:帆帆帆帆法

Oracle数据泵导入导出数据库参考琼杰笔记文档:Oracle数据泵导入导出备份数据库数据详解

内容查看价格0.1立即支付
注意:本站少数资源收集于网络,如涉及版权等问题请及时与站长联系,我们会在第一时间内与您协商解决。如非特殊说明,本站所有资源解压密码均为:zhangqiongjie.com。 作者:1923002089
赞(1) 打赏
未经允许不得转载:琼杰笔记 » 【亲测无误】Oracle数据泵导入数据库案例

评论 抢沙发

评论前必须登录!

 

分享交流,合作共赢!

联系我们加入QQ群

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏