Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Oracle SQL Developer be made to reconnect as needed?

Is there an option in Oracle SQL Developer (I use version 4.1.5) to make it reconnect to the DB when needed?

For example, if I start an SQL script but the DB was disconnected, then it should reconnect with minimum hassle and execute the script instead of giving a SQL Error: Closed Connection message.

Note: I'm not interested in keep-alive (what most related questions discuss). If I don't use it today, then it is OK to disconnect. I just want it to reconnect next time I use it.

like image 383
David Balažic Avatar asked Feb 03 '17 16:02

David Balažic


People also ask

How do I stop connection timeout in SQL Developer?

SQL Developer doesn't have a timeout - any timeout you are experiencing will be set at the database level or possibly in a firewall. You can try to use a 'keepalive' as discussed in 2460876 thread.

How do I keep Oracle SQL Developer alive?

Go to Tools --> Preferences and click "Check connection". It pings the database every 60 seconds, making the session active and avoids idle session disconnects caused by profiles. NOTE: This question and answer are for Allround Automations PL/SQL Developer. See this question if you're looking for Oracle SQL Developer.


1 Answers

No.

Auto-connecting dropped connections sounds good in theory, but the 'auto' part is where the trouble begins.

I have a standing ER to add the reconnect button to the dropped connection ERROR message.

like image 63
thatjeffsmith Avatar answered Oct 14 '22 15:10

thatjeffsmith