In this Document
| Purpose |
| Scope |
| Details |
| Introduction |
| Implementation |
| Summary of changes between 10g and 11g : |
| Related views : |
| References |
APPLIES TO:
Oracle Database Cloud Schema Service - Version N/A and later Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later Oracle Cloud Infrastructure - Database Service - Version N/A and later Oracle Database Backup Service - Version N/A and later Oracle Database Exadata Express Cloud Service - Version N/A and later Information in this document applies to any platform. Oracle Server Enterprise Edition - Version: 11.1.0.6
PURPOSE
This bulletin provides information about the Automated Maintenance Tasks or AUTOTASK jobs which are a new setup in 11g for certain System generated maintenance jobs. It identifies some key differences between 10g and 11g related to the Maintenance Tasks Maintenance Windows.
SCOPE
This is relevant for Oracle 10g, 11g, 12c and intended for Oracle DBAs and support analysts.
DETAILS
Introduction
Oracle 11g Database has three predefined automated maintenance tasks: â Automatic Optimizer Statistics Collection
Collects optimizer statistics for all schema objects in the database for which there are no statistics or only stale statistics. The statistics gathered by this task are used by the SQL query optimizer to improve the performance of SQL execution.
â Automatic Segment Advisor
Identifies segments that have space available for reclamation, and makes recommendations on how to defragment those segments. You can also run the Segment Advisor manually to obtain more up-to-the-minute recommendations or to obtain recommendations on segments that the Automatic Segment Advisor did not examine for possible space reclamation.
â Automatic SQL Tuning Advisor
Examines the performance of high-load SQL statements, and makes recommendations on how to tune those statements. You can configure this advisor to automatically implement SQL profile recommendations.
Note 755838.1 - New 11g Default Jobs
Implementation
In Oracle10g they were created as separate jobs and visible in DBA_SCHEDULER_JOBS.JOB_NAME.
This has changed in Oracle 11g. The related view is DBA_AUTOTASK_WINDOW_CLIENTS. The jobs are now only visible in DBA_SCHEDULER_JOBS with their system generated name once they are really executed. SQL> desc DBA_AUTOTASK_WINDOW_CLIENTS Name Null? Type ----------------------------------------- -------- ---------------------------- WINDOW_NAME NOT NULL VARCHAR2(30) WINDOW_NEXT_TIME TIMESTAMP(6) WITH TIME ZONE WINDOW_ACTIVE VARCHAR2(5) AUTOTASK_STATUS VARCHAR2(8) OPTIMIZER_STATS VARCHAR2(8) SEGMENT_ADVISOR VARCHAR2(8) SQL_TUNE_ADVISOR VARCHAR2(8) HEALTH_MONITOR VARCHAR2(8) select * from DBA_AUTOTASK_WINDOW_CLIENTS; WINDOW_NAME ------------------------------ WINDOW_NEXT_TIME --------------------------------------------------------------------------- WINDO AUTOTASK OPTIMIZE SEGMENT_ SQL_TUNE HEALTH_M ----- -------- -------- -------- -------- -------- MONDAY_WINDOW 08-DEC-08 10.00.00.000000 PM EUROPE/VIENNA FALSE ENABLED ENABLED ENABLED ENABLED DISABLED ... SUNDAY_WINDOW 07-DEC-08 06.00.00.000000 AM EUROPE/VIENNA FALSE ENABLED ENABLED ENABLED ENABLED DISABLED 7 rows selected.
To enable or disable ALL automated maintenance tasks for all windows, call the ENABLE or DISABLE procedure with no arguments.
To disable a specific maintenance task, use the DISABLE procedure, as follows:
To enable this specific maintenance task again, use the ENABLE procedure, as follows:
The task names to use for the client_name argument are listed in the DBA_AUTOTASK_CLIENT database dictionary view.
auto optimizer stats collection auto space advisor sql tuning advisor
Another difference is the predefined Scheduler Windows :
Oracle10g : WEEKNIGHT_WINDOW and WEEKEND_WINDOW Oracle11g : MONDAY_WINDOW .... SUNDAY_WINDOW.The WEEKNIGHT_WINDOW and WEEKEND_WINDOW are still there for backwards compatibility.
The duration times when the windows are open have changed in 11g. The Monday-Friday are from 10:00PM till 02:00AM and Saturday-Sunday are from 06:00AM till 02:00AM.
DBMS_SCHEDULER.SET_ATTRIBUTEprocedure.
WEEKNIGHT_WINDOWto midnight to 8 a.m. every weekday morning (duration of the window is unchanged at 8 hours):
Summary of changes between 10g and 11g :
| Subject | 10g | 11g |
|---|---|---|
| Jobs | Separate jobs in DBA_SCHEDULER_JOBS | AUTOTASKS has a naming prefix 'ORA$AT' and are only visible as a job once executed |
| Maintenance Window | 2 windows, WEEKNIGHT and WEEKEND | Each day has its own window |
| Resource manager | Not enabled per default | Pre-defined Resource Plan for every weekday window |
Related views :
DBA_AUTOTASK_CLIENT DBA_AUTOTASK_CLIENT_HISTORY DBA_AUTOTASK_CLIENT_JOB DBA_AUTOTASK_JOB_HISTORY DBA_AUTOTASK_OPERATION DBA_AUTOTASK_SCHEDULE DBA_AUTOTASK_TASK DBA_AUTOTASK_WINDOW_CLIENTS DBA_AUTOTASK_WINDOW_HISTORY
Refer to the document Doc ID 1300313.1 for details on how to create a a specific Maintenance Window to allow a particular task to run in a user window instead of one of the default Maintenance Windows.
REFERENCES
NOTE:755838.1 - New 11g Default Jobs NOTE:2092353.1 - How to Limit CPU Allocation for Auto Maintenance Tasks NOTE:2096673.1 - IF: Default Maintenance Jobs in 10g Databases NOTE:858852.1 - DBA_AUTOTASK_TASK and DBA_AUTOTASK_CLIENT Shows Different Status For Auto Optimizer Stats Collection NOTE:466920.1 - Health Monitor
编辑推荐:
相关推荐
-
雷神推出 MIX PRO II 迷你主机:基于 Ultra 200H,玻璃上盖 + ARGB 灯效
2 月 9 日消息,雷神 (THUNDEROBOT) 现已宣布推出基于英
-
制造商 Musnap 推出彩色墨水屏电纸书 Ocean C:支持手写笔、第三方安卓应用
2 月 10 日消息,制造商 Musnap 现已在海外推出一款 Oce
热文推荐
- 19c PDB异常关闭处理与预防
19c PDB异常关闭处理与预防
26-03-03 - 【PARAMETER】Oracle参数:MAX_IDLE_BLOCKER_TIME 解释
- 【数据库数据恢复】ASM磁盘组掉线的Oracle数据库数据恢复案例
【数据库数据恢复】ASM磁盘组掉线的Oracle数据库数据恢复案例
26-03-03 - Oracle数据库初学者入门教程
Oracle数据库初学者入门教程
26-03-03 - 数据库系统知识总结(一):数据库系统基础知识
数据库系统知识总结(一):数据库系统基础知识
26-03-03 - [20220428]优化的困惑12.txt
[20220428]优化的困惑12.txt
26-03-03 - 福禄克网络电缆测试仪测试Cat 8电缆系统
福禄克网络电缆测试仪测试Cat 8电缆系统
26-03-03 - 虚拟化运维:规划和发展战略性 IT 计划
虚拟化运维:规划和发展战略性 IT 计划
26-03-03 - 如何防范信息系统灾难风险?甲骨文邀你探寻打造业务连续性的秘诀
如何防范信息系统灾难风险?甲骨文邀你探寻打造业务连续性的秘诀
26-03-03 - 虚拟化运维IT运营负责怎么样保持正常运转
虚拟化运维IT运营负责怎么样保持正常运转
26-03-03
