Does anyone have any scripts/ideas on how to check whether an oracle db is up or down and send out emails if its down?

thanks
Jigar