Home » RDBMS Server » Server Utilities » Scheduling Task
Scheduling Task [message #73716] Wed, 23 June 2004 22:50 Go to next message
Brayan
Messages: 315
Registered: June 2002
Senior Member
Hi,

I want to schedule a SQL/PLSQL script to run at midnight. If anybody has ideas please share with me.

we are using Enterprise Oracle 9i.

Thanking you in advance,
Ronald.
Re: Scheduling Task [message #73721 is a reply to message #73716] Thu, 24 June 2004 03:29 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
if the job is an oracle stored procedure,
use DBMS_JOB to schedule within oracle.
if the job is a script or anonymous pl/sql blocks / sql block, then
create a batch file and schedule it from your OS.
in windows creat a .bat file and use windows scheduler or use AT command

example: please have a look here

http://www.orafaq.com/scripts/win/sched.txt

in unix, craete a shell script and scedule in crontab.
Re: Scheduling Task [message #73722 is a reply to message #73721] Thu, 24 June 2004 04:35 Go to previous messageGo to next message
Brayan
Messages: 315
Registered: June 2002
Senior Member
Hi,
I'm just wondering how the SQL script from bat file will be recoginsed at OS level. Can you please give me the script inside Bat!
Thankx
Ronald
Re: Scheduling Task [message #73724 is a reply to message #73722] Thu, 24 June 2004 04:46 Go to previous message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
please have a look here
http://www.orafaq.com/scripts/win/runsql.txt
Previous Topic: OEM Console - Urgent
Next Topic: exp/imp complie=y,compress=y doughts
Goto Forum:
  


Current Time: Mon Jul 01 10:50:48 CDT 2024