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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating a task

Status
Not open for further replies.

dnfrantum

Programmer
Oct 23, 2001
175
US
Is it possible to create a task in Oracle, e.g. I want to create a query for a report, transform that into a stored procedure, and then run that stored procedure at specific intervals throughout the day.

The stored procedure would be spooling a file to a specific location for pickup by an FTP .bat file.

I seem to remember doing this on ORACLE 8, but I can't remember how.

Thanks in advance,
Donald
 
You are talking about jobs (DBMS_JOB).

Depending on version, job can (10g>) or cannot (<=9i) execute an external program (to spool in a file).

If you use an stored proc, you will have to use something like utl_file to create and open a file and write in it...

Millions of examples on google...


Hope this helps,

Christian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top