Show pageOld revisionsBacklinksODT exportBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. =====Overview===== When you isntall Oracle 12c with General purpose of Data warehouse template, you might incounter the following error: <sxh bash> ORA-12012 , ORA-20001 AND ORA-06512 FROM ORA$AT_OS_OPT_SY_XXX Platforms : Linux 12.2.0.1 Production SH Solaris 12.2.0.1 Production SH </sxh> =====Error===== The error which you will encoutner later is the following: <sxh bash> Errors in file /u01/app/oracle/diag/rdbms/orcl/ORCL1/trace/ORCL1_j000_73185.trc: ORA-12012: error on auto execute of job "SYS"."ORA$AT_OS_OPT_SY_936" ORA-20001: Statistics Advisor: Invalid task name for the current user ORA-06512: at "SYS.DBMS_STATS", line 47207 ORA-06512: at "SYS.DBMS_STATS_ADVISOR", line 882 ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 20059 ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 22201 ORA-06512: at "SYS.DBMS_STATS", line 47197 2017-03-13T00:47:21.394481+00:00 </sxh> =====Fix===== In order to fix that or to workaround it, you have to initilize the package, which doesnt't exist: <sxh bash> select name, ctime, how_created from sys.wri$_adv_tasks where owner_name = 'SYS' and name in ('AUTO_STATS_ADVISOR_TASK','INDIVIDUAL_STATS_ADVISOR_TASK'); no rows </sxh> Once we initialize it, the error will stop appearing: <sxh bash> EXEC dbms_stats.init_package(); select name, ctime, how_created from sys.wri$_adv_tasks where owner_name = 'SYS' and name in ('AUTO_STATS_ADVISOR_TASK','INDIVIDUAL_STATS_ADVISOR_TASK'); NAME ------------------------------------------------------------------------------ -- CTIME HOW_CREATED --------- ------------------------------ AUTO_STATS_ADVISOR_TASK 13-MAR-17 CMD INDIVIDUAL_STATS_ADVISOR_TASK 13-MAR-17 CMD </sxh> oracle_bugs_statistic_advisor.txt Last modified: 2019/10/18 20:04by 127.0.0.1