At work we have a DBA who said his RAC working just fine, but the truth is it isn't. SQL IDEs like Toad or SQL Developer randomly dropping their connections (my suspicion is becouse of the inrorrect network settings of the RAC). I would like to prove my theory with a test. I guess a perl script would to the trick:
step 1. ping the db's IP
step 2. if IP is up attempt to connect to the db
step 3. if connected select sysdate from dual and close connection
step 4. wait some time and start it over again
I have managed to write this in Perl using DBI but I don't know how can I timeout connecting and query execution. Is there some solution for timing out those things?