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;