【Oracle】ORA-12012
資料庫版本:11.2.0.3.0
作業系統:AIX 7.1 Oracle Linux 6
報錯資訊:
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
TRACE 日誌:
*** 2018-02-26 22:00:05.708
*** SESSION ID:(1688.36241) 2018-02-26 22:00:05.708
*** CLIENT ID:() 2018-02-26 22:00:05.708
*** SERVICE NAME:(SYS$USERS) 2018-02-26 22:00:05.708
*** MODULE NAME:(DBMS_SCHEDULER) 2018-02-26 22:00:05.708
*** ACTION NAME:(MGMT_CONFIG_JOB_2_1) 2018-02-26 22:00:05.708
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
SQL> set lin 130
SQL> col owner for a10
SQL> col DIRECTORY_NAME for a25
SQL> col DIRECTORY_PATH for a50
SQL> select * from dba_directories where directory_name like '%OCM_CONFIG%';
OWNER DIRECTORY_NAME DIRECTORY_PATH
---------- ------------------------------ ------------------------------------------------------------
SYS ORACLE_OCM_CONFIG_DIR /u01/app/oracle/product/11.2.0/ccr/state
SQL> select job_name,job_type,job_action,enabled,state from dba_scheduler_jobs where owner='ORACLE_OCM';
JOB_NAME JOB_TYPE JOB_ACTION ENABL STATE
------------------------------ ---------------- ------------------------------------------------------------ ----- ---------------
MGMT_CONFIG_JOB STORED_PROCEDURE ORACLE_OCM.MGMT_CONFIG.collect_config
TRUE SCHEDULED
MGMT_STATS_CONFIG_JOB STORED_PROCEDURE ORACLE_OCM.MGMT_CONFIG.collect_stats TRUE SCHEDULED
首先檢視OCM是否正確的配置過:
$ORACLE_HOME/ccr/bin/deployPackages -l
如果返回'proceed to STEP 2'的內容,則說明並沒有配置過,可以執行以下2個指令碼,重新建立OCM相關的directory目錄並賦予許可權:
SQL> @ORACLE_HOME/ccr/admin/scripts/ocmjb10.sql
SQL> @ORACLE_HOME/ccr/admin/scripts/execute execocm.sql
這個問題通常發生在新安裝或升級到11.2.0.3的Oracle資料庫上,由於OCM是一個獨立工具,僅用於向MOS上傳蒐集資訊,即使刪除它不會對資料庫造成影響,可以透過以下命令,刪除OCM使用者及相應的目錄:
方法一:刪除使用者及目錄
SQL> drop user ORACLE_OCM cascade;
SQL> drop directory ORACLE_OCM_CONFIG_DIR;
方法二:或者不刪除使用者,只禁用該job:
exec dbms_scheduler.disable('ORACLE_OCM.MGMT_CONFIG_JOB')
exec dbms_scheduler.disable('ORACLE_OCM.MGMT_STATS_CONFIG_JOB')
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30327022/viewspace-2151335/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-12012: error on auto execute of job "ORACLE_OCMErrorOracle
- Oracle 18.3 ORA-12012 ORA-20001Oracle
- Oracle 11.2.0.3 ORA-12012 ORA-29280 ORA-06512Oracle
- "ORA-12012:error on auto execute of job ORACLE_OCM.ORA-29280"_1453959.1ErrorOracle
- ORA-12012 job解決
- Oracle 11.2.0.3 RAC環境--ORA-12012 ,ORA-2928 錯誤處理Oracle
- Oracle 11g報錯"ORA-12012: error on job ORACLE_OCM.MGMT_CONFIG_JOB_2_1"OracleError
- ORA-12012: error on auto execute of job "ORACLE_OCM"."MGMT_CONFIG_JOB_2_1"ErrorOracle
- ORA-12012: error on auto execute of job "ORACLE_OCM"."MGMT_CONFIG_JOB_2_2"ErrorOracle
- ORA-12012: error on auto execute of job 8913Error
- ORA-12012: error on auto execute of job 388947Error
- Oracle 12.2 報錯:ORA-12012: error on auto execute of job “SYS”.”ORA$AT_OS_OPT_SY_7458″OracleError
- oracle 11.2.0.3 rac 資料庫報ora-12012 ora-29280 ora-06512Oracle資料庫
- Oracle 11.2.0.3 ORA-12012 ORA-29280 ORA-06512 錯誤 解決方法Oracle
- 【轉】Oracle 11.2.0.3 ORA-12012 ORA-29280 ORA-06512 錯誤解決方法Oracle
- ora-12012 ora-04063 報錯處理
- ORA-12012: error on auto execute of job "SYS"."ORA$AT_SA_SPC_SY_%"Error
- 自動任務出錯 ORA-12012 ORA-04063
- ORA-12012、ORA-20000錯誤解決過程
- [重慶思莊每日技術分享]-12.2 Auto Space Advisor Job Fails ORA-12012,ORA-00060AI
- [重慶思莊每日技術分享]-ORA-12012: 自動執行作業 "SYS"."ORA$AT_OS_OPT_SY_21" 出錯
- oracle DBLink oracleOracle
- Oracle 中$ORACLE_HOME/bin/oracle檔案Oracle
- oracle 修改ORACLE例項Oracle
- oracle安裝工具目錄常用解釋oracle wallet manager/Oracle Directory Manager /oracle net manager /Oracle Net ManagOracle
- ORACLE基礎之oracle鎖(oracle lock mode)詳解Oracle
- 【Oracle】oracle tablespace&datafile -- oracle表空間 分享[轉]Oracle
- cx_Oracle 連線 OracleOracle
- [Oracle]Oracle良性SQL建議OracleSQL
- oracle之 Oracle LOB 詳解Oracle
- [oracle]centos 7 安裝oracleOracleCentOS
- Oracle工具(Oracle Tools) – SQLT(SQLTXPLAIN)OracleSQLAI
- oracle clone oracle_home 方法Oracle
- oracle 817 archive err,oracle hangOracleHive
- 【Oracle】修改oracle監聽埠Oracle
- 【Oracle】Oracle常用EVENT之三Oracle
- 【Oracle】Oracle常用EVENT之二Oracle
- 【Oracle】Oracle常用EVENT之一Oracle