sql - Is there any way to mail the Output of a SELECT query to a pre-defined list of email ids in Oracle? -
everyday @ job, need fetch results of these queries , send them 1 one these recipients.this time consuming.
what want do,is automate process.
i want in coding script automatically mail results of these queries recipients, @ particular time of day. possible? if yes, how?
any kind of appreciated.
you can follow following steps configure sending email (results of query) in oracle database:
create owner_schema.sp_send_email stored procedures. please refer following links pl/sql scripts sending email. need configure sender, recipients, email server host , email server listening port. make sure have added oracle server on acl list of email server, verify using user@source_oracle_database server $ telnet email_server port.
http://www.dba-oracle.com/t_utl_smtp_utility.htm
create oracle scheduler if need send email regularly(hourly, daily, weekly, monthly, yearly...) , configure scheduler execute email sending procedure per requirements.
Comments
Post a Comment