中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

oracle數據泵導入遭遇bug記錄

發布時間:2020-08-09 14:35:07 來源:ITPUB博客 閱讀:201 作者:水逸冰 欄目:關系型數據庫

下午收到了一個導數據的需求,一張表,20多萬數據,小case,卻遇到了問題。
關鍵報錯:
ORA-39097 ORA-39065 ORA-01427 ORA-39126 ORA-06502 LPX-00225 導入語句:
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進程在處理表的統計信息時,在處理直方圖信息的時候出現了錯誤,在源端查詢表上確實有直方圖。這種內部處理過程出現無法正確處理的情況,可以認為是oracle的bug。解決辦法也簡單,繞過統計信息即可:
impdp "'/as sysdba'" directory=DATA_PUMP_DIR dumpfile=NCHATTAG1.dmp logfile=20180821.log table_exists_action=replace EXCLUDE=STATISTICS
無報錯成功導入。

手動收集統計信息:
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===================\n
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

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

渝中区| 舟曲县| 丁青县| 新昌县| 湟源县| 辰溪县| 安福县| 霸州市| 龙里县| 哈尔滨市| 鄂尔多斯市| 永德县| 东山县| 泸西县| 进贤县| 枣庄市| 临夏县| 崇文区| 平山县| 晋州市| 巴林左旗| 青田县| 呼伦贝尔市| 伊川县| 松江区| 五常市| 平遥县| 秦皇岛市| 巴楚县| 禄丰县| 鄱阳县| 闻喜县| 灵台县| 石城县| 迁安市| 舞钢市| 石河子市| 宣恩县| 汉中市| 安吉县| 甘孜县|