其他分享
首页 > 其他分享> > ORA-12012, ORA-20001 and ORA-6512 err from ora$at_os_opt_sy_xxx

ORA-12012, ORA-20001 and ORA-6512 err from ora$at_os_opt_sy_xxx

作者:互联网



Document Display

Give Feedback...

Search: ORA-20001:sTATISTIC aDVISOR


Restore Pane

Copyright (c) 2022, Oracle. All rights reserved. Oracle Confidential.


Click to add to Favorites Bug 27983174 - ORA-12012, ORA-20001 and ORA-6512 err from ora$at_os_opt_sy_xxx (Doc ID 27983174.8) To BottomTo Bottom


Bug 27983174 ORA-12012, ORA-20001 and ORA-6512 err from ora$at_os_opt_sy_xxx
This note gives a brief overview of bug 27983174.
The content was last updated on: 08-MAR-2022
Click here for details of each of the sections below.
Affects:
Product (Component) Oracle Server (Rdbms)
Range of versions believed to be affected Versions BELOW 19.1
Versions confirmed as being affected
18.3.0
12.2.0.1 (Base Release)
Platforms affected Generic (all / most platforms affected)
Fixed:
The fix for 27983174 is first included in
19.1.0
Database Release Update (DB RU) 18.5.0.0.190115 (Jan 2019)
12.2.0.1.191015 (Oct 2019) Database Release Update (DB RU)
12.2.0.1.190716 (Jul 2019) Bundle Patch for Windows Platforms

Interim patches may be available for earlier versions - click here to check.
Symptoms:
Related To:
ORA-20001
DBMS_STATS
Description
Statistics Advisor was using default expiration date of 30 days and was getting dropped.
After this fix, DAYS_TO_EXPIRE will be set to UNLIMITED so that task will not be dropped,
and EXECUTION_DAYS_TO_EXPIRE will be set to 30, so that
executions older than 30 days will be purged.

Rediscovery Notes
If you see the following errors in alert log, you may be hitting this bug
ORA-12012: error on auto execute of job "SYS"."ORA$AT_OS_OPT_SY_1"
ORA-20001: Statistics Advisor: Invalid task name for the current user

Workaround

Execute the following statements as SYSDBA.
EXEC dbms_stats.init_package()
EXEC dbms_stats.set_advisor_task_parameter('AUTO_STATS_ADVISOR_TASK', 'DAYS_TO_EXPIRE', 'UNLIMITED');
EXEC dbms_stats.set_advisor_task_parameter('AUTO_STATS_ADVISOR_TASK', 'EXECUTION_DAYS_TO_EXPIRE', 30);
EXEC dbms_stats.set_advisor_task_parameter('INDIVIDUAL_STATS_ADVISOR_TASK','DAYS_TO_EXPIRE', 'UNLIMITED');
EXEC dbms_stats.set_advisor_task_parameter('INDIVIDUAL_STATS_ADVISOR_TASK','EXECUTION_DAYS_TO_EXPIRE', 30);
.
Note that the above statements may raise an error if system is already
executing these tasks. If you get an error while executing the statement,
please retry it after some time.

标签:opt,sy,task,set,dbms,DAYS,EXPIRE,ORA
来源: https://www.cnblogs.com/muzisanshi/p/16293077.html