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.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY