EXPDP Oracle expdp中並行問題

2022-06-06 18:15:06 字數 1444 閱讀 8909

$expdp hr/hr tables=test1 dumpfile=test2.dmp directory=pumpparallel=4

export: release 11.2.0.4.0 - production on sat jul 1 05:11:29 2017

connected to: oracle database 11g enterprise edition release 11.2.0.4.0 - 64bit production

flashback automatically enabled to preserve database integrity.

starting "hr"."sys_export_table_01":  hr/******** tables=test1 dumpfile=test2.dmp directory=pump parallel=4 

estimate in progress using blocks method...

processing object type table_export/table/table_data

total estimation using blocks method: 8.687 gb

processing object type table_export/table/table

ora-39095: dump file space has been exhausted: unable to allocate 8192 bytes

如果設定 expdp parallel=4 必須要設定4個expdp檔案,不然parallel是有問題的,同時expdp會使用乙個worker程序匯出metadata,其他worker程序會同時出資料,如果expdp作業很於250m 只會啟動乙個worker程序如果是500m會啟動2個,1000m及會啟動4個woker程序,一般來說加上%u來設定多個檔案。

而impdp有所不同,會先啟動乙個woker程序metadata匯入,然後啟動多個worker程序匯入,所以再前期只會看到woker在匯入metadata,而且impdp如果paralle=4也需要》=4個dmp檔案,也可以使用%u來進行匯入。

expdp system/****  parallel=2 job_name=full_bak_job full=y dumpfile=exptest:back_%u.dmp logfile=exptest:back.log &

impdp system/*** parallel=2 exclude=statistics job_name=full_imp cluster=no full=y dumpfile=test:back_%u.dmp  logfile=test:back_imp.log;

而在11gr2後expdp 和 imdp的worker程序會在多個instance啟動,所以directory必須在共享磁碟上,如果沒有設定共享磁碟還是指定cluster=no 來防止報錯。

EXPDP Oracle expdp中並行問題

expdp hr hr tables test1 dumpfile test2.dmp directory pumpparallel 4 export release 11.2.0.4.0 production on sat jul 1 05 11 29 2017 connected to orac...

Oracle中並行parallel詳解

1.例項 1 insert 加速 2.用途 強行啟用並行度來執行當前sql。這個在oracle 9i之後的版本可以使用,之前的版本現在沒有環境進行測試。也就是說,加上這個說明,可以強行啟用oracle的多執行緒處理功能。舉例的話,就像電腦裝了多核的cpu,但大多情況下都不會完全多核同時啟用 2核以上...

並行演算法中的Work and Span

下面正式引入並行演算法中的一些概念 對比fig1和fig2,fig2中的time step數就是在最大並行度下的span的值 work law.cost至少是work ptp t 1pt p ge t 1 ptp t 1 span law.有限的p pp個處理器不可能勝過無限個處理器,即tp t t...