Connecting Using a Directory Server (LDAP)

If your database is in the Oracle Cloud go to Connecting to Oracle Autonomous Database (ADB). For additional help using the connection dialog, visit the connection dialog help.

Connections using a directory server (LDAP) are now supported on all platforms (Windows, MacOS, and Linux).

  1. 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.

  2. 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.

  3. To connect from Oracle Database Explorer, click the plus sign button

  4. A connection dialog will open. In the Connection Type dropdown, select LDAP Directory Server

  5. 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.

  6. In the TNS Alias field, type in the database service name.

  7. Select the database role from the Role drop down list

  8. Enter the username and password

  9. If you are using Proxy Authentication, check the Show more options checkbox and provide the proxy username and password. To guide you in entering the fields, note that in other tools, you may have connected using this format:

    proxyusername[username]/[proxypassword]

    Note:

    For more details about connecting with a proxy, see Connecting Using a Proxy User.

  10. 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

  11. Provide a connection name to be used to reference this connection in Database Explorer and elsewhere

  12. Click the Create Connection button

Note:

Connection information and settings may be stored with a User, Workspace, or Folder Scope. For more information, see Organizing Connections by User, Workspace, or Folder Scope.