Skip to Main Content

Oracle Developer Tools 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.

How to declare a Oracle connexion using OID ?

BobMilliApr 26 2022

Hello community,
We're getting rid of TNS and I was wondering how I should change my connexions declaration in the Oracle Extension for VSCode.
Thanks for your help.
Regards,
Bob

This post has been answered by BobMilli on Apr 27 2022
Jump to Answer

Comments

Hi Bob,
Are you using LDAP? If so, here is an excerpt from the quickstart:

Connections using a directory server (LDAP) are now supported on all platforms (Windows, MacOS, and Linux).
Copy the LDAP.ORA and SQLNET.ORA files that you want to use into the directory that is set as Config Files Folder in the Oracle Developer Tools for VS Code Extension Settings, or change this setting as desired. By default this location is ~/Oracle/network/admin on Linux and Mac and %USERPROFILE%\Oracle\network\admin on Windows.
To connect to Oracle Database from a .SQL or .PL/SQL file, press F1 to open Command Palette and select Oracle:Connect from the dropdown. Then select New Connection.
To connect from Oracle Database Explorer, click the plus sign button
A connection dialog will open. In the Connection Type dropdown, select TNS Alias
Make sure the TNS Admin Location field is set to the directory where your LDAP.ORA and SQLNET.ORA files are located. If not, change it.
In the TNS Alias field, type in the database service name.
Select the database role from the Role drop down list
Enter the username and password
If you are using Proxy Authentication, check the Show more options checkbox and provide the proxy username and password
If you wish to use a different schema than the default schema associated with your username, check the Show more options checkbox and select the schema name from the Current Schema dropdown
Provide a connection name to be used to reference this connection in Database Explorer and elsewhere
Click the Create Connection button

BobMilli
Answer

Thanks a lot Christian !
I should have RTFM better :-)
It works like a charm.
Bob

Marked as Answer by BobMilli · Apr 27 2022

Glad to hear, Bob! Our Connection Dialog UI for an LDAP connection is not exactly intuitive, and we hope to change it in a coming release.

1 - 3

Post Details

Added on Apr 26 2022
3 comments
209 views