重慶思莊oracle技術(shù)分享-oracle導(dǎo)入命令impdp中cluster選項(xiàng)的作用
使用命令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的時(shí)候,多個(gè)并行使用的是同一個(gè)實(shí)例進(jìn)行導(dǎo)出和導(dǎo)入。但是如果cluster=y的時(shí)候,如果沒開并行,使用一個(gè)實(shí)例,如果開了并行,這時(shí)候,會使用多個(gè)實(shí)例。
這個(gè)時(shí)候進(jìn)行導(dǎo)入的話,directory并不是在一個(gè)共享目錄中,因此另外一個(gè)實(shí)例會因?yàn)檎也坏絛irectory而報(bào)錯(cuò)。
參數(shù)使用方法:
cluster=n和parallel=10組合,開并行,但是關(guān)閉集群導(dǎo)入導(dǎo)出。
cluster=y和parallel=1,關(guān)閉并行,可以打開集群導(dǎo)入導(dǎo)出,但是這是沒有意義的,即使打開,也沒有起效。
cluster=y和parallel=10和directory在共享目錄上,可以同時(shí)使用集群導(dǎo)入和并行。