Home
All Oracle Error Codes
Oracle DBA Forum

Frequent Oracle Errors

TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated

dbms.stats.gather_system_stats jobs

Robert Stauffer

2007-05-31

Replies:
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@(protected)


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