ORA-12012: error on auto execute of job SYS.BSLN_MAINTAIN_STATS_JOB
一.版本信息
操作系统版本:
AIX 6100
数据库版本:
11.2.0.3(psu5)
二.错误描述
在alert 日志中发现如下报错
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日志文件中报错类似
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出现报错的时间有一条失败记录
三.问题原因及解决方案
通过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.
#如果你的数据库是通过模板创建,或者是克隆的,那么这个错误就可能好发生。因为原数据库中"DBSNMP.BSLN_BASELINES" 表的记录可能会同新插入数据冲突。
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).
临时解决方案:
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.sql
SQL> @$ORACLE_HOME/rdbms/admin/catsnmp.sql
##详细情况请查看 "Doc ID 1413756.1"
四. 解决过程
因为暂时没有条件给现网数据库打补丁,所以决定先采用临时解决方案进行处理。
但是在重建执行@$ORACLE_HOME/rdbms/admin/catsnmp.sql命令重建DBSNMP时报如下错误:
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 18
PL/SQL procedure successfully completed.
发生该错误的具体原因,及解决方案将在我的另一篇博客中详细解释。博客连接如下:
http://blog.csdn.net/shaochenshuo/article/details/39669273
ORA-12012: error on auto execute of job SYS.BSLN_MAINTAIN_STATS_JOB相关推荐
- ORA-12012: error on auto execute of job SYS.BSLN_MAINTAIN_STATS_JOB ORA-01950: no privileges on
收到凌晨邮件告警 Errors in file /opt/oracle/diag/rdbms/xxxx/xxxx2/trace/ixxxx2_j000_5002.trc: ORA-12012: e ...
- ORA-12012 Error on auto execute of job SYS.ORA$AT_OS_OPT_SY_NN in 12.2.0 Database
报错如下: ORA-12012: error on auto execute of job "SYS"."ORA$AT_OS_OPT_SY_88" ORA-20 ...
- Orace 12.2 ORA-12012: error on auto execute of job SYS.ORA$AT_OS_OPT_SY_21
一个测试环境的12.2.0.1数据库后台alert不断报出以下错误信息: Errors in file /d12/app/oracle/diag/rdbms/test/test/trace/test_ ...
- ORA-12012: error on auto execute of job “SYS“.“ORA$AT_OS_OPT_SY_12062“ ORA-20001: Statistics Advisor
近期排查oracle日志报错的时候发现: 报错内容为:当前用户的任务名无效.(Invalid task name for the current user) 在网上搜索了一波之后,据oracle给出的 ...
- oracle18c报错ORA-12012: error on auto execute of job
新安装的oracle18c数据库,alert log一直出错: ORA-12012: error on auto execute of job ORA-12012: error on auto exe ...
- ORA-12012: error on auto execute of job quot;ORACLE_OCM
ALERT日志中报错例如以下: Sun Mar 30 06:05:40 2014 Errors in file /oracle/app/oracle/diag/rdbms/zscims/zscims1 ...
- ORA-07445 ERROR on auto execute of job 8913
巡检时出现 Tue Jul 17 22:00:08 2012 Errors in file e:\oracle\product\10.2.0\admin\zsdb\bdump\zsdb_j000_20 ...
- ERROR 1370 (42000): execute command denied to user ‘james‘@‘localhost‘ for routine ‘test.coun_add‘
对于 ERROR 1370 (42000): execute command denied to user 'james'@'localhost' for routine 'test.coun_add ...
- clang++ exe error unable to execute command Couldnt execute program文件名或扩展名太长
在VS中用VisualGDB插件编译安卓工程,莫名其妙突然出现以下报错:clang++.exe: error: unable to execute command: Couldn't execute ...
最新文章
- miniui列表下拉允许编辑且保存_办公小技巧:请个好用的文本代码编辑器
- 2020年,那些「引爆」了ML社区的热门论文、库和基准
- oracle 触发器 merge,如何从触发器中解决Oracle变异错误
- Windows保护模式学习笔记(三)—— 长调用/短调用/调用门
- IIS网站打不开错误解决方案集锦(一):编译器错误消息: 编译器失败,错误代码为 -1073741502。...
- 在linux下使用多个tomcat
- canvas换图时候会闪烁_Canvas实现图片上标注、缩放、移动和保存历史状态,纯干货(附CSS 3变化公式)...
- 2021年河北省高考成绩录取查询结果,2021年河北高考一本录取结果查询和录取通知书发放时间...
- 实体与属性间的划分原则
- 耗时n年,38页《数据仓库知识体系.pdf》(数据岗位必备)
- [LeetCode] NO. 8 String to Integer (atoi)
- GDI+ 透明窗口.UpdateLayeredWindow
- c 匹配mysql密码,MySQL设置密码的三种方法
- 常用的正则表达式及符号诠释
- java周报简单模板_快速成长从写一份走心的周报开始
- 如何通过站群提高网站曝光率
- Android zip文件压缩与解压
- 【舆情报告】当我们在谈论王者荣耀时,我们在谈论什么?
- AutoCAD Civil 3D-路线-断链的处理
- Android gradient 三色渐变背景 Shap
热门文章
- hadoop 3.x 启动过程中 Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
- 亚马逊补单是怎么做的?
- Unrecognized option: --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED 解决办法
- 数据流图、数据流程图、程序流程图的区别与联系
- Ubuntu 18.04 安装 nginx 并搭建一个简单的网站
- HTTP状态码 - 维基百科,自由的百科全书
- 一个 epoll 连接句柄定时管理器
- Linux中bash文档翻译
- 批处理之FOR语句祥解
- 关于20年吉林电赛D题硬件电路的分享