Ora-29913: Error In Executing Odciexttableopen Callout (文档 ID 353642.1)

来源:互联网 发布:壳牌经销商网络大学 编辑:程序博客网 时间:2024/05/22 07:42

APPLIES TO:

Oracle Database - Enterprise Edition - Version 9.0.1.0 to 9.2.0.6 [Release 9.0.1 to 9.2]
Information in this document applies to any platform.
***Checked for relevance on 04-May-2012***
*** Checked for relevance on 05-Apr-2016 ***

SYMPTOMS

When trying to run dbms_stats.gather_database_stats it fails with an error:

SYS on 10-JAN-06 at oradev >exec dbms_stats.gather_database_Stats;
BEGIN dbms_stats.gather_database_Stats; END;
*
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04063: unable to open log file sh_sales_ext.log
OS error No such file or directory
ORA-06512: at "SYS.DBMS_STATS", line 10070
ORA-06512: at "SYS.DBMS_STATS", line 10564
ORA-06512: at "SYS.DBMS_STATS", line 10751
ORA-06512: at "SYS.DBMS_STATS", line 10845
ORA-06512: at "SYS.DBMS_STATS", line 10825
ORA-06512: at line 1

Verified the issue by the screen shots in the SR, which shows that a call to gather database
stats is failing when trying to locate a log file.

CAUSE

The directories are invalid.

Changing directories (cd) on the OS, to the ones listed in dba_directories reports they cannot be found.

SOLUTION

To implement the solution, please execute the following steps:

1. create or replace directory MEDIA_DIR as '$ORACLE_HOME/demo/schema/product_media/';
2. create or replace directory LOG_FILE_DIR as '$ORACLE_HOME/demo/schema/log/';
3. create or replace directory DATA_FILE_DIR as '$ORACLE_HOME/demo/schema/sales_history/';

阅读全文
0 0
原创粉丝点击