Shell Script for db status
Dear experts,
I have to do the below requirments can you please help me on this,
i have to check the database status on every 2 hour intravel, i need a shell script to check the database status whether up or down, if the status is up i have to call .sql file , if the status is down the mail will be sent to dba team with mailx functionality, can any one plz help me on this? this requirment needs to be used only shell script code. thanks in advance
Os is AIX
db version 11.2.0.2