expdp query导出报错 ORA-29913 ORA-01722

一. 问题描述:

 [oracle@crfdb1 temp]$ expdp  clspuser/clsp  dumpfile=hmtdb20130301_hmt_log.dmp directory= pump_dir  tables = crf_p2p_rpt_bill_pen_new query=crf_p2p_rpt_bill_pen_new:'"where ( GZ_YM = '2016-08' or GZ_YM ='2016-09' or GZ_YM ='2016-10')"'

Export: Release 10.2.0.1.0 - 64bit Production on Tuesday, 08 November, 2016 15:26:00

Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Starting "CLSPUSER"."SYS_EXPORT_TABLE_01":  clspuser/******** dumpfile=hmtdb20130301_hmt_log.dmp directory= pump_dir tables = crf_p2p_rpt_bill_pen_new query=crf_p2p_rpt_bill_pen_new:"where ( GZ_YM = 2016-08 or GZ_YM =2016-09 or GZ_YM =2016-10)" 
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 197 MB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/COMMENT
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
ORA-31693: Table data object "CLSPUSER"."CRF_P2P_RPT_BILL_PEN_NEW" failed to load/unload and is being skipped due to error:
ORA-29913: error in executing ODCIEXTTABLEPOPULATE callout
ORA-01722: invalid number
Master table "CLSPUSER"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for CLSPUSER.SYS_EXPORT_TABLE_01 is:
  /backup/temp/hmtdb20130301_hmt_log.dmp
Job "CLSPUSER"."SYS_EXPORT_TABLE_01" completed with 1 error(s) at 15:26:30

[oracle@crfdb1 temp]$ 

二. 问题解决:

[oracle@crfdb1 temp]$ expdp  clspuser/clsp  dumpfile=2.dmp  logfile=2.log  directory= pump_dir  tables = crf_p2p_rpt_bill_pen_new query=crf_p2p_rpt_bill_pen_new:\"where GZ_YM=\'2016-08\' or  GZ_YM=\'2016-09\' or  GZ_YM=\'2016-10\'  \"


Export: Release 10.2.0.1.0 - 64bit Production on Tuesday, 08 November, 2016 16:31:22


Copyright (c) 2003, 2005, Oracle.  All rights reserved.


Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Starting "CLSPUSER"."SYS_EXPORT_TABLE_01":  clspuser/******** dumpfile=2.dmp logfile=2.log directory= pump_dir tables = crf_p2p_rpt_bill_pen_new query=crf_p2p_rpt_bill_pen_new:"where GZ_YM='2016-08' or GZ_YM='2016-09' or GZ_YM='2016-10' " 
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 197 MB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/COMMENT
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "CLSPUSER"."CRF_P2P_RPT_BILL_PEN_NEW"       21.98 MB  192356 rows
Master table "CLSPUSER"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for CLSPUSER.SYS_EXPORT_TABLE_01 is:
  /backup/temp/2.dmp
Job "CLSPUSER"."SYS_EXPORT_TABLE_01" successfully completed at 16:31:32


[oracle@crfdb1 temp]$ 

你可能感兴趣的:(备份恢复)