Link to home
Start Free TrialLog in
Avatar of pegahelpdesk1
pegahelpdesk1

asked on

I want to send an email, the output of a simple SQL query in oracle 10g

I want to send an email, the output of a simple SQL query in oracle 10g
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

simple:
I would use UTL_MAIL:

http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_mail.htm

If the message is larger than 32K, you'll need to use UTL_SMTP.
Avatar of pegahelpdesk1

ASKER

I am planning to store the output of a query into a text file, and then send using bmail, I will use task scheduler to initiate the batch file where all the commands would be written, so can you tell me how to store output of a query into a text file?
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial