Then you should get this dialog, with the "try to restore" option.
Click "Try to restore the program". It actually works. Toad will realize that the connection is lost, it will come out of the "Not Responding" state, and Toad won't close. Then you can click Session -> Test/Reconnect to reconnect to the database.
I have been using this way to get connections reconnected for a long time and it works well.
However if there is a modal dialog it does not work at all.
Quite often I notice that a connection is closed after starting a SQL query and then click Cancel, however that might take 30 minutes or more until something happens, thus I regularly have to start a new Toad instance.
Please add the same logic when clicking Cancel in dialogs or some other way the do the same for Modal dialogs.
Run any query in editor, and then do something else for a while
when you have Toad in the same state as in your example above where you click the X to close and use the restore option, that is when it happens to me.
Then run the query again from the editor, then this happens
I have this in all the latest Toad versions including 15 that I am using now
If you are timed out after a period of inactivity, maybe there is a setting on the database server that does it. Maybe your DBAs or sys admins know something about it. Do you ever get an ORA-error on the disconnects, or just the hang? If so, what is the ORA error code?
I am (mostly) as well. What works great in Toad to prevent VPN disconnecting is to use the Transactions window. On my main Toad toolbar, the Transactions window is a button with a question mark over a flowchart-like disk/DB, towards the right-hand side, next to the "New Connection" button.
In the Transactions window/pane, there's a "Refresh every" to check, along with a number of seconds. I have mine set anywhere from 10-60 seconds.
You could give this a shot to see if it helps your disconnects from within Toad. It has been a sanity-saving feature for me!
Scenario:
Product: Toad for Oracle 15.0.97.1178
Laptop using wi-fi, VPN active (still).
Wifi lost while a query was executing.
Wifi came back 10 seconds later. All other applications - vpn, MS Outlook, various webpages - regain connection.
Yet, 15 minutes later, Toad is still pale and non responsive.
Perhaps it knows it's Friday evening, and I should know better
Reason of wifi fallout: Train drove through a tunnel.
But why does the application not recover from this short loss of connection? Why doesn't it just give up, and regain focus?
Reason of wifi fallout: Train drove through a tunnel.
That's a new one!
Depends on what you want to do, I guess. Seems like after 15 minutes, it's not coming back. But maybe you could get it back to normal by clicking "wait", then disable your internet, then click the X again...maybe then you'd get the "try to restore" option, or maybe the Oracle client would return an error.
This is all on the Oracle client, I'm afraid. There really isn't anything we can do in Toad when this happens.