包含OLAP元件SCHEMA使用imp匯入碰到嚴重效能問題
客戶一個十幾個G的使用者嘗試使用IMP匯入到資料庫中,執行時間超過了2天。
資料庫版本為10.2.0.5 FOR LINUX X86-64,而匯入的dmp檔案是在10.2.0.3 FOR LINUX X86平臺上匯出的,這個使用者包含了OLAP元件。
整個匯入過程異常緩慢,一共不到20G的資料量,匯入的時間超過了兩天。雖然imp匯入效率不高,但是也沒有理由慢到如此地步,透過10046跟蹤imp程式:
*** 2012-08-07 17:25:03.099
*** ACTION NAME:() 2012-08-07 17:25:03.051
*** MODULE NAME:(imp@db (TNS V1-V3)) 2012-08-07 17:25:03.051
*** SERVICE NAME:(SYS$USERS) 2012-08-07 17:25:03.051
*** SESSION ID:(880.53796) 2012-08-07 17:25:03.051
=====================
PARSING IN CURSOR #61 len=6 dep=1 uid=100 ct=44 lid=100 tim=5574818059202
hv=255718823 ad='0'
COMMIT
END OF STMT
PARSE #61:c=0,e=11,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=0,tim=5574818059197
XCTEND rlbk=0, rd_only=1
EXEC #61:c=0,e=4723,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=0,tim=5574818115096
=====================
PARSING IN CURSOR #3 len=29323 dep=0 uid=100 ct=47 lid=100 tim=5574818115145
hv=1172437913 ad='fe303758'
BEGIN
dbms_aw_exp.import_chunk100(1492,
'AADavwAAKAAAAAYAAADavwAAKQAAAAYAAADavwAAKgAAAAYAAADavwAAKwAAAAYA
AADavwAALAAAAAYAAADavwAALQAAAAYAAADavwAALgAAAAYAAADavwAALwAAAAYA
AADavwAAJAAAAAYAAABy0wAAJQAAAAYAAABy0wAAJgAAAAYAAABy0wAAJwAAAAYA
AABy0wAAKAAAAAYAAABy0wAAKQAAAAYAAABy0wAAKgAAAAYAAABy0wAAKwAAAAYA
AABy0wAALAAAAAYAAABy0wAALQAAAAYAAABy0wAALgAAAAYAAABy0wAALwAAAAYA
AABy0wAAJAAAAAYAAAC90wAAJQAAAAYAAAC90w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ACUAAAAjAAAAKUoAACcA
AAAjAAAAKUoAACgAAAAjAAAAKUoAAC0AAAAjAAAAKUoAACQAAAAjAAAABUwAACUA
AAAjAAAABUwAACYAAAAjAAAABUwAACcAAAAjAAAABUwAACgAAAAjAAAABUwAAC0A
AAAjAAAABUwAACkAAAAjAAAAn2kAAC4AAAAjAAAAn2kAAC0AAAAjAAAAYHAAACQA
AAAjAAAA43AAACUAAAAjAAAA43AAACgAAAAjAAAA43AAACkAAAAjAAAA43AAAC0A
AAAjAA==');
dbms_aw_exp.import_chunk100(1492,
'AADjcAAAJAAAACMAAABNcwAAJQAAACMAAABNcwAAJwAAACMAAABNcwAAKAAAACMA
AABNcwAAKQAAACMAAABNcwAALQAAACMAAABNcwAALQAAACMAAAB9dAAAJAAAACMA
AABBpwAAJQAAACMAAABBpwAALQAAACMAAABBpwAAJAAAACMAAADiwwAAJQAAACMA
AADiwwAAJwAAACMAAADiwwAAKAAAACMAAADiwwAALQAAACMAAACIEwAALQAAACMA
AADBcAAAJAAAACMAAAC7EgAAJQAAACMAAAC7EgAAKQAAACMAAAC7EgAAKQAAACMA
AAD6EgAALQAAACMAAAD6EgAAJAAAACMAAACNGgAAJQAAACMAAACNGgAAJwAAACMA
AACNGgAALQAAACMAAACNGgAALQAAACMAAABLKQAALQAAACMAAADvMAAALQAAACMA
AAAeQAAALQAAACMAAAD0QAAAJAAAACMAAAD1RgAAJQAAACMAAAD1RgAAJwAAACMA
AAD1RgAAKQAAACMAAAD1RgAALQAAACMAAAD1RgAAJAAAACMAAAB7RwAAJQAAACMA
AAB7RwAAKAAAACMAAAD2TQAALQAAACMAAAD2TQAAJAAAACMAAADnTgAAJQAAACMA
AADnTgAAJwAAACMAAADnTgAAKAAAACMAAADnTgAALQAAACMAAADnTgAALQAAACMA
AABTcAAAJwAAACMAAAD3qwAAKQAAACMAAAD3qwAAJwAAACMAAAA3FAAALQAAACMA
AACkSgAAJwAAACMAAAC8owAAKAAAACMAAAApKgAAKQAAACMAAAApKgAALQAAACMA
AAA5cQAAJAAAACMAAABMowAAJQAAACMAAABMowAAJAAAACMAAABeowAAJQAAACMA
AABeowAALQAAACMAAABeowAALQAAACMAAAAaEAAAJAAAACMAAADORAAAJQAAACMA
AADORAAALQAAACMAAADORAAAJAAAACMAAACQaQAAJQAAACMAAACQaQAALQAAACMA
AACQaQAALQAAACMAAACNaQAAJAAAACMAAABtowAAJQAAACMAAABtowAALQAAACMA
AABtTwAALQAAACMAAACYnAAALQAAACMAAADrogAAJAAAACMAAABPowAAJQAAACMA
AABPowAALQAAACMAAABhowAAJAAAACMAAABSpAAAJQAAACMAAABSpAAALQAAACMA
AABSpAAALQAAACMAAACPKgAAJAAAACMAAABRCgAAJQAAACMAAABRCgAAJwAAACMA
AABRCgAAKAAAACMAAABRCgAAKQAAACMAAABRCgAALQAAACMAAABRCgAALQAAACMA
AADuFgAAJAAAACMAAAB4MQAAJQAAACMAAAB4MQAAJwAAACMAAAB4MQAAKQAAACMA
AAB4MQAALQAAACMAAAB4MQAALgAAACMAAABiTgAAJAAAACMAAAALTwAAJQAAACMA
AAALTwAALQAAACMAAAALTwAAKAAAACMAAABwRgAALQAAACMAAAB8SQAALQAAACMA
AADGGAAAJwAAACMAAABmQwAAKAAAACMAAABmQwAALQAAACMAAABmQwAAJAAAACMA
AABvUAAAJQAAACMAAABvUAAAKAAAACMAAABvUAAAKQAAACMAAABvUAAALQAAACMA
AABvUAAALQAAACMAAABlSQAAJAAAACMAAADWDQAAJQAAACMAAADWDQAAJwAAACMA
AADWDQAAKAAAACMAAADWDQAALQAAACMAAADWDQAAJAAAACMAAABaEQAAJQAAACMA
AABaEQAAJwAAACMAAABaEQAAKAAAACMAAABaEQAAKQAAACMAAABaEQAALQAAACMA
AABaEQAAJAAAACMAAACVFQAAJQAAACMAAACVFQAALQAAACMAAACVFQAAJAAAACMA
AAAzGAAAJQAAACMAAAAzGAAALQAAACMAAAAzGAAAJAAAACMAAADOHQAAJQAAACMA
AADOHQ==');
.
.
.
整個10046的TRACE檔案都充斥著dbms_aw_exp.import_chunk100過程的呼叫。這個過程的目的是為了exp/imp過程可以跨平臺,跨32/64位環境而對於OLAP資料進行的特殊處理。這個過程的效率非常低,也就造成了IMP匯入的效率低下。
其實Oracle對於包含OLAP資料的使用者遷移提供了專門的工具OLAP DML IMPORT/EXPORT,使用這個工具處理OLAP元件的資料是十分高效的。而傳統的EXP/IMP在處理使用者資料時沒有問題,但是當需要匯入OLAP後設資料時,就會導致異常低效的問題,而如果IMP匯入已經開始,那麼也沒有什麼太好的辦法,只好等它自己結束了。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-741935/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Laravel 5.2 的一處嚴重效能問題Laravel
- 【EXP/IMP】使用EXP /IMP工具“模糊”匯出和匯入
- exp/imp匯出匯入工具的使用
- exp/imp匯入匯出版本問題和ORA-6550報錯
- 解決imp匯入時,使用源DB中表空間名的問題
- Oracle exp/imp匯出匯入工具的使用Oracle
- imp工具匯入整個資料庫出現的問題資料庫
- Laravel 中使用 PHP7.2+symfony 版本問題(嚴重)LaravelPHP
- 資料匯入匯出EXP/IMP
- exp/imp匯出匯入資料
- Oracle匯入(imp )與匯出(exp )Oracle
- ORACLE匯入匯出命令exp/impOracle
- oracle資料匯出匯入(exp/imp)Oracle
- Oracle 遠端匯出匯入 imp/expOracle
- Oracle資料泵-schema匯入匯出Oracle
- impdp匯入包含xmltype型別欄位空表報錯問題XML型別
- sql server資料庫select產生嚴重阻塞引起效能問題SQLServer資料庫
- Oracle資料匯入匯出imp/exp命令Oracle
- oracle資料的匯入匯出imp/expOracle
- 使用exp/imp匯出匯入資料(邏輯備份恢復)
- 使用Oracle 的 imp ,exp 命令實現資料的匯入匯出Oracle
- ORACLE exp/imp匯入報錯IMP-00009&IMP-00028&IMP-00015Oracle
- 使用IMP將資料匯入指定的表空間
- Oracle資料庫匯入匯出。imp匯入命令和exp匯出命令Oracle資料庫
- webpack碰到的問題Web
- 【imp】使用imp工具遷移資料時迂迴地排除特定表的匯入
- oracle imp匯入幾點小記Oracle
- imp exp 跨系統匯入案例
- Oracle資料匯入匯出imp/exp命令(轉)Oracle
- 使用vue-server-render時碰到的問題VueServer
- EXP直接匯出壓縮問津,IMP直接匯入壓縮檔案的方法
- 使用sqlldr匯入日期格式欄位的問題SQL
- Oracle使用資料泵在異機之間匯出匯入多個 schemaOracle
- imp匯入檔案時報大量的imp-0008錯誤
- oracle 10.1.0.2匯入IMP-00017Oracle
- Hodoop碰到的問題628OdooOOP
- 智慧家居泡沫:安全和隱私問題最嚴重
- imp匯入時default 按table提交,使用commit按buffer提交MIT