SQL> select t.owner,t.job_name,t.last_start_date,t.last_run_duration,t.next_run_date,t.comments
2 from dba_scheduler_jobs t where t.comments like \'%statistics collection%\'
3 ;
------------------------------ ------------------------------ -------------------------------------------------------------------------------- --------------------------------------- -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
SYS GATHER_STATS_JOB 17-OCT-07 10.00.03.137638 PM +08:00 +000000000 00:02:17.909439 Oracle defined automatic optimizer statistics collection job
db158:/home/oracle>$sqlplus "/ as sysdba"
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> exec dbms_scheduler.enable(\'SYS.GATHER_STATS_JOB\') ;