重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2700|回复: 0
打印 上一主题 下一主题

[参考文档] Scheduled Maintenance Auto Tasks Not Working After 11.2.0.3 Upgrade (文档 ID ...

[复制链接]
跳转到指定楼层
楼主
发表于 2017-4-21 12:56:34 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
In this Document

Symptoms
Cause
Solution


Applies to:
Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.
Symptoms
Auto Tasks not working after upgrade to 11.2.0.3.
Cause
As per output of the following:

SQL> column next_start_date format a36
SQL> column comments format a38
SQL> select window_group_name, enabled, number_of_windows, next_start_date, comments from dba_scheduler_window_groups;
WINDOW_GROUP_NAME              ENABL NUMBER_OF_WINDOWS
------------------------------ ----- -----------------
NEXT_START_DATE                      COMMENTS
------------------------------------ --------------------------------------
MAINTENANCE_WINDOW_GROUP       TRUE                  7
03-APR-12 10.00.00.000000 PM CST6CDT Window group for Automated Maintenance
ORA$AT_WGRP_OS                 TRUE                  7
03-APR-12 10.00.00.000000 PM CST6CDT auto optimizer stats collection
ORA$AT_WGRP_SA                 TRUE                  7
03-APR-12 10.00.00.000000 PM CST6CDT auto space advisor
ORA$AT_WGRP_SQ                 TRUE                  7
03-APR-12 10.00.00.000000 PM CST6CDT sql tuning advisor

The problem seems to be due to the MAINTENANCE_WINDOW_GROUP being set to start in the past.
  
Solution
Please drop the maintenance window and recreate it:
Login as SYSDBA
@?/rdbms/admin/catnomwn.sql -- this drops the maintenance window, it will give some errors that can be ignored.
-- Drop the windows manually:
execute dbms_scheduler.drop_window('MONDAY_WINDOW');
execute dbms_scheduler.drop_window('TUESDAY_WINDOW');
execute dbms_scheduler.drop_window('WEDNESDAY_WINDOW');
execute dbms_scheduler.drop_window('THURSDAY_WINDOW');
execute dbms_scheduler.drop_window('FRIDAY_WINDOW');
execute dbms_scheduler.drop_window('SATURDAY_WINDOW');
execute dbms_scheduler.drop_window('SUNDAY_WINDOW');
@?/rdbms/admin/catmwin.sql -- this recreates it

After that check if the Auto tasks run as expected.

Another solution is to close the active windows and then reset the START_DATE for a date in the future
To close the window you can use EXECUTE DBMS_SCHEDULER.CLOSE_WINDOW procedure
To reset the START_DATE you can use the EXECUTE DBMS_SCHEDULER.SET_ATTRIBUTE procedure.

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-24 19:50 , Processed in 0.088186 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表