下午收到了一個(gè)導(dǎo)數(shù)據(jù)的需求,一張表,20多萬(wàn)數(shù)據(jù),小case,卻遇到了問(wèn)題。
關(guān)鍵報(bào)錯(cuò):
ORA-39097 ORA-39065 ORA-01427 ORA-39126 ORA-06502 LPX-00225
導(dǎo)入語(yǔ)句:
impdp "'/as sysdba'" directory=DATA_PUMP_DIR dumpfile=NCHATTAG1.dmp logfile=20180821.log
log如下:
Import: Release 11.2.0.4.0 - Production on Tue Aug 21 15:59:30 2018
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
Master table "SYS"."SYS_IMPORT_FULL_02" successfully loaded/unloaded
Starting "SYS"."SYS_IMPORT_FULL_02": "/******** AS SYSDBA" directory=DATA_PUMP_DIR dumpfile=NCHATTAG1.dmp logfile=20180821.log
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
. . imported "NCHATTAG1"."MESSAGE" 68.48 MB 205729 rows
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'P_WANGYP_R' does not exist
Failing sql is:
GRANT SELECT ON "NCHATTAG1"."MESSAGE" TO "P_WANGYP_R"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'R_NCHATTAG1_READER' does not exist
Failing sql is:
GRANT SELECT ON "NCHATTAG1"."MESSAGE" TO "R_NCHATTAG1_READER"
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
ORA-39126: Worker unexpected fatal error in KUPW$WORKER.PUT_DDLS [TABLE_STATISTICS]
ORA-06502: PL/SQL: numeric or value error
LPX-00225: end-element tag "HIST_GRAM_LIST_ITEM" does not match start-element tag "EPVALUE"
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPW$WORKER", line 9715
----- PL/SQL Call Stack -----
object line object
handle number name
0x62926f00 21979 package body SYS.KUPW$WORKER
0x62926f00 9742 package body SYS.KUPW$WORKER
0x62926f00 17950 package body SYS.KUPW$WORKER
0x62926f00 4058 package body SYS.KUPW$WORKER
0x62926f00 10450 package body SYS.KUPW$WORKER
0x62926f00 1824 package body SYS.KUPW$WORKER
0x67897468 2 anonymous block
ORA-39097: Data Pump job encountered unexpected error -1427
ORA-39065: unexpected master process exception in DISPATCH
ORA-01427: single-row subquery returns more than one row
Job "SYS"."SYS_IMPORT_FULL_02" stopped due to fatal error at Tue Aug 21 16:00:01 2018 elapsed 0 00:00:30
可以看到dw進(jìn)程在處理表的統(tǒng)計(jì)信息時(shí),在處理直方圖信息的時(shí)候出現(xiàn)了錯(cuò)誤,在源端查詢表上確實(shí)有直方圖。這種內(nèi)部處理過(guò)程出現(xiàn)無(wú)法正確處理的情況,可以認(rèn)為是oracle的bug。解決辦法也簡(jiǎn)單,繞過(guò)統(tǒng)計(jì)信息即可:
impdp "'/as sysdba'" directory=DATA_PUMP_DIR dumpfile=NCHATTAG1.dmp logfile=20180821.log table_exists_action=replace EXCLUDE=STATISTICS
無(wú)報(bào)錯(cuò)成功導(dǎo)入。
手動(dòng)收集統(tǒng)計(jì)信息:
oracle@bd-dev-oracle-104:/opt/app/oracle/diag/rdbms/bdcfg/BDCFG/trace$ora ant NCHATTAG1 message
\n=============Tue Aug 21 16:54:43 CST 2018===================
exec DBMS_STATS.GATHER_TABLE_STATS(ownname=>'NCHATTAG1',tabname=>'message',estimate_percent=>10,no_invalidate=>false,cascade=>true,degree => 10);
Can you confirm?[y/n]
y
事后去mos上搜索了一下,可以參考文檔 ID 878626.1
公司主營(yíng)業(yè)務(wù):成都網(wǎng)站建設(shè)、做網(wǎng)站、移動(dòng)網(wǎng)站開(kāi)發(fā)等業(yè)務(wù)。幫助企業(yè)客戶真正實(shí)現(xiàn)互聯(lián)網(wǎng)宣傳,提高企業(yè)的競(jìng)爭(zhēng)能力。成都創(chuàng)新互聯(lián)公司是一支青春激揚(yáng)、勤奮敬業(yè)、活力青春激揚(yáng)、勤奮敬業(yè)、活力澎湃、和諧高效的團(tuán)隊(duì)。公司秉承以“開(kāi)放、自由、嚴(yán)謹(jǐn)、自律”為核心的企業(yè)文化,感謝他們對(duì)我們的高要求,感謝他們從不同領(lǐng)域給我們帶來(lái)的挑戰(zhàn),讓我們激情的團(tuán)隊(duì)有機(jī)會(huì)用頭腦與智慧不斷的給客戶帶來(lái)驚喜。成都創(chuàng)新互聯(lián)公司推出維西免費(fèi)做網(wǎng)站回饋大家。
本文題目:oracle數(shù)據(jù)泵導(dǎo)入遭遇bug記錄
文章位置:http://www.rwnh.cn/article42/gpojhc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供營(yíng)銷型網(wǎng)站建設(shè)、網(wǎng)站設(shè)計(jì)公司、網(wǎng)站營(yíng)銷、企業(yè)建站、品牌網(wǎng)站設(shè)計(jì)、網(wǎng)站設(shè)計(jì)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)