I need to configure a service to on Oracle application server to test connectivity with database and then send an email notification about status. Can anyone help me please.
Thanks,
I need to configure a service to on Oracle application server to test connectivity with database and then send an email notification about status. Can anyone help me please.
Thanks,
Copyright © 2021 Jogjafile Inc.
Here's one option:
A few remarks:
tnsping %1 > ping_result.txt
pings database passed as a parameter (%1) and stores the result into a .txt filebmail
(you can use any other command line SMTP mailer; or, Google for "bmail download" - it is free)Here you go:
bmail's options:
Testing (I've removed bmail's output):