主题: impdp能否将不同路径下的dump文件同时导入


impdp能否将不同路径下的dump文件同时导入 
发布: 2012-10-23 下午7:53
 
Click to report abuse...   点击回复此主题 回复
使用expdp/impdp作prod-->dev同步,但是dump文件数目多且大(使用parallel导出/所有加起来才是一个整体),只能放在dev server上的多个路径储存
现在问题是,impdp是否可以将不同路径下的dump文件一次性导入数据库,就像它们位于同一路径下的那样?
DB:10205
OS:HP-UX

帖子经 956503编辑过
Liu Maclean(刘相兵)

发贴数: 642 
注册时间: 12-08-21
Re: impdp能否将不同路径下的dump文件同时导入 
发布: 2012-10-24 上午12:25    回复: 956503 回复:  956503
 
Click to report abuse...   点击回复此主题 回复
SQL> create directory dir1 as 'D:\dir1';
 
Directory created.
 
SQL> create directory dir2 as 'D:\dir2';
 
Directory created.
 
SQL>
SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
 
 
 
C:\Users\ML>expdp system/oracle  dumpfile=dir1:1.dmp,dir2:2.dmp  schemas=maclean filesize=4M
 
Export: Release 11.2.0.3.0 - Production on Wed Oct 24 15:22:32 2012
 
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
 
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_02":  system/******** dumpfile=dir1:1.dmp,dir2:2.dmp schemas=maclean filesize=4M
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 9 MB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
. . exported "MACLEAN"."LLS"                             7.289 MB   75372 rows
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_02" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_02 is:
  D:\DIR1\1.DMP
  D:\DIR2\2.DMP
Job "SYSTEM"."SYS_EXPORT_SCHEMA_02" successfully completed at 15:23:12



C:\Users\ML>impdp system/oracle  dumpfile=dir1:1.dmp,dir2:2.dmp  remap_schema=maclean:scott

Import: Release 11.2.0.3.0 - Production on Wed Oct 24 15:23:54 2012

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_FULL_01":  system/******** dumpfile=dir1:1.dmp,dir2:2.dmp remap_schema=maclean:scott
Processing object type SCHEMA_EXPORT/USER
ORA-31684: Object type USER:"SCOTT" already exists
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
. . imported "SCOTT"."LLS"                               7.289 MB   75372 rows
Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 1 error(s) at 15:24:04


impdp能否将不同路径下的dump文件同时导入

=》impdp 能否将不同 directory 下的dump文件导入?

答案是  : 可以, 见上述证明

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值