[PSM] - Oracle SQL Developer Connection Fails with General Error or Hangs on "Confirm Import Preferences" Pop-Up
Symptom
When attempting to connect to a database via PSM using Oracle SQL Developer:
Scenario 1 (General Error / Dispatcher Timeout):
The session fails to open and displays a "General Error" dialog in PVWA, or PSM trace logs record a dispatcher timeout while waiting for the Oracle SQL Developer main window.
Scenario 2 (Pop-Up Freeze):
The RemoteApp session opens, but Oracle SQL Developer hangs on an interactive prompt asking:
"Confirm Import Preferences: Would you like to import preferences from a previous SQL Developer installation?" or a "Usage Tracking" consent dialog.
Environment
14.2;14.6;15.0;14.7;14.8;15.2 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Privileged Session Management (PSM);Privilege Cloud PSM
- Products: Privileged Access Manager (PAM, self-hosted), Privilege Cloud
- Components: Privileged Session Manager (PSM), PSM Shadow User Profiles
- Application: Oracle SQL Developer
- Connection Component: PSM-OracleSQLDeveloper (or custom database connectors)
- Affected Versions: PAM v10.x, v11.x, v12.x, v13.x, v14.x
Cause
When a user connects through PSM, a local temporary Windows profile (PSM Shadow User) is generated.
Oracle SQL Developer detects a new profile and attempts to display initial setup dialogs. Because the PSM dispatcher script expects the main application window to load immediately, these unhandled pop-up dialogs prevent the automation script from completing the login sequence.
Resolution
To resolve this issue, configure the preference suppression files in the Windows 'Default' user profile so all newly generated Shadow User profiles inherit the configuration automatically:
Step 1: Generate Preference Files on the PSM Server
1. Establish a direct RDP connection to the PSM server using an Administrator account.
2. Launch Oracle SQL Developer directly on the PSM server.
3. When prompted with "Confirm Import Preferences", click "No".
4. If prompted with a "Usage Tracking" dialog, uncheck the box and click "OK".
5. Close Oracle SQL Developer.
Step 2: Copy Preference Configuration to the Default User Profile
1. Open File Explorer and navigate to your admin profile's Roaming directory:
C:\Users\<YourAdminUser>\AppData\Roaming\SQL Developer\
2. Locate the system configuration folder (e.g., `system<version>`, such as `system23.1.1.3452114`).
3. Copy the following file(s) to the identical path within the Windows Default User profile:
- File: `runStatus.xml`
From: `C:\Users\<YourAdminUser>\AppData\Roaming\SQL Developer\system<version>\o.ide.<xxxxx>\runStatus.xml`
To: `C:\Users\Default\AppData\Roaming\SQL Developer\system<version>\o.ide.<xxxxx>\runStatus.xml`
- File: `product-preferences.xml` (if present)
From: `C:\Users\<YourAdminUser>\AppData\Roaming\SQL Developer\system<version>\o.sqldeveloper\product-preferences.xml`
To: `C:\Users\Default\AppData\Roaming\SQL Developer\system<version>\o.sqldeveloper\product-preferences.xml`
(Note: If any of these destination sub-folders do not exist under `C:\Users\Default\`, create them manually).
Step 3: Clean Up Existing PSM Shadow User Profiles
Existing Shadow User profiles that have already cached the prompt must be removed so new profiles are generated using the updated Default profile:
1. Run the PSMChecker tool on the PSM server (Refer to the PSMChecker Tool User Guide: https://community.cyberark.com/s/article/PSMChecker-Tool-User-Guide).
2. Run `PSMChecker.exe`, navigate to the Shadow Users menu, and select the option to perform "Shadow Users Cleanup".
(Alternatively, manually delete cached PSM Shadow User profiles from `C:\Users\`).
Step 4: Verify the Connection
1. Launch the connection via PVWA.
2. The new Shadow User profile will inherit the preference files from `C:\Users\Default\`, suppressing all initial pop-ups and allowing Oracle SQL Developer to launch seamlessly.