日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 人工智能 > ChatGpt >内容正文

ChatGpt

ORA-12012: error on auto execute of job SYS.BSLN_MAINTAIN_STATS_JOB

發(fā)布時(shí)間:2024/3/12 ChatGpt 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ORA-12012: error on auto execute of job SYS.BSLN_MAINTAIN_STATS_JOB 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

一.版本信息

操作系統(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 1

trace文件中信息同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.

-- Login as sys user.SQL> sqlplus / as sysdba-- From the sqlplus execute the following:-- Drop the DBSNMP user by executing catnsnmp.sql script.SQL> @$ORACLE_HOME/rdbms/admin/catnsnmp.sql-- Create the DBSNMP user by executing catsnmp.sqlSQL> @$ORACLE_HOME/rdbms/admin/catsnmp.sql


?##詳細(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)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。