ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

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

2022-05-20 17:35:13  阅读:231  来源: 互联网

标签:opt sy task set dbms DAYS EXPIRE ORA




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

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有