.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
dbms_job failed to execute

dbms_job failed to execute

2005-10-27       - By Marquez, Chris
Reply:     <<     11     12     13     14     15     16     17     18     19     20     >>  

Magnus,

>> On 10/27/05, Igor Neyman wrote:
>> Magnus,
>> Your output from dba_jobs shows that all
>> your jobs were executed this morning
>> and they all are scheduled to be executed
>> tomorrow at different times (probably,
>> as they are supposed to).
   
I agree with Igor.
My guess is that your jobs (job procs _j0**_) became hung on while running some
jobs for some reason and no further jobs could run (just happened to me this
week...jobs NOT broken, jobs NOT failing, but jobs *hung* using ALL of the job
procs so no new jobs would start.)
On db bounce they corrected themselves (as Igor explained) and are scheduled to
*your* defined NEXT time.  Their failure/hang is strange but can happen.

Spend some time reviewing dba_jobs view and select ***sysdate*** from dual; and
you will see things are fine.

PS You could spend all day (or more) trying to find out why they hung, but a
TAR might be best for this...why bother unless its regular problem?

hth

Chris Marquez
Oracle DBA




SQL> alter session set nls_date_format = 'Mon-DD-YYYY HH:MI:SS AM';
Session altered.

SQL> select sysdate from dual;
SYSDATE
-- ---- ---- ---- ---- ------
Oct-27-2005 11:21:41 AM

SQL> select  trunc(sysdate+1) + 22.00/24  from dual;
TRUNC(SYSDATE+1)+22/24
-- ---- ---- ---- ---- ------
Oct-28-2005 10:00:00 PM

SQL> select  trunc(sysdate+1) + 22.05/24   from dual;
TRUNC(SYSDATE+1)+22.05/24
-- ---- ---- ---- ---- ------
Oct-28-2005 10:03:00 PM




-- --Original Message-- --
From: oracle-l-bounce@(protected) on behalf of Magnus Andersen
Sent: Thu 10/27/2005 11:28 AM
To: Igor Neyman
Cc: oracle-l@(protected)
Subject: Re: dbms_job failed to execute

Igor,

I did check for broken jobs before I ran it manually. None of the jobs had
the flag set to Y. The only other trace files I have are generated from a
utl_smtp procedure that we have. Sometimes the end-users format the e-mail
addresses wrong and the job fails. That is all. This is a known issue that
I've asked the developers to fix and catch in the application before it
reaches the database.

Magnus

