schedule job [message #242113] |
Thu, 31 May 2007 12:35 |
plshelp
Messages: 205 Registered: January 2007
|
Senior Member |
|
|
Hi all,
Please,can someone advise how to schedule a job to run every half hour on my local windows machine. The schedule job is to check if the databases are up and running. Right now I am just running a script manually from sqlplus to check the status of the databases. I know cronjob in unix, but I dont know in windows..
Thanks much!
|
|
|
|
Re: schedule job [message #242129 is a reply to message #242113] |
Thu, 31 May 2007 14:00 |
plshelp
Messages: 205 Registered: January 2007
|
Senior Member |
|
|
ok..I tried scheduling sqlplusw.exe every 20minutes. I scheduled to run sqlplus. But how do I schedule to run the script from sqlplus?? Please help.Thanks.
|
|
|
|
Re: schedule job [message #242941 is a reply to message #242113] |
Tue, 05 June 2007 10:06 |
plshelp
Messages: 205 Registered: January 2007
|
Senior Member |
|
|
Hi Littlefoot,
Thanks for your reply. I scheduled job.bat and it still doesn't run. It just says the scheduled task failed to start. Do I need admin rights to schedule the task?
Thank you so much!
|
|
|
|
Re: schedule job [message #243046 is a reply to message #242113] |
Tue, 05 June 2007 15:58 |
plshelp
Messages: 205 Registered: January 2007
|
Senior Member |
|
|
No. Actually my machine was on when I scheduled the job to run. So no battery issue.
Secondly, I used the same username and password like when it asks for login to startup my machine. I dont know anyother username and passwords I use for authentication for my machine.
Thatswhy I am wondering if I will need the admin rights to do this. Thanks, Littlefoot.
|
|
|
|
Re: schedule job [message #246674 is a reply to message #243046] |
Thu, 21 June 2007 11:08 |
|
ebrian
Messages: 2794 Registered: April 2006
|
Senior Member |
|
|
Did you try the exact command that Littlefoot presented? Don't use sqlplusw (notice the 'W')...use sqlplus (without the w).
Once you setup the task, right-click on it and click RUN. For troubleshooting purposes, if you want to create a log of this job running, in the RUN box of the scheduled task, just add the following:
e:\test.bat > e:\test.log
(Modify the paths above to accommodate your system & privileges)
|
|
|