ORA-12012: error on auto execute of job SYS.BSLN_MAINTAIN_STATS_JOB
一.版本信息
操作系統(tǒng)版本:
AIX 6100
數(shù)據(jù)庫版本:
11.2.0.3(psu5)
?
二.錯(cuò)誤描述
在alert 日志中發(fā)現(xiàn)如下報(bào)錯(cuò)
Sun Sep 28 15:00:22 2014 Errors in file /oracle/app/oracle/diag/rdbms/xxx/xxx/trace/xxx2_j000_8519814.trc: ORA-12012: error on auto execute of job "SYS"."BSLN_MAINTAIN_STATS_JOB" ORA-06502: PL/SQL: numeric or value error ORA-06512: at "DBSNMP.BSLN_INTERNAL", line 2073 ORA-06512: at line 1trace文件中信息同alert日志文件中報(bào)錯(cuò)類似
SQL> select log_date,status from dba_scheduler_job_run_details where job_name='BSLN_MAINTAIN_STATS_JOB' order by log_date desc;LOG_DATE STATUS --------------------------------------------------------------------------- ------------------------------ 28-SEP-14 03.00.22.110836 PM +08:00 FAILED 21-SEP-14 03.00.20.124075 PM +08:00 FAILED 14-SEP-14 03.00.20.780679 PM +08:00 FAILED 07-SEP-14 03.00.24.276810 PM +08:00 FAILED 31-AUG-14 03.00.02.057835 PM +08:00 FAILED#通過dba_scheduler_job_run_details視圖我們可以看到在alert出現(xiàn)報(bào)錯(cuò)的時(shí)間有一條失敗記錄
?
三.問題原因及解決方案
通過MOS查到如下NOTE (Doc ID 1413756.1)
MOS給的解釋是:
As in a specific customer's situation, the issue can occur when a Database is created with a template from the old database or created as a clone from another database. The existing records in table "DBSNMP.BSLN_BASELINES" conflict with new baseline information inserted in the cloned database, thereby containing inconsistent information.#如果你的數(shù)據(jù)庫是通過模板創(chuàng)建,或者是克隆的,那么這個(gè)錯(cuò)誤就可能好發(fā)生。因?yàn)樵瓟?shù)據(jù)庫中"DBSNMP.BSLN_BASELINES" 表的記錄可能會同新插入數(shù)據(jù)沖突。
?
MOS給出的解決方案是:
This issue is fixed in 11.2.0.4.
For 11.2.0.2 and 11.2.0.3, please apply Patch 10110625 (if available for your platform and database version).
?
臨時(shí)解決方案:
As a workaround, the DBSNMP user can be dropped and re-created using the standard scripts.
Ensure you have Backed up your database.
?##詳細(xì)情況請查看 "Doc ID 1413756.1"
?
四. 解決過程
因?yàn)闀簳r(shí)沒有條件給現(xiàn)網(wǎng)數(shù)據(jù)庫打補(bǔ)丁,所以決定先采用臨時(shí)解決方案進(jìn)行處理。
但是在重建執(zhí)行@$ORACLE_HOME/rdbms/admin/catsnmp.sql命令重建DBSNMP時(shí)報(bào)如下錯(cuò)誤:
Package body created.Package body created.declare * ERROR at line 1: ORA-04068: existing state of packages has been discarded ORA-04061: existing state of package "DBSNMP.BSLN" has been invalidated ORA-04065: not executed, altered or dropped package "DBSNMP.BSLN" ORA-06508: PL/SQL: could not find program unit being called: "DBSNMP.BSLN" ORA-06512: at line 18PL/SQL procedure successfully completed.發(fā)生該錯(cuò)誤的具體原因,及解決方案將在我的另一篇博客中詳細(xì)解釋。博客連接如下:
http://blog.csdn.net/shaochenshuo/article/details/39669273
?
總結(jié)
以上是生活随笔為你收集整理的ORA-12012: error on auto execute of job SYS.BSLN_MAINTAIN_STATS_JOB的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 设备管理器里“SM总线控制器”、“其他P
- 下一篇: AI 趋势