1. 程式人生 > >BSLN_MAINTAIN_STATS_JOB Job Failed With ORA-04063

BSLN_MAINTAIN_STATS_JOB Job Failed With ORA-04063

compile not in dbms cts 自動 not find bject cut lte

Oracle 12c 統計信息自動收集JOB-(BSLN_MAINTAIN_STATS_JOB)

報錯信息

ORA-04063: package body "DBSNMP.BSLN_INTERNAL" has errors

ORA-06508: PL/SQL: could not find program unit being called: "DBSNMP.BSLN_INTERNAL"

ORA-06512: at line 1

原因

Objects BSLN_INTERNAL is not in valid state

解決方法

sqlplus / as sysdba

SQL> alter package DBSNMP.BSLN_INTERNAL compile body ;

SQL> GRANT EXECUTE ON sys.dbms_job to DBSNMP;

BSLN_MAINTAIN_STATS_JOB Job Failed With ORA-04063