设为首页 收藏本站
查看: 1568|回复: 0

[经验分享] ORA- 12012 : err or on aut o execu te of job ORACLE_OCM. MGMT_CONFIG_JOB_2_

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2015-11-9 11:37:57 | 显示全部楼层 |阅读模式
  巡检客户的数据库,发现alert log中报如下错误:
  ORA-12012: error on auto execute of job "ORACLE_OCM"."MGMT_CONFIG_JOB_2_1"
ORA-29280: invalid directory path
ORA-06512: at "ORACLE_OCM.MGMT_DB_LL_METRICS", line 2436
ORA-06512: at line 1

  

  数据库版本11.2.0.3
  

  解决方式见
文档 ID 1615561.1

  

"ORA-12012: error on auto executeof job ORACLE_OCM.MGMT_CONFIG_JOB_2_1" And "ORA-29280: invalid directory path" In Database AlertLog (文档 ID 1615561.1)

  

In this Document

Symptoms Changes Cause Solution References

APPLIES TO:
Oracle Configuration Manager - Version 10.3.8 and later
Information in this document applies to any platform.
SYMPTOMS
The following error message may appear in a database alert log during the instrumentation phase of OCM:


Wed Dec 18 22:00:05 2013
Errors in file /u01/app/oracle/diag/rdbms/db1/db1/trace/db1_j001_10411.trc:
ORA-12012: error on auto execute of job "ORACLE_OCM"."MGMT_CONFIG_JOB_2_1"
ORA-29280: invalid directory path
ORA-06512: at "ORACLE_OCM.MGMT_DB_LL_METRICS", line 2436
ORA-06512: at line 1
CHANGES
When installing a new database or upgrading a database to newer release.
CAUSE
Newer database releases are automatically instrumented for OCM collections. But in some cases, the OCM instrumentation job is trying to write to a "state" directory called "ORACLE_OCM_CONFIG_DIR2" which doesn'texist.

To verify if the OCM directories exist or not, run the following as sysdba:


SQL>select * from dba_directories where DIRECTORY_NAME like '%OCM_CONFIG%';

MGMT_DB_LL_METRICS wants to write to ORACLE_OCM_CONFIG_DIR2, which is not created by the built-in instrumentation scripts.


解决方法
To solve this issue please run the following verification steps.

1. Run the following command to check if OCM is installed / configured or not.

$ORACLE_HOME/ccr/bin/deployPackages -lIf it returns rows like 'proceed to STEP 2', then OCM is not configured.  
Follow the OCM installation steps given below in Step 2 to properly configure OCM in the Database Oracle Home.

Installed Oracle Configuration Manager Packages:
===============================================
Package core, Version: 12.0.0.0.1 - built 10/15/2013 08:14:17 PM
  built on x86_64; also supported: amd64,i386
Package engines, Version: 12.0.0.0.0 - built 10/15/2013 08:16:01 PM
  built on x86_64; also supported: amd64,i386
Package metricdata, Version: 12.0.0.0.0 - built 10/15/2013 08:16:37 PM
Package ocmcert, Version: 12.0.0.0.0 - built 10/15/2013 08:14:35 PM
  built on
Package rda, Version: 8.02.13.12.10 - built 10-Dec-2013 11:50:07
Package rdacelin, Version: 8.02.13.12.10 - built 10-Dec-2013 11:50:07
  built on i386; also supported: x86,x86_64,i686,amd64,ia64
Package scripts, Version: 12.0.0.0.1 - built 10/15/2013 08:14:39 PM
  built on x86_64; also supported: amd64,i386
  Installation Steps:
  If OCM is not installed, please install it using steps given in the below document. It will create the directory during the installation. NO need to follow step 2.
  OracleConfiguration Manager Installation and Administration Guide

2. Run the following scripts to create the directory and grant the permissions on directory.

  Connect as sysdba

SQL> @ORACLE_HOME/ccr/admin/scripts/ocmjb10.sql

SQL> @ORACLE_HOME/ccr/admin/scripts/execute execocm.sql
  Depending on OCM and/or Oracle Databases releases the scripts location may change.
  Example:
  SQL> @ORACLE_HOME/rdbms/admin/ocmjb10.sql
SQL> @ORACLE_HOME/rdbms/admin/execocm.sql


3.  Now verify the directory information:

  Output should be like :
  SQL> select * from dba_directories where DIRECTORY_NAME like '%OCM_CONFIG%';
  OWNER    DIRECTORY_NAME         DIRECTORY_PATH
-------- ---------------------- ------------------------------------------------------------------
SYS      ORACLE_OCM_CONFIG_DIR2 /u01/app/oracle/product/11.2.0.3/dbhome_1/ccr/state
SYS      ORACLE_OCM_CONFIG_DIR  /u01/app/oracle/product/11.2.0.3/dbhome_1/ccr/hosts/dc2oda-1/state
  **Directory ORACLE_OCM_CONFIG_DIR2 should be returned in output.
  
  
对于不使用配置管理器的用户而言,可以disable掉这个JOB,或者直接将ORACLE_OCM删除,如下:  
  exec dbms_scheduler.disable('ORACLE_OCM.MGMT_CONFIG_JOB')
exec dbms_scheduler.disable('ORACLE_OCM.MGMT_STATS_CONFIG_JOB')
  OR

SQL> drop user ORACLE_OCM cascade;


         版权声明:本文为博主原创文章,未经博主允许不得转载。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-136981-1-1.html 上篇帖子: ORA-12012: error on auto execute of job "ORACLE_OCM 下篇帖子: OCM_Session1_9_Database Backup and Availability
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表