On 10/27/05, Igor Neyman <ineyman@(protected)> wrote:
>
> Magnus,
>  Did you check dba_jobs before you run them manually this morning?
> Did you see "broken" jobs? When you run jobs manually, "broken" changes
> from Y to N.
> If yes - there supposed to be corresponding trace files in "udump"
> directory. Or look for more _j000_ or _j001_ and so on in bdump directory
> with the timestamps between Saturday and this morning.
>  Igor
>
>  -- ---- ---- ---- ---- ---- --
> *From:* Magnus Andersen [mailto:mag.andersen@(protected)]
> *Sent:* Thursday, October 27, 2005 11:04 AM
> *To:* Igor Neyman
> *Cc:* oracle-l@(protected)
> *Subject:* Re: dbms_job failed to execute
>
> Igor,
>
> The database only goes down Saturday mornings for cold backup. I'm doing
> hot backups the rest of the week. I'm thinking about changing this to only
> to hot backups since I've read that there is no reason to do the cold, but
> that is an other thread I might start to iron that out. My guess is that the
> problem started saturday, but I didn't catch the issue before Tuesday
> morning. The reason you see all the jobs executed this morning is that I had
> to run them manually. We have several processes that are depending on these
> procedures being run. They do not execute on their own.
>
> Hope this makes sense.
>
> Magnus
>
> On 10/27/05, Igor Neyman <ineyman@(protected)> wrote:
> >
> > Magnus,
> >  When you are saying that jobs stopped executing on Tuesday, does it
> > mean that they were not executed since then?
> > Your output from dba_jobs shows that all your jobs were executed this
> > morning (probably when your instance was started) and they all are scheduled
> > to be executed tomorrow at different times (probably, as they are supposed
> > to).
> >  The reason they all were executed this morning right after instance
> > started is that most probably your instance was down at the time when they
> > were scheduled to be executed, and when oracle starts, it checks if it
> > missed to execute some jobs while the instance was down.
> > And if it finds such jobs that "missed" their scheduled time, it will
> > execute them immediately (not waiting for next scheduled time).
> >  HTH
> > Igor
> >
> >  -- ---- ---- ---- ---- ---- --
> > *From:* oracle-l-bounce@(protected) [mailto:
> > oracle-l-bounce@(protected)] *On Behalf Of *Magnus Andersen
> > *Sent:* Thursday, October 27, 2005 10:17 AM
> > *Cc:* oracle-l@(protected)
> > *Subject:* Re: dbms_job failed to execute
> >
> >  I found two trace files with the same time stamp on them. These are the
> > closest to when I saw the problem. Could this have "hung" since the database
> > bounced?
> >
> > --
> > Magnus Andersen
> > Systems Administrator / Oracle DBA
> > Walker & Associates, Inc.
> >
> >
> > Trace file information...
> >
> > Dump file /opt/oracle/ora92/rdbms/log /prd/bdump/prd_j000_9659.trc
> > Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
> > With the Partitioning, OLAP and Oracle Data Mining options
> > JServer Release 9.2.0.6.0 - Production
> > ORACLE_HOME = /opt/oracle/ora92
> > System name: Linux
> > Node name: oraprd.walkerassoc.com <http://oraprd.walkerassoc.com/>
> > Release: 2.4.21-32.0.1.ELsmp
> > Version: #1 SMP Tue May 17 17:52:23 EDT 2005
> > Machine: i686
> > Instance name: prd
> > Redo thread mounted by this instance: 1
> > Oracle process number: 28
> > Unix process pid: 9659, image: oracle@(protected) (J000)
> >
> > *** 2005-10-22 00:38:58.415
> > *** SESSION ID:(27.52095) 2005-10-22 00:38:58.391
> > OPIRIP: Uncaught error 1089. Error stack:
> > ORA-01089 (See ORA-01089.ora-code.com): immediate shutdown in progress - no operations are permitted
> > ORA-00448 (See ORA-00448.ora-code.com): normal completion of background process
> >
>
>
>
> --
> Magnus Andersen
> Systems Administrator / Oracle DBA
> Walker & Associates, Inc.
>



--
Magnus Andersen
Systems Administrator / Oracle DBA
Walker & Associates, Inc.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7233.28">
<TITLE>RE: dbms_job failed to execute</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Magnus,<BR>
<BR>
&gt;&gt; On 10/27/05, Igor Neyman wrote:<BR>
&gt;&gt; Magnus,<BR>
&gt;&gt; Your output from dba_jobs shows that all<BR>
&gt;&gt; your jobs were executed this morning<BR>
&gt;&gt; and they all are scheduled to be executed<BR>
&gt;&gt; tomorrow at different times (probably,<BR>
&gt;&gt; as they are supposed to).<BR>
&nbsp;&nbsp;&nbsp;&nbsp;<BR>
I agree with Igor.<BR>
My guess is that your jobs (job procs _j0**_) became hung on while running some
jobs for some reason and no further jobs could run (just happened to me this
week...jobs NOT broken, jobs NOT failing, but jobs *hung* using ALL of the job
procs so no new jobs would start.)<BR>
On db bounce they corrected themselves (as Igor explained) and are scheduled to
*your* defined NEXT time.&nbsp; Their failure/hang is strange but can happen.
<BR>
<BR>
Spend some time reviewing dba_jobs view and select ***sysdate*** from dual; and
you will see things are fine.<BR>
<BR>
PS You could spend all day (or more) trying to find out why they hung, but a
TAR might be best for this...why bother unless its regular problem?<BR>
<BR>
hth<BR>
<BR>
Chris Marquez<BR>
Oracle DBA<BR>
<BR>
<BR>
<BR>
<BR>
SQL&gt; alter session set nls_date_format = 'Mon-DD-YYYY HH:MI:SS AM';<BR>
Session altered.<BR>
<BR>
SQL&gt; select sysdate from dual;<BR>
SYSDATE<BR>
-- ---- ---- ---- ---- ------<BR>
Oct-27-2005 11:21:41 AM<BR>
<BR>
SQL&gt; select&nbsp; trunc(sysdate+1) + 22.00/24&nbsp; from dual;<BR>
TRUNC(SYSDATE+1)+22/24<BR>
-- ---- ---- ---- ---- ------<BR>
Oct-28-2005 10:00:00 PM<BR>
<BR>
SQL&gt; select&nbsp; trunc(sysdate+1) + 22.05/24&nbsp;&nbsp; from dual;<BR>
TRUNC(SYSDATE+1)+22.05/24<BR>
-- ---- ---- ---- ---- ------<BR>
Oct-28-2005 10:03:00 PM<BR>
<BR>
<BR>
<BR>
<BR>
-- --Original Message-- --<BR>
From: oracle-l-bounce@(protected) on behalf of Magnus Andersen<BR>
Sent: Thu 10/27/2005 11:28 AM<BR>
To: Igor Neyman<BR>
Cc: oracle-l@(protected)<BR>
Subject: Re: dbms_job failed to execute<BR>
<BR>
Igor,<BR>
<BR>
I did check for broken jobs before I ran it manually. None of the jobs had<BR>
the flag set to Y. The only other trace files I have are generated from a<BR>
utl_smtp procedure that we have. Sometimes the end-users format the e-mail<BR>
addresses wrong and the job fails. That is all. This is a known issue that<BR>
I've asked the developers to fix and catch in the application before it<BR>
reaches the database.<BR>
<BR>
Magnus<BR>
<BR>
On 10/27/05, Igor Neyman &lt;ineyman@(protected)&gt; wrote:<BR>
&gt;<BR>
&gt; Magnus,<BR>
&gt;&nbsp; Did you check dba_jobs before you run them manually this morning?<BR>
&gt; Did you see &quot;broken&quot; jobs? When you run jobs manually, &quot
;broken&quot; changes<BR>
&gt; from Y to N.<BR>
&gt; If yes - there supposed to be corresponding trace files in &quot;udump
&quot;<BR>
&gt; directory. Or look for more _j000_ or _j001_ and so on in bdump directory
<BR>
&gt; with the timestamps between Saturday and this morning.<BR>
&gt;&nbsp; Igor<BR>
&gt;<BR>
&gt;&nbsp; -- ---- ---- ---- ---- ---- --<BR>
&gt; *From:* Magnus Andersen [<A HREF="mailto:mag.andersen@(protected)">mailto
:mag.andersen@(protected)</A>]<BR>
&gt; *Sent:* Thursday, October 27, 2005 11:04 AM<BR>
&gt; *To:* Igor Neyman<BR>
&gt; *Cc:* oracle-l@(protected)<BR>
&gt; *Subject:* Re: dbms_job failed to execute<BR>
&gt;<BR>
&gt; Igor,<BR>
&gt;<BR>
&gt; The database only goes down Saturday mornings for cold backup. I'm doing
<BR>
&gt; hot backups the rest of the week. I'm thinking about changing this to only
<BR>
&gt; to hot backups since I've read that there is no reason to do the cold, but
<BR>
&gt; that is an other thread I might start to iron that out. My guess is that
the<BR>
&gt; problem started saturday, but I didn't catch the issue before Tuesday<BR>
&gt; morning. The reason you see all the jobs executed this morning is that I
had<BR>
&gt; to run them manually. We have several processes that are depending on
these<BR>
&gt; procedures being run. They do not execute on their own.<BR>
&gt;<BR>
&gt; Hope this makes sense.<BR>
&gt;<BR>
&gt; Magnus<BR>
&gt;<BR>
&gt; On 10/27/05, Igor Neyman &lt;ineyman@(protected)&gt; wrote:<BR>
&gt; &gt;<BR>
&gt; &gt; Magnus,<BR>
&gt; &gt;&nbsp; When you are saying that jobs stopped executing on Tuesday,
does it<BR>
&gt; &gt; mean that they were not executed since then?<BR>
&gt; &gt; Your output from dba_jobs shows that all your jobs were executed this
<BR>
&gt; &gt; morning (probably when your instance was started) and they all are
scheduled<BR>
&gt; &gt; to be executed tomorrow at different times (probably, as they are
supposed<BR>
&gt; &gt; to).<BR>
&gt; &gt;&nbsp; The reason they all were executed this morning right after
instance<BR>
&gt; &gt; started is that most probably your instance was down at the time when
they<BR>
&gt; &gt; were scheduled to be executed, and when oracle starts, it checks if
it<BR>
&gt; &gt; missed to execute some jobs while the instance was down.<BR>
&gt; &gt; And if it finds such jobs that &quot;missed&quot; their scheduled
time, it will<BR>
&gt; &gt; execute them immediately (not waiting for next scheduled time).<BR>
&gt; &gt;&nbsp; HTH<BR>
&gt; &gt; Igor<BR>
&gt; &gt;<BR>
&gt; &gt;&nbsp; -- ---- ---- ---- ---- ---- --<BR>
&gt; &gt; *From:* oracle-l-bounce@(protected) [mailto:<BR>
&gt; &gt; oracle-l-bounce@(protected)] *On Behalf Of *Magnus Andersen<BR>
&gt; &gt; *Sent:* Thursday, October 27, 2005 10:17 AM<BR>
&gt; &gt; *Cc:* oracle-l@(protected)<BR>
&gt; &gt; *Subject:* Re: dbms_job failed to execute<BR>
&gt; &gt;<BR>
&gt; &gt;&nbsp; I found two trace files with the same time stamp on them. These
are the<BR>
&gt; &gt; closest to when I saw the problem. Could this have &quot;hung&quot;
since the database<BR>
&gt; &gt; bounced?<BR>
&gt; &gt;<BR>
&gt; &gt; --<BR>
&gt; &gt; Magnus Andersen<BR>
&gt; &gt; Systems Administrator / Oracle DBA<BR>
&gt; &gt; Walker &amp; Associates, Inc.<BR>
&gt; &gt;<BR>
&gt; &gt;<BR>
&gt; &gt; Trace file information...<BR>
&gt; &gt;<BR>
&gt; &gt; Dump file /opt/oracle/ora92/rdbms/log /prd/bdump/prd_j000_9659.trc<BR>
&gt; &gt; Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production<BR>
&gt; &gt; With the Partitioning, OLAP and Oracle Data Mining options<BR>
&gt; &gt; JServer Release 9.2.0.6.0 - Production<BR>
&gt; &gt; ORACLE_HOME = /opt/oracle/ora92<BR>
&gt; &gt; System name: Linux<BR>
&gt; &gt; Node name: oraprd.walkerassoc.com &lt;<A HREF="http://oraprd
.walkerassoc.com/">http://oraprd.walkerassoc.com/</A>&gt;<BR>
&gt; &gt; Release: 2.4.21-32.0.1.ELsmp<BR>
&gt; &gt; Version: #1 SMP Tue May 17 17:52:23 EDT 2005<BR>
&gt; &gt; Machine: i686<BR>
&gt; &gt; Instance name: prd<BR>
&gt; &gt; Redo thread mounted by this instance: 1<BR>
&gt; &gt; Oracle process number: 28<BR>
&gt; &gt; Unix process pid: 9659, image: oracle@(protected) (J000)
<BR>
&gt; &gt;<BR>
&gt; &gt; *** 2005-10-22 00:38:58.415<BR>
&gt; &gt; *** SESSION ID:(27.52095) 2005-10-22 00:38:58.391<BR>
&gt; &gt; OPIRIP: Uncaught error 1089. Error stack:<BR>
&gt; &gt; ORA-01089 (See ORA-01089.ora-code.com): immediate shutdown in progress - no operations are
permitted<BR>
&gt; &gt; ORA-00448 (See ORA-00448.ora-code.com): normal completion of background process<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; --<BR>
&gt; Magnus Andersen<BR>
&gt; Systems Administrator / Oracle DBA<BR>
&gt; Walker &amp; Associates, Inc.<BR>
&gt;<BR>
<BR>
<BR>
<BR>
--<BR>
Magnus Andersen<BR>
Systems Administrator / Oracle DBA<BR>
Walker &amp; Associates, Inc.<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>