数据泵导出文件到asm磁盘组里

数据库泵导出文件到asm磁盘组里

1. For example, you would create a directory object in the ASM diskgroup to place the dump file as follows

SQL> CREATE  DIRECTORY ASM_DIR_DUMP as '+DISKGROUP1/export';
2. Then you would create a separate directory object for the export & import log files in normal OS file system:
SQL> CREATE DIRECTORY ASM_DIR_LOG as '/user1/backup/';
3. To enable user SCOTT to have access to these directory objects, you would assign the necessary privileges,
SQL> GRANT READ, WRITE ON DIRECTORY ASM_DIR_DUMP  TO scott;
SQL> GRANT READ, WRITE ON DIRECTORY ASM_DIR_LOG   TO scott;
4. Then you would then use the following Data Pump Export command:
$ expdp scott/tiger DIRECTORY=ASM_DIR_DUMP DUMPFILE=scott.dmp LOGFILE=ASM_DIR_LOG:scott.log tables=emp
5. Then use the following Data Pump Import command:
$ impdp scott/tiger DIRECTORY=ASM_DIR_DUMP DUMPFILE=scott.dmp LOGFILE=ASM_DIR_LOG:scottimp.log


并行导入导出:
impdp  \"sys/oracle as sysdba\" directory='ASM_DIR_DUMP' dumpfile=b20140819%U.dmp logfile=ASM_DIR_LOG:asmtwoci.log parallel=6 cluster=N   
expdp \"sys/oracle as sysdba\" schemas='(user1,user2...)' dumpfile=asm%U.dmp logfile=DUMP:asm12.log directory=ASMDIR compression=all PARALLEL=12 filesize=300M
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值