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?