How to Benefit from Automatic Maintenance Tasks in 11g?

ID 743507.1

In this Document
  Goal
  Solution
  References


This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.

Applies to:

Oracle Server - Standard Edition - Version: 11.1.0.6 to 11.2.0.3 - Release: 11.1 to 11.2
Oracle Server - Enterprise Edition - Version: 11.1.0.6 to 11.2.0.3   [Release: 11.1 to 11.2]
Oracle Server - Personal Edition - Version: 11.1.0.6 to 11.2.0.3   [Release: 11.1 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 20-Oct-2011***

Goal

Question: Why Has the GATHER_STATS_JOB been removed in 11g?

Solution

Answer:

Oracle Database 10g introduced the concept automated maintenance task execution during maintenance windows implemented via a WEEKNIGHT_WINDOW and WEEKEND_WINDOW schedule. This included statistics collection by means of the GATHER_STATS_JOB. 

In Oracle Database 11g, the WEEKNIGHT_WINDOW and WEEKEND_WINDOW schedules (defined in Oracle Database 10g) are replaced with daily maintenance windows (such as  SUNDAY_WINDOW, MONDAY_WINDOW etc). These were replaced in order to add increased flexibility and manageability. One can query dba_scheduler_windows to check the window definitions. 

Automatic Maintenance Tasks (including the automated Optimizer Statistics Gathering task) are defined to execute within these daily windows. Using Enterprise Manager is the preferred way to control Automatic Maintenance Tasks, although the DBMS_AUTO_TASK_ADMIN package can also be used.

'Automatic Maintenance Tasks Management ' is an 11g new feature and was implemented to increase the  flexibility of statistics collection and to avoid potential resourcing issue when maintenance jobs run  alongside user operations.  Maintenance operations can potentially use a lot of resource which may, in extreme cases, affect other jobs. To address this, in 11g, maintenance operations are closely linked to resource manager to manage the resources that are used and share them more efficiently.

 From the 

Oracle Database New Features Guide
11g Release 1 (11.1)
Part Number B28279-03

"This feature ensures that work during maintenance operations is not affected and that user activity gets the necessary resources to complete."

By spreading the workload over multiple weeknights and managing the resource usage, this feature provides the flexibility to allow maintenance jobs to complete in a timely fashion and for user operations to be unaffected.

Users are still completely free to define other maintenance windows and change start times and durations for the daily maintenance windows. 

References

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/38267/viewspace-730759/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/38267/viewspace-730759/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值