Monday, May 9, 2011
Default STATS Collection in 11g
- The GATHER_STATS_JOB Oracle’s default stats collection job does not exist in
11g (the name does not exist) as it was there in 10g. Instead it has been
included in Automatic Maintenance Tasks
- How to check, Oracle’s default stats collection job is enable or disabled
SQL> select CLIENT_NAME,status from DBA_AUTOTASK_CLIENT;
CLIENT_NAME STATUS
---------------------------------------------------------------- --------
auto optimizer stats collection DISABLED
auto space advisor ENABLED
sql tuning advisor ENABLED
- How to disable if it is enabled (run below query to disable it). Below PL/SQL block has to be executed by SYS
BEGIN
DBMS_AUTO_TASK_ADMIN.DISABLE(
client_name => 'auto optimizer stats collection',
operation => NULL,
window_name => NULL);
END;
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment