This section describes known bugs for Oracle Database Configuration Assistant (DBCA).
When creating a database using the DBCA from the General_Pupose.dbc or Data_Warehouse.dbc templates (or from the Seed Database) using the 12.2.0.1 Production SH in Linux and Solaris platform, the following errors in the database alert log are returned:
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
The database alert log contents are:
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
This issue is happening because of the unavailability of the Stats Advisor Tasks from the created database:
SQL> 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'); 2 3 4
Workaround:
Connect to the created database using the SYSDBA privilege and run the following command:
SQL> 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'); 2 3 4 no rows selected SQL> EXEC dbms_stats.init_package(); PL/SQL procedure successfully completed.
Now there are rows in these queries:
SQL> 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
Once the Stats Advisor Tasks are available in database, the database alert log no longer has:
ORA-06512 FROM ORA$AT_OS_OPT_SY_XXX
Oracle Database Configuration Assistant (DBCA) incorrectly reports a failure with the following error message when you are creating a version earlier than Oracle Database 12c Release 2 (12.2.0.1) of a pluggable database (PDB) in a multitenant container database (CDB):
ORA-65107: Error encountered when processing the current task on instance:1
Workaround:
This error message can be ignored and you may proceed upgrading the PDB.