If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > need help with Oracle Cron Job

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-17-03, 12:21
wilconow wilconow is offline
Registered User
 
Join Date: Sep 2003
Location: Baltimore, MD
Posts: 8
Arrow need help with Oracle Cron Job

I just need a cron to call an Oracle procedure. I know nothing about crons and no one in my office knows anything, but for some reason, I was assigned this. Id love to just quit my job and hang out outside, but the job pays the bills.

I based what I did upon work someone in another office sent me. unfortunately I cant seem to get in touch with this person now.

Anyway this is the crontab entry:

22 10 * * * /home/ecom_dev/psource/ecom****n

this is the ecom****n file. the procedure has been complied and runs fine by itself.

Code:
#!/usr/bin/ksh

PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/lbin:/actapps/oracle/bin:/usr/local/bin:. ; 
export PATH
ORACLE_SID=dev9i; export ORACLE_SID
ORACLE_HOME=/actapps/oracle; export ORACLE_HOME
ORAENV_ASK=NO ; export ORAENV_ASK

#
sqlplus ecom_dev/ecom_dev @/home/ecom_dev/psource/PREV_EXPIRATION.sql
Reply With Quote
  #2 (permalink)  
Old 10-20-03, 08:53
wilconow wilconow is offline
Registered User
 
Join Date: Sep 2003
Location: Baltimore, MD
Posts: 8
Re: need help with Oracle Cron Job

never mind, figured i out. something was wrong with my path
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On