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
Why does a job loose its context?

Why does a job loose its context?

2006-03-02       - By Peter Alteheld

Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Dear list,
 
 we have some PL/SQL procesdures that submit jobs to our 8i database. And we
have a logon trigger that sets an application context like this:
 
 dbms_session.set_context('BENUTZER', 'BENUTZ_ID', v_benutz_id);
 
 While running the job, this context information can be retrieved with SYS
_CONTEXT(). That worked well for years. But lately we sometimes observe that SYS
_CONTEXT() retrieves no data.
 
 We found out, that with prestarting a scheduled job with TOAD's execute
button the context information gets lost too. But we don't do that on
production where we see that sometimes at night.
 
 Does Oracle on its own do something like a rescheduling that is cleaning up
the context of a job?
 
 Greetings, Peter
 
 

   
-- ---- ---- ---- ---- ---- -----
Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!
Jetzt Yahoo! Messenger installieren!
<div>Dear list,</div>  <div>&nbsp;</div>  <div>we have some PL/SQL procesdures
that submit jobs to our 8i database. And we have a logon trigger that sets an
application context like this: </div>  <div><FONT size=2>&nbsp;</div>  <div
>dbms_session</FONT><FONT color=#0000f0 size=2>.</FONT><FONT size=2>set_context<
/FONT><FONT color=#0000f0 size=2>(</FONT><FONT color=#ff0000 size=2>'BENUTZER'<
/FONT><FONT color=#0000f0 size=2>,</FONT><FONT size=2> </FONT><FONT color=
#ff0000 size=2>'BENUTZ_ID'</FONT><FONT color=#0000f0 size=2>,</FONT><FONT size=2
> v_benutz_id</FONT><FONT color=#0000f0 size=2>);</FONT></div>  <div><FONT color
=#0000f0 size=2></FONT>&nbsp;</div>  <div><FONT color=#0000f0 size=2>While
running the job, this context information can be retrieved with SYS_CONTEXT().
That worked well for years. But lately we sometimes observe that SYS_CONTEXT()
retrieves no data. </FONT></div>  <div><FONT color=#0000f0></FONT>&nbsp;</div>
<div><FONT color=#0000f0>We found out, that with pre
starting
a scheduled job with TOAD's execute button the context information gets lost
too. But we don't do that on production where we see that sometimes at night.<
/FONT></div>  <div><FONT color=#0000f0></FONT>&nbsp;</div>  <div><FONT color=
#0000f0>Does Oracle on its own do something like a rescheduling that is cleaning
up the context of a job?</FONT></div>  <div><FONT color=#0000f0></FONT>&nbsp;<
/div>  <div><FONT color=#0000f0>Greetings, Peter</FONT></div>  <div><FONT color=
#0000f0></FONT>&nbsp;</div>  <div><FONT color=#0000f0 size=2>&nbsp;</div></FONT>
<p>
    <hr size=1>Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu
PC!<br>Jetzt <a href=http://de.messenger.yahoo.com>Yahoo! Messenger</a>
installieren!