I need to check if the database connections are successful or not. Using command
sqlplus <username>/<password>@<SID>
If the connection is successful than the command returns a variable flagged as Y/N or whatever. This should be done for multiple servers and the flags stored in a file.
I am not sure how to conitnue?