.ora-code.com

Links
Home
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
what perms ami missing

what perms ami missing

2005-12-16       - By Fuad Arshad

 i'm tryingto setup  a job to gather schema stats for a schema.
 it runs perfectly when i run this thru sqlplus /
 the user running this has dba,analyze any  and select catalog role
 but whn i put this in dbms_jobs .this is what i get . the database is 9.2.0.7
 
 -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
 --41
 DECLARE
 X NUMBER;
BEGIN
 SYS.DBMS_JOB.SUBMIT
 ( job       => X
  ,what      => 'BEGIN
 SYS.DBMS_STATS.GATHER_SCHEMA_STATS (
    OwnName           => ''schemaname''
   ,Granularity       => ''PARTITION''
   ,Options           => ''GATHER AUTO''
   ,Gather_Temp       => FALSE
   ,DEGREE            => 4
   ,CASCADE           => TRUE
   ,No_Invalidate     => TRUE);
END;
 
'
  ,next_date => to_date('01/01/4000 00:00:00','dd/mm/yyyy hh24:mi:ss')
  ,interval  => 'SYSDATE+30/1440 '
  ,no_parse  => FALSE
 );
END;
/
 -- ---- ---- ---- ------
 ORA-12012 (See ORA-12012.ora-code.com): error on auto execute of job 41
ORA-01031 (See ORA-01031.ora-code.com): insufficient privileges
ORA-06512 (See ORA-06512.ora-code.com): at "SYS.DBMS_STATS", line 10301
ORA-06512 (See ORA-06512.ora-code.com): at "SYS.DBMS_STATS", line 10784
ORA-06512 (See ORA-06512.ora-code.com): at "SYS.DBMS_STATS", line 10949
ORA-06512 (See ORA-06512.ora-code.com): at "SYS.DBMS_STATS", line 11036
ORA-06512 (See ORA-06512.ora-code.com): at "SYS.DBMS_STATS", line 11013
ORA-06512 (See ORA-06512.ora-code.com): at line 2

 the user running this has dba,analyze any  and select catalog role
 
 
Any ideas

<DIV id=RTEContent><FONT color=#0000f0 size=2>  <div>i'm tryingto setup&nbsp; a
job to gather schema stats for a schema.</div>  <div>it runs perfectly when i
run this thru sqlplus /</div>  <div>the user running this has dba,analyze any
&nbsp; and select catalog role </div>  <div>but whn i put this in dbms_jobs
.this is what i get . the database is 9.2.0.7</div>  <div>&nbsp;</div>  <div>---
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----</div>  <div>--41 </div>  
<div>DECLARE<BR>&nbsp; X NUMBER;<BR>BEGIN<BR>&nbsp; SYS.DBMS_JOB.SUBMIT<BR>&nbsp
; ( job&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; X <BR>&nbsp;&nbsp; ,what&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp; =&gt; 'BEGIN<BR>&nbsp; SYS.DBMS_STATS.GATHER_SCHEMA
_STATS (<BR>&nbsp;&nbsp;&nbsp;&nbsp; OwnName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp; =&gt; ''schemaname''<BR>&nbsp;&nbsp;&nbsp; ,Granularity
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; ''PARTITION''<BR>&nbsp;&nbsp;&nbsp;
,Options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; '
'GATHER AUTO''<BR>&nbsp;&nbsp;&nbsp; ,Gather_Temp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; =&gt; FALSE<BR>&nbsp;&nbsp;&nbsp; ,DEGREE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; 4<BR>&nbsp;&nbsp;&nbsp; ,CASCADE&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; TRUE<BR>&nbsp;
&nbsp;&nbsp; ,No_Invalidate&nbsp;&nbsp;&nbsp;&nbsp; =&gt; TRUE);<BR>END;</div>  
<div><BR>'<BR>&nbsp;&nbsp; ,next_date =&gt; to_date('01/01/4000 00:00:00','dd/mm
/yyyy hh24:mi:ss')<BR>&nbsp;&nbsp; ,interval&nbsp; =&gt; 'SYSDATE+30/1440 '<BR>
&nbsp;&nbsp; ,no_parse&nbsp; =&gt; FALSE<BR>&nbsp; );<BR>END;<BR>/</div>  <div>-
-- ---- ---- ---- -----</div>  <div>ORA-12012 (See ORA-12012.ora-code.com): error on auto execute of job 41
<BR>ORA-01031 (See ORA-01031.ora-code.com): insufficient privileges<BR>ORA-06512 (See ORA-06512.ora-code.com): at "SYS.DBMS_STATS", line
10301<BR>ORA-06512 (See ORA-06512.ora-code.com): at "SYS.DBMS_STATS", line 10784<BR>ORA-06512 (See ORA-06512.ora-code.com): at "SYS.DBMS
_STATS", line 10949<BR>ORA-06512 (See ORA-06512.ora-code.com): at "SYS.DBMS
_STATS",
line 11036<BR>ORA-06512 (See ORA-06512.ora-code.com): at "SYS.DBMS_STATS", line 11013<BR>ORA-06512 (See ORA-06512.ora-code.com): at line
2<BR></div>  <div>the user running this has dba,analyze any&nbsp; and select
catalog role </div>  <div>&nbsp;</div>  <div>&nbsp;</div></FONT><FONT size=2
>Any ideas </FONT></DIV>