Guida Korea - scristalli/sql-developer-keepalive GitHub Wiki
Building the extension (Linux)
- If you are not interested in re-building the extension and only want to use it, please skip forward to section Setup.
- Install the latest version of Oracle JDeveloper 12c.
- Clone the repository.
- Open "SQL Developer 4 keepalive.jws" with JDeveloper, upgrade its version if JDeveloper asks you to do so.
- Build the project with the pre-loaded profile "JAR-Deploy", confirming the default options.
- Launch the script "pack_extension.sh". The file keepalive.zip created by the script is the extension file that can be installed in SQLDeveloper.
Setup
- νμΌμ λ€μ΄λ‘λ : keepalive.zip (available in this repository under Releases).
- μ΄λΆλΆμ μνλλ° μλλ€. -> Make sure that you have writing permissions on the installation folder of SQL Developer. To aquire them, launch this command (edit the path if necessary):
sudo chmod -R o+w /opt/sqldeveloper. - SQL Developer λ₯Ό μ€ννλ€..
- λμλ§ -> μ λ°μ΄νΈ νμΈ νλ©΄μΌλ‘ μ΄λ.
- μλ μͺ½μ 보면 λ‘컬νμΌμμ μ€μΉλ₯Ό μ ννμ λ€μ΄λ‘λ λ°μ keepalive.zip νμΌμ μ ννλ€..
- SQL Developerλ₯Ό λ€μ μμν΄μΌνλ€.
- λ€μ μμνκ³ λλ©΄ λ©λ΄λ°μλ μͺ½μ ν κ·Έ(?) μ΄λ―Έμ§κ° μΆκ° λμ΄μλ€. λ§μ°μ€ μ€λ² νμλ keepalive νμ΄νμ΄ λ³΄μΈλ€. μ¬κΈ°μμ μκ°μ μ€μ ν΄μ£Όλ©΄ λλ€.
Use
-
The extension won't start automatically; a click on the icon is required to start it.
-
When the extension starts, the user has to input the desired timeout T in seconds. If by mistake the user does not insert a valid timeout (i.e. an integer greater than 59), T is set by default to 600.
-
Every T seconds, the query
SELECT SYSDATE FROM DUAL;is sent on every open connection, in order to prevent it from closing. -
To deactivate the keepalive extension, click the icon again.
Notes
- The extension has a log system, which informs the user about successful operations or errors that have occurred.
- WARNING | When the extension writes its log, the focus is gained by the log window in SQL Developer, and this might interfere with the autocomplete functionality if the user is writing a query. However, the extension is thought to be used with medium timeout settings (e.g. T=600), and we think that one click every ten minutes to bring back the focus to the active document is acceptable. FIXED IN RELEASE 1.2
- WARNING | Some user have experienced a problem after installing the extension: they lost edits (renamings and groups) they had made to their connections. This might happen to you also.