My Oracle Support Banner

SQL Developer Preferences Getting Lost After Restarting (Doc ID 2328148.1)

Last updated on FEBRUARY 25, 2021

Applies to:

Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
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.

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.