码迷,mamicode.com
首页 > 其他好文 > 详细

ORA-12012

时间:2021-06-07 20:53:48      阅读:0      评论:0      收藏:0      [点我收藏+]

标签: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

 

ORA-12012

标签:mat   dual   package   complete   ati   format   ora   intern   user   

原文地址:https://www.cnblogs.com/hxlasky/p/14858506.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!