ORA-20011: Approximate NDV failed: ORA-29913: error in executing ODCIEXTTABLEOPEN callout

报错信息

ORA-20011:Approximate NDV failed: ORA-29913: error in executing ODCIEXTTABLEOPEN callout.

1.首先检查alert.log.

ORA-20011: Approximate NDV failed: ORA-29913: error inexecuting ODCIEXTTABLEOPEN callout

KUP-11024: This external table can only be accessed fromwithin a Data Pump job.

 

*** 2013-09-26 22:00:06.240

DBMS_STATS: GATHER_STATS_JOB:GATHER_TABLE_STATS('"SYSTEM"','"ET$06A700050001"','""',...)

DBMS_STATS: ORA-20011: Approximate NDV failed: ORA-29913:error in executing ODCIEXTTABLEOPEN callout

KUP-11024: This external table can only beaccessed from within a Data Pump job.


2.检查对应的外部表 看看情况

SQL> select owner, TABLE_NAME, DEFAULT_DIRECTORY_NAME,ACCESS_TYPE from dba_external_tables;

 

OWNER                         TABLE_NAME                    DEFAULT_DIRECTORY_NAME         ACCESS_

------------------------------------------------------------ ------------------------------ -------

SYSTEM                        ET$06A700050001               DATA_PUMP_DIR                 CLOB

 

SQL> select OWNER,OBJECT_NAME,OBJECT_TYPE,status,to_char(CREATED,'dd-mon-yyyy hh24:mi:ss') created ,to_char(LAST_DDL_TIME, 'dd-mon-yyyy hh24:mi:ss') last_ddl_time from dba_objects where object_namelike 'ET$%';

 

OWNER                         OBJECT_NAME         OBJECT_TYPE         STATUS CREATED                      LAST_DDL_TIME

------------------------------ --------------------------------------- ------- ----------------------------------------------------------

SYSTEM                        ET$06A700050001     TABLE              VALID   12-dec-2012 04:53:48         12-dec-2012 04:53:48


这个原因是因为以前的一个系统监控export表没有被drop。

This error appear due to this table must be cleanup autowhen the datadump complete the job ,but it's not dropped as well so when gatherstatistics this error appear, so I drop the table. 


你可能感兴趣的:(ORA-)