ORA-13541: system moving window baseline size (691200) greater than retention (604800)

Error:

SQL> exec dbms_workload_repository.modify_snapshot_settings (interval => 30, retention => 10080);
BEGIN dbms_workload_repository.modify_snapshot_settings (interval => 30, retention => 10080); END;
*
ERROR at line 1:
ORA-13541: system moving window baseline size (691200) greater than retention(604800)
ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 215
ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 263
ORA-06512: at line 1

Cause:
Error says window baseline size 691200 seconds = 8 days(60*60*24*8) is greater than retention 604800 seconds= 7 days(60*60*24*7). We need to equal the window baseline and retention.

Solution:
To avoid error, make window baseline and retention equal.
Use calculation of days:
NOTE- 8 Days = 8*24*60 = 11520 minutes
7 DAYS = 7*24*60= 10080 minutes
6 DAYS = 6*24*60 = 8640 minutes

1. Check the Window Size.

SQL> select BASELINE_TYPE,MOVING_WINDOW_SIZE from dba_hist_baseline;
BASELINE_TYPE MOVING_WINDOW_SIZE
------------- ------------------
MOVING_WINDOW 8

2. Change the Window size to equal to retention of 7 days(604800 sec).

SQL> execute dbms_workload_repository.modify_baseline_window_size(window_size=> 7);
PL/SQL procedure successfully completed.

3. Now execute the statement again.

SQL> exec dbms_workload_repository.modify_snapshot_settings (interval => 30, retention => 10080);
PL/SQL procedure successfully completed.

原文地址:http://www.cnblogs.com/lkj371/p/16888702.html

1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长! 2. 分享目的仅供大家学习和交流,请务用于商业用途! 3. 如果你也有好源码或者教程,可以到用户中心发布,分享有积分奖励和额外收入! 4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解! 5. 如有链接无法下载、失效或广告,请联系管理员处理! 6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需! 7. 如遇到加密压缩包,默认解压密码为"gltf",如遇到无法解压的请联系管理员! 8. 因为资源和程序源码均为可复制品,所以不支持任何理由的退款兑现,请斟酌后支付下载 声明:如果标题没有注明"已测试"或者"测试可用"等字样的资源源码均未经过站长测试.特别注意没有标注的源码不保证任何可用性