in reply to Re: SQLPLUS connect database
in thread SQLPLUS connect database

Thank you for your solution. This is exactly the stuff I wanted. It outputs the error message that caused the failing when it comes to connection failure.