EXPDP匯出報ORA-31693 ORA-29913 ORA-01861錯誤
1 使用如下語句匯出資料,報錯
[oracle@host_A ftp]$ expdp \'/ as sysdba\' JOB_NAME=xsc0206 directory=FTP_EXP tables=user_A.table_A
QUERY=\"where DATA_DATE \>\= to_date\(\'2023-01-01\'\,\'yyyy-mm-dd\'\)\" dumpfile=table_A_0206.dmp
logfile=table_A_0206.log CLUSTER=N FLASHBACK_SCN=15986516223909
Export: Release 11.2.0.4.0 - Production on Tue Feb 7 14:55:04 2023
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, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
Starting "SYS"."XSC0206": "/******** AS SYSDBA" JOB_NAME=xsc0206 directory=FTP_EXP tables=user_A.table_A QUERY="where DATA_DATE >= to_date('2023-01-01','yyyy-mm-dd')"
dumpfile=table_A_0206.dmp logfile=table_A_0206.log CLUSTER=N FLASHBACK_SCN=15986516223909
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 53.59 GB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type TABLE_EXPORT/TABLE/COMMENT
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-31693: Table data object "user_A"."table_A":"TEMP20230130" failed to load/unload and is being skipped due to error:
ORA-29913: error in executing ODCIEXTTABLEPOPULATE callout
ORA-01861: literal does not match format string
ORA-31693: Table data object "user_A"."table_A":"TEMP20230131" failed to load/unload and is being skipped due to error:
ORA-29913: error in executing ODCIEXTTABLEPOPULATE callout
ORA-01861: literal does not match format string
ORA-31693: Table data object "user_A"."table_A":"TEMP20221106" failed to load/unload and is being skipped due to error:
ORA-29913: error in executing ODCIEXTTABLEPOPULATE callout
ORA-01861: literal does not match format string
2 根據報錯資訊,懷疑同表的欄位型別不符,檢視錶結構
SYS@e200pro1 >desc user_A.table_A
Name Null? Type
-------------------------- -------- --------------------
ORG_WWW NOT NULL VARCHAR2(16)
CWWW_TYPE NOT NULL NUMBER(3)
CWWW_SUBTYPE NOT NULL VARCHAR2(16)
DATA_DATE NOT NULL VARCHAR2(8)
TOTWWW_NUM NOT NULL NUMBER(10)
.....
3 檢視過濾條件的時間格式
select data_date from user_A.table_A;
data_date
---------------
20160101
20160101
20160101
20160101
20160101
20160101
20160101
20160101
20160101
20160101
20160101
20160101
20160101
4 修改expdp匯出過濾條件,匯出正常
[oracle@host_A ftp]$ expdp \'/ as sysdba\' JOB_NAME=xsc0207_1 directory=FTP_EXP tables=user_A.table_A
QUERY=\"where DATA_DATE \>\= \'20230101\'\" dumpfile=table_A_0207.dmp logfile=table_A_0207.log
CLUSTER=N FLASHBACK_SCN=15986516223909
Export: Release 11.2.0.4.0 - Production on Tue Feb 7 15:28:17 2023
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, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
Starting "SYS"."XSC0207_1": "/******** AS SYSDBA" JOB_NAME=xsc0207_1 directory=FTP_EXP tables=user_A.table_A QUERY="where DATA_DATE >= '20230101'"
dumpfile=table_A_0207.dmp logfile=table_A_0207.log CLUSTER=N FLASHBACK_SCN=15986516223909
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 53.59 GB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type TABLE_EXPORT/TABLE/COMMENT
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
. . exported "user_A"."table_A":"TEMP20230130" 52.54 MB 566304 rows
. . exported "user_A"."table_A":"TEMP20230131" 52.60 MB 566907 rows
. . exported "user_A"."table_A":"TEMP20221106" 21.19 KB 0 rows
. . exported "user_A"."table_A":"TEMP20221107" 21.19 KB 0 rows
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69996316/viewspace-2934260/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- expdp匯出報ORA-31693、ORA-02354、ORA-01466
- expdp匯出報錯ORA-39127
- EXPDP 時報錯ORA-31693,ORA-02354,ORA-01555
- ORACLE 資料匯出LOB欄位報錯ORA-31693,ORA-02354,ORA-22924Oracle
- oracle 11g expdp匯出報ORA-24001Oracle
- RAC單個節點執行expdp提示ORA-31693 ORA-31617 ORA-19505 ORA-27037錯誤
- ORACLE 資料泵impdp匯入報錯之ORA-31693 ORA-04098Oracle
- expdp 匯出時指定節點
- Oracle資料泵匯出匯入(expdp/impdp)Oracle
- expdp報錯ORA-39181
- Oracle 12c expdp和impdp匯出匯入表Oracle
- Oracle expdp資料泵遠端匯出Oracle
- 基於flashback_scn的expdp匯出
- photoshop匯出png發生未知錯誤的解決方案,ps匯出發生未知錯誤怎麼解決
- 匯入sql時報日期型別錯誤SQL型別
- [oracle] expdp 匯出分割槽表的分割槽Oracle
- oracle按照表條件expdp匯出資料Oracle
- [重慶思莊每日技術分享]-expdp匯出報錯LRM-00104: '32;' 不是 'parallel' 的合法整數Parallel
- Oracle使用資料泵expdp,impdp進行資料匯出匯入Oracle
- impdp匯入報ORA-00001 ORA-04088錯誤
- C中的匯流排錯誤和段錯誤
- 如何確定一個dmp檔案是exp匯出的還是expdp匯出的?
- Oracle 11g 透過expdp按日期匯出表Oracle
- 【資料泵】EXPDP匯出表結構(真實案例)
- expdp在匯出時對資料大小進行評估
- impdp/expdp報錯: ORA-39064: 無法寫入日誌檔案 ORA-29285: 檔案寫入錯誤
- 【ASK_ORACLE】一眼判斷出Oracle的dmp檔案是用expdp匯出還是exp匯出Oracle
- [重慶思莊每日技術分享]-expdp按日期匯出表
- exp匯出報錯EXP-00106問題處理
- 記一次expdp匯出任務中某張大表報錯問題的解決過程
- Excel匯入null錯誤解決方式ExcelNull
- exp和expdp的filesize引數的使用--匯出多個檔案
- 用VS2015匯入工程時出現error MSB8020錯誤Error
- oracle10g expdp資料泵的bug,按schema匯出,匯入impdp時無jobOracle
- mysqldump匯出報錯"mysqldump: Error 2013 ... during query when dumping tableMySqlError
- ovftool匯出虛擬機器報錯處理過程!虛擬機
- PPT匯入3D模型匯入出現錯誤或者模型紋理消失的解決方法3D模型
- 使用Exp和Expdp匯出資料的效能對比與最佳化