我们最近将 10g 服务器升级到 11g (11.2.0.3.0),我发现应该通过自动维护任务功能来处理统计信息收集 - 特别是“自动优化器统计信息收集”作业。
但是,自从我们升级(5 天前)以来,我还没有看到任何这些作业在调度程序中运行,并且 OEM 中的自动维护任务界面没有显示已运行的作业。DBA_AUTOTASK_JOB_HISTORY 没有行,我看不到调度程序选项卡或 OEM 中运行的任何统计作业的历史记录,但据我所知,系统配置正确:
SELECT col
, val
FROM ( SELECT *
FROM DBA_AUTOTASK_CLIENT
WHERE CLIENT_NAME = 'auto optimizer stats collection'
)
UNPIVOT ( val
FOR col
IN ( CLIENT_NAME
, STATUS
, CONSUMER_GROUP
, CLIENT_TAG
, PRIORITY_OVERRIDE
, ATTRIBUTES
, WINDOW_GROUP
, SERVICE_NAME
)
);
COL VAL
----------------- ---------------------------------------
CLIENT_NAME auto optimizer stats collection
STATUS ENABLED
CONSUMER_GROUP ORA$AUTOTASK_STATS_GROUP
CLIENT_TAG OS
PRIORITY_OVERRIDE INVALID
ATTRIBUTES ON BY DEFAULT, VOLATILE, SAFE TO KILL
WINDOW_GROUP ORA$AT_WGRP_OS
SQL> select * from DBA_AUTOTASK_WINDOW_CLIENTS;
WINDOW_NAME WINDOW_NEXT_TIME WINDO AUTOTASK OPTIMIZE SEGMENT_ SQL_TUNE HEALTH_M
------------------------------ --------------------------------------------------------------------------- ----- -------- -------- -------- -------- --------
MONDAY_WINDOW 01-NOV-12 10.00.00.000000 AM AMERICA/NEW_YORK FALSE ENABLED ENABLED DISABLED ENABLED DISABLED
TUESDAY_WINDOW 01-NOV-12 10.00.00.000000 AM AMERICA/NEW_YORK FALSE ENABLED ENABLED DISABLED ENABLED DISABLED
WEDNESDAY_WINDOW 01-NOV-12 10.00.00.000000 AM AMERICA/NEW_YORK FALSE ENABLED ENABLED DISABLED ENABLED DISABLED
THURSDAY_WINDOW 01-NOV-12 10.00.00.000000 AM AMERICA/NEW_YORK FALSE ENABLED ENABLED DISABLED ENABLED DISABLED
FRIDAY_WINDOW 01-NOV-12 10.00.00.000000 AM AMERICA/NEW_YORK FALSE ENABLED ENABLED DISABLED ENABLED DISABLED
SATURDAY_WINDOW 01-NOV-12 10.00.00.000000 AM AMERICA/NEW_YORK FALSE ENABLED ENABLED DISABLED ENABLED DISABLED
SUNDAY_WINDOW 01-NOV-12 10.00.00.000000 AM AMERICA/NEW_YORK FALSE ENABLED ENABLED DISABLED ENABLED DISABLED
我错过了什么吗?