SQL Developer Preferences Getting Lost After Restarting

(Doc ID 2328148.1)

Last updated on NOVEMBER 14, 2017

Applies to:

Oracle SQL Developer - Version 17.3.1 and later
Information in this document applies to any platform.

Symptoms

Changing SQL Developer preferences at runtime are not getting saved.
Re-starting SQL Developer showing default preferences.

Some Examples:
1) Preferences > Code Editor > Format > Advanced Format > Under the Line Breaks section: "On procedure arguments".


2) Preferences > Code Editor > Format > Advanced Format > Under the Line Breaks section: "On ANSI".


3) Preferences > Code Editor > Format > Advanced Format > Under the Indentation section: "Indent spaces".

Steps to reproduce

1) Download and extract SQL Developer into a folder location like the following one. (Has to be a large folder name)

C:\oracle\sqldeveloper1731

 

2) After extracting, structure is like this:

C:\oracle\sqldeveloper1731\sqldeveloper-17.3.1.279.0537-x64\sqldeveloper

 

3) Create a custom folder to hold application settings:

C:\oracle\sqldeveloper1731\sqldeveloper-17.3.1.279.0537-x64\sqldeveloper\xxCustom\settings

 

4) To make it portable add the following line to the bottom of configuration file to point to step 3 folder:

C:\oracle\sqldeveloper1731\sqldeveloper-17.3.1.279.0537-x64\sqldeveloper\ide\bin\jdk.conf file

AddVMOption -Dide.user.dir=../../xxCustom/settings

 

5. Run sqldeveloper.exe:

C:\oracle\sqldeveloper1731\sqldeveloper-17.3.1.279.0537-x64\sqldeveloper\sqldeveloper.exe

 

6. You will see the application settings now get stored here:

../../xxCustom/settings

 

7. Go in and update the formatter settings, save, close out of sqldeveloper, open again, go back into the formatter settings and you will see they get reset to the defaults.

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms