ORA-04063解决方法

1.alert.log check
---------- Tue Feb 23 05:05:46 2010
Errors in file /u01/oracle/admin/chnldb/udump/chnldb1_ora_1376882.trc:
ORA-00600: 錗-^FM-^E镸-^CㄩM-^TM-^Y璇唬鐮M-^A, 錗-^OM-^B鍹-^U? [13011], [3343517], [1069601037], [0], [1069601096], [17], [], []
---------- Tue Feb 23 05:05:50 2010
Errors in file /u01/oracle/admin/chnldb/udump/chnldb1_ora_1556622.trc:
ORA-00600: 錗-^FM-^E镸-^CㄩM-^TM-^Y璇唬鐮M-^A, 錗-^OM-^B鍹-^U? [kdsgrp1], [], [], [], [], [], [], []
---------- Tue Feb 23 09:17:53 2010
Global Enqueue Services Deadlock detected. More info in file
 /u01/oracle/admin/chnldb/bdump/chnldb1_lmd0_603046.trc.
---------- Tue Feb 23 22:00:01 2010
Errors in file /u01/oracle/admin/chnldb/bdump/chnldb1_j000_786544.trc:
ORA-12012: error on auto execute of job 4247977
ORA-04063: ORA-04063: package body "ORACLE_OCM.MGMT_DB_LL_METRICS" has errors
ORA-06508: PL/SQL: could not find program unit being called: "ORACLE_OCM.MGMT_DB_LL_METRICS"
ORA-06512: at line 1
 has errors
---------- Wed Feb 24 05:07:30 2010
Errors in file /u01/oracle/admin/chnldb/udump/chnldb1_ora_1749452.trc:
ORA-00600: 錗-^FM-^E镸-^CㄩM-^TM-^Y璇唬鐮M-^A, 錗-^OM-^B鍹-^U? [13011], [3343517], [1069601037], [0], [1069601096], [3], [], []
---------- Wed Feb 24 08:45:18 2010
Global Enqueue Services Deadlock detected. More info in file
 /u01/oracle/admin/chnldb/bdump/chnldb1_lmd0_603046.trc.


解决方法:
SQL> select username from dba_users;

USERNAME
------------------------------------------------------------
SCOTT
ORACLE_OCM
ANONYMOUS
CTXSYS
MDSYS
OUTLN
ORDPLUGINS
SI_INFORMTN_SCHEMA
OLAPSYS
XDB
ORDSYS

USERNAME
------------------------------------------------------------
WMSYS
DIP
TSMSYS
MDDATA
DMSYS
EXFSYS
SYSTEM
SYS
PATROL
DBADM
COGNOS

USERNAME
------------------------------------------------------------
SYSMAN
DSG
CHANNEL
CHANNELDEV
TRAINAPP
QCOAGT
TRAIN
CHANNELAPP
PERFSTAT
MGMT_VIEW
DBSNMP

33 rows selected.

SQL> desc dba_sys_privs;
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 GRANTEE                                   NOT NULL VARCHAR2(30)
 PRIVILEGE                                 NOT NULL VARCHAR2(40)
 ADMIN_OPTION                                       VARCHAR2(3)
SQL>select privilege from dba_sys_privs where grantee='ORACLE_OCM';

PRIVILEGE
--------------------------------------------------------------------------------
SELECT ANY DICTIONARY

SQL> grant execute on UTL_FILE to oracle_ocm;
SQL> grant execute on DBMS_SCHEDULER to oracle_ocm;
SQL> ALTER PACKAGE ORACLE_OCM.MGMT_DB_LL_METRICS COMPILE;
SQL> ALTER PACKAGE ORACLE_OCM.MGMT_CONFIG COMPILE;

你可能感兴趣的:(oracle技术)