使用命令impdp -help,得到如下解释:
CLUSTER
Utilize cluster resources and distribute workers across the Oracle RAC [YES].
Using PARALLEL During An Export In An Oracle RAC Environment
In an Oracle Real Application Clusters (Oracle RAC) environment, if an export operation has PARALLEL=1, then all Data Pump processes reside on the instance where the job is started. Therefore, the directory object can point to local storage for that instance.
If the export operation has PARALLEL set to a value greater than 1, then Data Pump processes can reside on instances other than the one where the job was started. Therefore, the directory object must point to shared storage that is accessible by all instances of the Oracle RAC.
在cluster=n的时候,多个并行使用的是同一个实例进行导出和导入。但是如果cluster=y的时候,如果没开并行,使用一个实例,如果开了并行,这时候,会使用多个实例。
这个时候进行导入的话,directory并不是在一个共享目录中,因此另外一个实例会因为找不到directory而报错。
参数使用方法:
cluster=n和parallel=10组合,开并行,但是关闭集群导入导出。
cluster=y和parallel=1,关闭并行,可以打开集群导入导出,但是这是没有意义的,即使打开,也没有起效。
cluster=y和parallel=10和directory在共享目录上,可以同时使用集群导入和并行。
|