ORA-20000:unable to analyze table "XXX"."DBMS_TABCOMP_TEMP_UNCMP",insufficient privileges or does no

RDBMS 11.2.0.1 

PLATFORM :AIX 6.1

在alertlog中发现ORA-20000:unable to analyze table "XXX"."DBMS_TABCOMP_TEMP_UNCMP",insufficient privileges or does no exist 告警。

告警具体内容为

gather_stats_job encountered errors.check the trace file.
errors in file XXX
ORA-20000:unable to analyze table "XXX"."XXX",insufficient privileges or does not exist 

其中trc文件的大概内容如下:

MODULE_NAME:DBMS_SCHEDULER
ORA-20000:unable to analyze table "XXX"."XXX",insufficient privileges or does not exist
gather_stats_job:gather_stats_job("XXX","XXX","",...)
ORA-20000:unable to analyze table "XXX"."XXX",insufficient privileges or does not exist

排查过程:

在MOS上查看错误信息,发现以下文章的内容和错误较类似,也提供了相关的思路。

Gather Schema Statistics Errors with APPS.EUL5_B<number> ORA-20000 Unable to analyze TABLE (文档 ID 1680854.1)

DBMS_STATS: GATHER_STATS_JOB encountered errors. ORA-20000: Unable to set values for table DBMS_TABCOMP_TEMP_UNCMP: does not exist or insufficient privileges (文档 ID 1463793.1)

该MOS上关于该错误的一些解释

This issue matches Bug 9939773 which was closed as not a bug as explained by the following description:
"
The compression advisor creates intermediate tables (creates/drops tables DBMS_TABCOMP_TEMP_UNCMP). In case a GATHER_STATS_JOB is run at the same time , the table(s) will be in the list of tables to be analyzed. In case the table is automatically dropped by the compression advisory job before the GATHER_STATS_JOB has reached to that table in the list, the ORA-2000 will be hit. When DBMS_STATS finds it is no longer available, it writes to the alert log.This is no different from the case where a user table is dropped during a statistics gather. 
"
 These tables are summary tables which only exist when the Discoverer scheduled batch job to create the summaries is still running and will then be dropped.

另外,在查询DBMS_TABCOMP_TEMP_UNCMP这个表的时候,发现库中是没有这个表的。无论是查询dba_tables 还是desc表。都没有的。从MOS上的一些解释可以看到,该表为临时的表,会被删掉。而自动优化统计信息任务在执行的时候,可能数据字典中还认为存在这个表。但实际这个表已经不存在了。所以会出现这个错误。从MOS上的解释看。不影响后续的优化统计信息的Job的执行。


END。




  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值