Skip to Main Content

SQL Developer for VS Code

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

login.sql not being run on new connection

Doug A. GaultJun 13 2024

Version 24.1.1

It seems that the login.sql that I have referenced in the extensions settings for SQL-DEVELOPER isn't being run.

I have tried:

  • Uninstalling / reinstalling the extension
  • Relative and direct paths for the login.sql (~/Oracle/login.sql vs /Users/dgault/Oracle/login.sql)
  • deleting and recreating the login.sql itself.
  • moving the login.sql to a new location.

Turning on TRACE level diagnostics doesn't make things any clearer. I see that the connection references the startupScript but it seems not to execute it.

Below is the login.sql script and the (elided) output from the log:

set define '^'
set serveroutput on size unlimited
set timing on 
set pagesize 99
set linesize 132
{
"definition": {
"type": "ORACLE_BASIC",
"name": "[PUR-DEV]MY_USERNAME 🏠",
"host": "my.local.server",
"port": 1521,
"serviceName": "my_service_name",
"userName": "MY_USERNAME",
"userPassword": {
"valueType": "******",
"content": "******"
},
"links": [
{
"rel": "self",
"href": "http://localhost:52566/20221610/databases/connections/definitions/ZJ9y7sVpMlNAGzIW1wiW7Q"
}
]
},
"startupScript": "/Users/dgault/login.sql"
}
[6/13/2024, 8:24:03 AM] [DBToolsServerApp(65463)] [DEBUG] startupScript output:
[6/13/2024, 8:24:03 AM] [DBToolsServerApp(65463)] [DEBUG] HTTP/1.1 201 Created
This post has been answered by thatJeffSmith-Oracle on Jun 13 2024
Jump to Answer
Comments
Post Details
Added on Jun 13 2024
1 comment
78 views