How can I check if a particular database is running on the server and then connect to it via sqlplus from aksh script?
I get an ORACLE_SID from oratab file but then I am stuck.
Should I use
to set the environment and then
sqlplus -s "/ as sysdba" << $OUTFILE
or are there better ways?
Can anyone help?