When SQL Developer is idle I lose my connection

前端 未结 6 1375
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-31 04:38

My problem is this: I am running Oracle 10G on windows 98 on a virtual machine using VMWare on my desktop computer. I can connect to several users (SYS, HR, OE, ... ) with

相关标签:
6条回答
  • 2020-12-31 05:05

    MinChen Chai has created Keep-Alive Extension exactly for your situation: https://sites.google.com/site/keepaliveext

    It will continually send TCP keep-alive packets and prevent server disconnection by inactivity timeout.

    0 讨论(0)
  • 2020-12-31 05:14

    Go to Tools > Monitor Sessions... and select your Connection. Set the refresh value to 60 (seconds).

    While monitoring, your connection will not be lost.

    Oracle SQL Developer Version 4.1.3.20

    0 讨论(0)
  • 2020-12-31 05:15

    On SQL Developer go to Tools > Preferences > Databases > Instances Viewer. and the option traffic duration change it to the max, this worked for me.

    0 讨论(0)
  • 2020-12-31 05:16

    This extension works for SQL Developer 4:

    https://github.com/scristalli/SQL-Developer-4-keepalive

    DISCLAIMER: I'm the developer of the extension. I hope the answer is not considered advertising, because this extension is open source (and the previous non-open-source extensions were accepted as an answer).

    0 讨论(0)
  • 2020-12-31 05:25

    When used with the latest SQL Developer Version 4.0.0.13:
    - MinChen's extension (http://sites.google.com/site/keepaliveext) doesn't work.
    - The keepconnext extension (http://sites.google.com/site/keepconnext) too doesn't work anymore.

    0 讨论(0)
  • 2020-12-31 05:26

    As the suggested extensions in this thread have had issues with recent versions of SQL Developer, I tried my way and got scristalli's code to work in a new project based on his code AND the oracle example repo.

    Needs a lot of work but oh well, at least I can install the new build on SQLDev v19.2 and it works as expected.

    Disclaimer: I'm the owner of the linked repo, although it's MIT as the previous versions. Feel free to fork it, pullrequest-it or do as you like

    0 讨论(0)
提交回复
热议问题