Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

prescheduled execution of stored procedures 1

Status
Not open for further replies.

samasamajam

Programmer
Dec 27, 2002
13
GB
plss tell me how to schedule execution of shell scripts at regular intervals which inturn execute stored procedures
 
You'd have to create an entry in a crontab - either root cron or the cron of a regular user, using crontab -e
e.g
00 13 ** 5 /runtime/scripts/myscript

which will run every Friday at 1pm
and that script would contain the call to the stored procedure
eg (sybase example)
#!/bin/ksh
isql -b -Uuserid -Ppassword <<EOP
exec yourproc
go
EOP

or for Oracle :
#!/bin/ksh
sqlplus -s userid/password <<EOP
exec yourproc
go
EOP


See man cron or crontab for more, and see FAQ faq822-2218
HTH
Dickie Bird (:)-)))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top