RE: dbms.stats.gather_system_stats jobs

  • From: "Wittenmyer Joel - CO" <WITTENMYERJ@xxxxxxxx>
  • To: <rstauffer@xxxxxxxxxxxxxxxxxxxx>, <oracle-l@xxxxxxxxxxxxx>
  • Date: Thu, 31 May 2007 09:39:12 -0500

I'm not sure about the 'flush cache' but I'm willing to bet that the
'AUTO STOP' enables the 'stop on window close' functionality of the
Scheduler.

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Stauffer, Robert G
Sent: Thursday, May 31, 2007 7:50 AM
To: oracle-l@xxxxxxxxxxxxx
Subject: dbms.stats.gather_system_stats jobs

Hi all,

10.1.0.4 EE, AIX 5.2, Oracle EBS 11.5.10.2

We were successfully running a job weekly from a cron script that
gathers system stats in the db as SYSTEM:

DBMS_STATS.GATHER_SYSTEM_STATS(gathering_mode=>'INTERVAL',interval=>120)
;

For auditing and SOX purposes, this week we started running it as
another user (DESYSADMIN_BATCH) with the DBA.  The job is failing with
'ORA-20000: Unable to gather system statistics : insufficient
privileges' and retrying.  That's not a problem.  I can fix that using
the info Metalink note 361776.1.

But my questions are: why are there 2 jobs in dba_jobs, and what are
these odd gathering_modes ("AUTO_STOP" and "flush_cache") that aren't in
the documentation?  Metalink and Google weren't my friend on this one.

select * from dba_jobs;

JOB|LOG_USER|PRIV_USER|SCHEMA_USER|LAST_DATE|LAST_SEC|THIS_DATE|THIS_SEC
|NEXT_DATE|NEXT_SEC|TOTAL_TIME|BROKEN|INTERVAL|FAILURES|WHAT|NLS_ENV|MIS
C_ENV|INSTANCE

686|DESYSADMIN_BATCH|DESYSADMIN_BATCH|DESYSADMIN_BATCH|||||05/31/2007
21:07:01|21:07:01|4|N|null|10|dbms_stats.gather_system_stats(gathering_m
ode => 'AUTO_STOP', statown =>
'DESYSADMIN_BATCH');|NLS_LANGUAGE='AMERICAN' NLS_TERRITORY='AMERICA'
NLS_CURRENCY='$' NLS_ISO_CURRENCY='AMERICA' NLS_NUMERIC_CHARACTERS='.,'
NLS_DATE_FORMAT='DD-MON-RR' NLS_DATE_LANGUAGE='AMERICAN'
NLS_SORT='BINARY'|0102000200000000|0

687|DESYSADMIN_BATCH|DESYSADMIN_BATCH|DESYSADMIN_BATCH|05/31/2007
09:14:40|09:14:40|||05/31/2007 09:24:40|09:24:40|141|N|SYSDATE +
10/24/60|0|dbms_stats.gather_system_stats(gathering_mode=>'flush_cache')
;|NLS_LANGUAGE='AMERICAN' NLS_TERRITORY='AMERICA' NLS_CURRENCY='$'
NLS_ISO_CURRENCY='AMERICA' NLS_NUMERIC_CHARACTERS='.,'
NLS_DATE_FORMAT='DD-MON-RR' NLS_DATE_LANGUAGE='AMERICAN'
NLS_SORT='BINARY'|0102000200000000|0

Thanks for any insight you can give me.


Bob Stauffer
DBA
D&E Communications
Ephrata, PA, USA
717-738-8737
rstauffer@xxxxxxxxxxxxxxxxxxxx


**DISCLAIMER
This e-mail message and any files transmitted with it are intended for
the use of the individual or entity to which they are addressed and may
contain information that is privileged, proprietary and confidential. If
you are not the intended recipient, you may not use, copy or disclose to
anyone the message or any information contained in the message. If you
have received this communication in error, please notify the sender and
delete this e-mail message. The contents do not represent the opinion of
D&E except to the extent that it relates to their official business.

--
//www.freelists.org/webpage/oracle-l


--
//www.freelists.org/webpage/oracle-l


Other related posts: