首页 > 数据库技术 > 详细

Oracle Schema导入导出

时间:2018-12-10 20:38:43      阅读:238      评论:0      收藏:0      [点我收藏+]
需求
不同的数据库,不同的表空间
 
SQL> create directory data_pump_dir1 as ‘/home/oracle/datapump1‘;
Directory created.
SQL> create directory data_pump_dir2 as ‘/home/oracle/datapump2‘;
Directory created.
--建立用户赋予目录权限
SQL> grant connect,resource to FINANCE_PREONLINE identified by FINANCE_PREONLINE123;
Grant succeeded.
SQL> grant read,write on directory impdp to FINANCE_PREONLINE;
Grant succeeded.;
--赋予expdp,impdp的权限
SQL> grant exp_full_database,imp_full_database to FINANCE_PREONLINE ;
Grant succeeded.
 
 
 
 
SQL> grant connect,resource to J436_PREONLINE identified by J436_PREONLINE123;
Grant succeeded.
SQL> grant read,write on directory impdp to J436_PREONLINE;
Grant succeeded.
SQL> grant read,write on directory data_pump_dir2 to susan;
Grant succeeded.
--赋予expdp,impdp的权限
SQL> grant exp_full_database,imp_full_database to J436_PREONLINE ;
Grant succeeded.
 
 
impdp \‘/ as sysdba\‘ directory=impdp dumpfile=scf_20181209.dmp remap_schema=SCF_FINANCE:FINANCE_PREONLINE remap_tablespace=SCF_FINANCE:FINANCE_PREONLINE
 
 

 

impdp \‘/ as sysdba\‘ directory=impdp dumpfile=j436_20181209.dmp remap_schema=j436:J436_PREONLINE remap_tablespace=J436:J436_PREONLINE
 
问题
ORA-31644: unable to position to block number 623478 in dump file 

Oracle Schema导入导出

原文:https://www.cnblogs.com/BINGJJFLY/p/10098663.html

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