Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 25th, 2005, 10:02 PM
DBStudent DBStudent is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 54 DBStudent User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 1 m 34 sec
Reputation Power: 5
Dbms_job

hi,

I would like to submit a job that run a stored procedure, on every sunday 9am. Can give me the script to submit the job?

I dont know how to write the script.

THanks.

Reply With Quote
  #3  
Old May 26th, 2005, 10:14 PM
DBStudent DBStudent is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 54 DBStudent User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 1 m 34 sec
Reputation Power: 5
Quote:
Originally Posted by pabloj
This article has it all.



Thanks a lot!!!

Reply With Quote
  #4  
Old June 22nd, 2005, 03:08 AM
DBStudent DBStudent is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 54 DBStudent User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 1 m 34 sec
Reputation Power: 5
job first run

Hi,

I have read the articles, and have some test myself. However, i still cant figure out how to create a job so that the job can run in this Saturday (25-JUN-2005) 1:00 AM.
Can someone pls help me?


The below is the script i wrote:

DECLARE
jobno1 number;

BEGIN
DBMS_JOB.SUBMIT(
job => jobno1,
what => 'BEGIN HELLO_PROC; END;',
next_date => TO_DATE('22-JUN-2005 01:00:00','DD-MON-YYYY HH24:MI:SS'),
interval => 'SYSDATE +16/24'
);
COMMIT;
END;

When i run this script, the 'hello' stored procedure have been executed. How to make the first run on saturday 1:00AM?


Thanks!

Reply With Quote
  #5  
Old June 22nd, 2005, 03:22 AM
DBStudent DBStudent is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 54 DBStudent User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 1 m 34 sec
Reputation Power: 5
job first run

Hi,

I have read the articles, and have some test myself. However, i still cant figure out how to create a job so that the job can run in this Saturday (25-JUN-2005) 1:00 AM.
Can someone pls help me?


The below is the script i wrote:

DECLARE
jobno1 number;

BEGIN
DBMS_JOB.SUBMIT(
job => jobno1,
what => 'BEGIN HELLO_PROC; END;',
next_date => TO_DATE('22-JUN-2005 01:00:00','DD-MON-YYYY HH24:MI:SS'),
interval => 'SYSDATE +16/24'
);
COMMIT;
END;

When i run this script, the 'hello' stored procedure have been executed. How to make the first run on saturday 1:00AM?


Thanks!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Dbms_job


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT