Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to execute a proc and spool files in a database job

imation3mOct 2 2013 — edited Dec 2 2013

Database is oracle 11g

I have a plsql procedure that takes one date parameter and generates some data in two different tables.

Then I need to query these two tables based on the same date parameter and spool in two different files and send these files to specified email address.

I want to schedule this whole process as a database job which will run daily except holidays.

Can I get some guidance on how best to do this?

How can i call a database procedure as well as spool file in a database job?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 30 2013
Added on Oct 2 2013
36 comments
16,491 views