<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Scheduling Jobs Using Oracle&#8217;s Job Queue</title>
	<atom:link href="http://www.lifeaftercoffee.com/2006/01/23/scheduling-jobs-using-oracles-job-queue/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lifeaftercoffee.com/2006/01/23/scheduling-jobs-using-oracles-job-queue/</link>
	<description>because I don't believe in life before coffee...</description>
	<lastBuildDate>Wed, 23 Nov 2011 03:01:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jeremias</title>
		<link>http://www.lifeaftercoffee.com/2006/01/23/scheduling-jobs-using-oracles-job-queue/comment-page-1/#comment-380468</link>
		<dc:creator>Jeremias</dc:creator>
		<pubDate>Fri, 23 Sep 2011 13:49:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/?p=131#comment-380468</guid>
		<description>Somehow after updating the interval the next data is being increment little by little, is like the next run is the date of execution plus the interval. 

I can&#039;t seem to run a job every 3 hours after 16:50, lets say:

16:50, 19:50, 22:50 ...</description>
		<content:encoded><![CDATA[<p>Somehow after updating the interval the next data is being increment little by little, is like the next run is the date of execution plus the interval. </p>
<p>I can&#8217;t seem to run a job every 3 hours after 16:50, lets say:</p>
<p>16:50, 19:50, 22:50 &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sna</title>
		<link>http://www.lifeaftercoffee.com/2006/01/23/scheduling-jobs-using-oracles-job-queue/comment-page-1/#comment-375571</link>
		<dc:creator>sna</dc:creator>
		<pubDate>Sat, 13 Mar 2010 17:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/?p=131#comment-375571</guid>
		<description>Dear all,

can any one help as to solve this isue,

i am using aix6.1 and database oracle 11g some time i am faceing this problem.

Fri Jan 29 12:34:44 2010
Process startup failed, error stack:
Fri Jan 29 12:34:44 2010
Errors in file /oracle/app/oracle/admin/fcctbl/bdump/fcctbl_psp0_1404974.trc:
ORA-27300: OS system dependent operation:fork failed with status: 17
ORA-27301: OS failure message: File exists
ORA-27302: failure occurred at: skgpspawn5
ORA-27303: additional information: skgpspawn5
Fri Jan 29 12:34:45 2010
Process J000 died, see its trace file
Fri Jan 29 12:34:45 2010
kkjcre1p: unable to spawn jobq slave process 
Fri Jan 29 12:34:45 2010
Errors in file /oracle/app/oracle/admin/fcctbl/bdump/fcctbl_cjq0_1384690.trc:</description>
		<content:encoded><![CDATA[<p>Dear all,</p>
<p>can any one help as to solve this isue,</p>
<p>i am using aix6.1 and database oracle 11g some time i am faceing this problem.</p>
<p>Fri Jan 29 12:34:44 2010<br />
Process startup failed, error stack:<br />
Fri Jan 29 12:34:44 2010<br />
Errors in file /oracle/app/oracle/admin/fcctbl/bdump/fcctbl_psp0_1404974.trc:<br />
ORA-27300: OS system dependent operation:fork failed with status: 17<br />
ORA-27301: OS failure message: File exists<br />
ORA-27302: failure occurred at: skgpspawn5<br />
ORA-27303: additional information: skgpspawn5<br />
Fri Jan 29 12:34:45 2010<br />
Process J000 died, see its trace file<br />
Fri Jan 29 12:34:45 2010<br />
kkjcre1p: unable to spawn jobq slave process<br />
Fri Jan 29 12:34:45 2010<br />
Errors in file /oracle/app/oracle/admin/fcctbl/bdump/fcctbl_cjq0_1384690.trc:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keigo</title>
		<link>http://www.lifeaftercoffee.com/2006/01/23/scheduling-jobs-using-oracles-job-queue/comment-page-1/#comment-375527</link>
		<dc:creator>Keigo</dc:creator>
		<pubDate>Thu, 18 Feb 2010 09:46:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/?p=131#comment-375527</guid>
		<description>declare
v_statement varchar2(50) NOT NULL := &#039;@d:/sqlscript.sql&#039;;
jobno number;

 begin
	DBMS_JOB.SUBMIT(:jobno, 
		v_statement,
		SYSDATE, &#039;SYSDATE + 1&#039;);
commit;
end;
/

Hi could someone help me, i would like to execute a script in my job queue but i keep getting error saying &quot;encountered the symbol ...&quot;</description>
		<content:encoded><![CDATA[<p>declare<br />
v_statement varchar2(50) NOT NULL := &#8216;@d:/sqlscript.sql&#8217;;<br />
jobno number;</p>
<p> begin<br />
	DBMS_JOB.SUBMIT(:jobno,<br />
		v_statement,<br />
		SYSDATE, &#8216;SYSDATE + 1&#8242;);<br />
commit;<br />
end;<br />
/</p>
<p>Hi could someone help me, i would like to execute a script in my job queue but i keep getting error saying &#8220;encountered the symbol &#8230;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Martin</title>
		<link>http://www.lifeaftercoffee.com/2006/01/23/scheduling-jobs-using-oracles-job-queue/comment-page-1/#comment-372883</link>
		<dc:creator>Brad Martin</dc:creator>
		<pubDate>Tue, 07 Apr 2009 21:17:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/?p=131#comment-372883</guid>
		<description>We are submitting stored procedures thru the DBMS_JOB.SUBMIT subprogram.  I would like the stored procedure submitted in this to log it&#039;s job number (select job from user_jobs).  Is there any way to access the job id from within that process?

thanks</description>
		<content:encoded><![CDATA[<p>We are submitting stored procedures thru the DBMS_JOB.SUBMIT subprogram.  I would like the stored procedure submitted in this to log it&#8217;s job number (select job from user_jobs).  Is there any way to access the job id from within that process?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Emmons</title>
		<link>http://www.lifeaftercoffee.com/2006/01/23/scheduling-jobs-using-oracles-job-queue/comment-page-1/#comment-371868</link>
		<dc:creator>Jon Emmons</dc:creator>
		<pubDate>Sun, 25 Jan 2009 15:44:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/?p=131#comment-371868</guid>
		<description>Stephane,

Oracle does provide the ability to apply a trigger after database startup and/or before database shutdown.  Care should be used with these triggers as they may slow startup and shutdown but it is possible.

Check out this page for some command reference:

&lt;a href=&quot;http://www.psoug.org/reference/system_trigger.html&quot; rel=&quot;nofollow&quot;&gt;http://www.psoug.org/reference/system_trigger.html&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Stephane,</p>
<p>Oracle does provide the ability to apply a trigger after database startup and/or before database shutdown.  Care should be used with these triggers as they may slow startup and shutdown but it is possible.</p>
<p>Check out this page for some command reference:</p>
<p><a href="http://www.psoug.org/reference/system_trigger.html" rel="nofollow">http://www.psoug.org/reference/system_trigger.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stéphane</title>
		<link>http://www.lifeaftercoffee.com/2006/01/23/scheduling-jobs-using-oracles-job-queue/comment-page-1/#comment-371540</link>
		<dc:creator>Stéphane</dc:creator>
		<pubDate>Thu, 08 Jan 2009 16:19:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/?p=131#comment-371540</guid>
		<description>Hi Tim,

I want to know if is possible to run a job after every database startup... I dont see how I can do this. the repeat interval of DBMS_SCHEDULER don&#039;t allow this choice? I use Grid Control to set up my jobs.

Thanks for the help
Stéphane</description>
		<content:encoded><![CDATA[<p>Hi Tim,</p>
<p>I want to know if is possible to run a job after every database startup&#8230; I dont see how I can do this. the repeat interval of DBMS_SCHEDULER don&#8217;t allow this choice? I use Grid Control to set up my jobs.</p>
<p>Thanks for the help<br />
Stéphane</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Emmons</title>
		<link>http://www.lifeaftercoffee.com/2006/01/23/scheduling-jobs-using-oracles-job-queue/comment-page-1/#comment-368677</link>
		<dc:creator>Jon Emmons</dc:creator>
		<pubDate>Sat, 03 May 2008 17:20:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/?p=131#comment-368677</guid>
		<description>Hashmi,

I don&#039;t think you can build a non-time based condition into the dbms_job portion, but you could certainly build your condition into a procedure and call the procedure with the scheduler.

I think you&#039;ll be happier with this approach anyway as it will keep the scheduled job as simple as possible.</description>
		<content:encoded><![CDATA[<p>Hashmi,</p>
<p>I don&#8217;t think you can build a non-time based condition into the dbms_job portion, but you could certainly build your condition into a procedure and call the procedure with the scheduler.</p>
<p>I think you&#8217;ll be happier with this approach anyway as it will keep the scheduled job as simple as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hashmi</title>
		<link>http://www.lifeaftercoffee.com/2006/01/23/scheduling-jobs-using-oracles-job-queue/comment-page-1/#comment-368610</link>
		<dc:creator>Hashmi</dc:creator>
		<pubDate>Thu, 24 Apr 2008 14:26:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/?p=131#comment-368610</guid>
		<description>I have a question about DBMS_JOB. 
How can I put a condition inside a DBMS_JOB packge that, if condition gets true, JOB will run otherwise job will not run.</description>
		<content:encoded><![CDATA[<p>I have a question about DBMS_JOB.<br />
How can I put a condition inside a DBMS_JOB packge that, if condition gets true, JOB will run otherwise job will not run.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Emmons</title>
		<link>http://www.lifeaftercoffee.com/2006/01/23/scheduling-jobs-using-oracles-job-queue/comment-page-1/#comment-317046</link>
		<dc:creator>Jon Emmons</dc:creator>
		<pubDate>Wed, 31 Oct 2007 20:48:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/?p=131#comment-317046</guid>
		<description>Ashwath,

If you&#039;re looking for when the next execution of a given job will be you can just select the NEXT_DATE column from the user_jobs table.  The INTERVAL column is stored as text (a varchar2) so will not evaluate to a date as easily as you want.

Hope this helps.</description>
		<content:encoded><![CDATA[<p>Ashwath,</p>
<p>If you&#8217;re looking for when the next execution of a given job will be you can just select the NEXT_DATE column from the user_jobs table.  The INTERVAL column is stored as text (a varchar2) so will not evaluate to a date as easily as you want.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashwath Akirekadu</title>
		<link>http://www.lifeaftercoffee.com/2006/01/23/scheduling-jobs-using-oracles-job-queue/comment-page-1/#comment-316793</link>
		<dc:creator>Ashwath Akirekadu</dc:creator>
		<pubDate>Wed, 31 Oct 2007 12:17:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/?p=131#comment-316793</guid>
		<description>Is there a way to query user_jobs table and get the &#039;interval&#039; as date type?  

Assume that the only row in user_jobs has interval as TRUNC(SYSDATE+1/24,&#039;HH24&#039;).

I thought something like this would do the trick:

select (select interval from user_jobs where rownum=1) from dual;

Ya&#039;ll know it better than me... that won&#039;t work.  That will prompty return  TRUNC(SYSDATE+1/24,&#039;HH24&#039;).

Although 

select TRUNC(SYSDATE+1/24,&#039;HH24&#039;) from dual; 

returns what I wanted.



We have the interval specified in bazillion different ways in our database.  Some examples:

sysdate + 1/288 

 

sysdate + 1/480 

 

TRUNC(SYSDATE+1,&#039;DD&#039;)+ 1/48 

 

TRUNC(SYSDATE)+1    

 

sysdate + 1/48  

 

TRUNC(SYSDATE+1/24,&#039;HH24&#039;)  

 

TRUNC(SYSDATE+1/24,&#039;HH24&#039;)  

 

sysdate+1/480   

 

TRUNC(SYSDATE+1,&#039;DD&#039;)          

 

sysdate + 72     

 

sysdate+1</description>
		<content:encoded><![CDATA[<p>Is there a way to query user_jobs table and get the &#8216;interval&#8217; as date type?  </p>
<p>Assume that the only row in user_jobs has interval as TRUNC(SYSDATE+1/24,&#8217;HH24&#8242;).</p>
<p>I thought something like this would do the trick:</p>
<p>select (select interval from user_jobs where rownum=1) from dual;</p>
<p>Ya&#8217;ll know it better than me&#8230; that won&#8217;t work.  That will prompty return  TRUNC(SYSDATE+1/24,&#8217;HH24&#8242;).</p>
<p>Although </p>
<p>select TRUNC(SYSDATE+1/24,&#8217;HH24&#8242;) from dual; </p>
<p>returns what I wanted.</p>
<p>We have the interval specified in bazillion different ways in our database.  Some examples:</p>
<p>sysdate + 1/288 </p>
<p>sysdate + 1/480 </p>
<p>TRUNC(SYSDATE+1,&#8217;DD&#8217;)+ 1/48 </p>
<p>TRUNC(SYSDATE)+1    </p>
<p>sysdate + 1/48  </p>
<p>TRUNC(SYSDATE+1/24,&#8217;HH24&#8242;)  </p>
<p>TRUNC(SYSDATE+1/24,&#8217;HH24&#8242;)  </p>
<p>sysdate+1/480   </p>
<p>TRUNC(SYSDATE+1,&#8217;DD&#8217;)          </p>
<p>sysdate + 72     </p>
<p>sysdate+1</p>
]]></content:encoded>
	</item>
</channel>
</rss>

