标签:mat dual package complete ati format ora intern user
2021-06-06T23:44:38.735686-04:00
Errors in file /u01/oracle/app/diag/rdbms/slnngk/slnngk1/trace/slnngk1_j000_972.trc:
ORA-12012: error on auto execute of job "SYS"."ORA$AT_OS_OPT_SY_1701"
ORA-20001: Statistics Advisor: Invalid task name for the current user
ORA-06512: at "SYS.DBMS_STATS", line 49538
ORA-06512: at "SYS.DBMS_STATS_ADVISOR", line 881
ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 21631
ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 23763
ORA-06512: at "SYS.DBMS_STATS", line 49526
2021-06-06T23:49:31.522534-04:00
解决办法:
SQL> EXEC dbms_stats.init_package(); PL/SQL procedure successfully completed. SQL> column name format A35 SQL> set linesize 120 SQL> SQL> select name, ctime, how_created 2 from sys.wri$_adv_tasks 3 where owner_name = ‘SYS‘ 4 and name in (‘AUTO_STATS_ADVISOR_TASK‘,‘INDIVIDUAL_STATS_ADVISOR_TASK‘); NAME CTIME ----------------------------------- ------------------- HOW_CREATED ------------------------------------------------------------------------------------------ AUTO_STATS_ADVISOR_TASK 2021-05-03 13:29:01 CMD INDIVIDUAL_STATS_ADVISOR_TASK 2021-05-03 13:29:01 CMD
标签:mat dual package complete ati format ora intern user
原文地址:https://www.cnblogs.com/hxlasky/p/14858506.html