Question : KSH scripting solution to handle a sqlplus timeout

Hi,

When logging into an Oracle 10.2.0.3 DB with an incorrect user name or an incorrect service name the connection hangs and I must wait a long time for a timeout to occur before getting the prompt back again.

Can somebody show me how to handle such a timeout from within a KSH script? Basically, if the sqlplus connection hangs like this then after say 5 seconds the script needs to continue and state that there's an error  ... but if the connection suceeds then it should continue as normal.

Thanks,
Mike.

Answer : KSH scripting solution to handle a sqlplus timeout

I did not succeed in attaching the file, however I found an external pointer to it:

http://src.opensolaris.org/source/xref//sfw/usr/src/cmd/bash/bash-3.2/examples/scripts/timeout

Random Solutions  
 
programming4us programming4us