Checking Database it running or not by using shell script
Hi,
can you please tell me how to write these scripts
1. i need to check whether the oracle database is running or not if it is running it will run auto mount script.
nohup /u01/app/oracle/product/11.2.0/dbhome_1/bin/dbfs_client dbfs@xxxxx -o allow_other,direct_io /u01/app/oracle/DBFS/XXXXX < /home/oracle/passwd_dbfs.txt &
nohup /u01/app/oracle/product/11.2.0/dbhome_1/bin/dbfs_client dbfs@xxxxxx -o allow_other,direct_io /u01/app/oracle/DBFS/XXXXX < /home/oracle/passwd_dbfs.txt &
2. For every 1 hour i need to check above mount points is mounted or not if it is not mounted it should be mounted.
Thanks & Regards
Ram
|