Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> dbms.stats.gather_system_stats jobs

dbms.stats.gather_system_stats jobs

From: Stauffer, Robert G <rstauffer_at_decommunications.com>
Date: Thu, 31 May 2007 09:49:37 -0400
Message-ID: <DBD57944BD147146A3FA5E66983322E4060D980D@CL-EXCHANGE1.dande.com>


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_at_decommunications.com

**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.

--
http://www.freelists.org/webpage/oracle-l
Received on Thu May 31 2007 - 08:49:37 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US