Skip to content

Oracle authentication

Configure an Oracle connection with Basic, Transparent Network Substrate (TNS), or Custom settings. Then choose the authentication method required by your environment.

Oracle connection types

Use this section to configure how DBeaver connects to Oracle. Follow the procedure for your connection method.

Basic connection type

Use Basic to connect directly to an Oracle host.

  1. Select Basic in the connection settings.
  2. Enter Host, Port, and Database, then select Service/SID.
Parameter Description Example
Host Server host name 192.168.1.25
Port Server listener port 1521
Database Service or system identifier (SID) name ORCL
Service/SID Database identifier type required by the server SID
Authentication Authentication method for the connection; see Choose an authentication method

For a service, DBeaver uses jdbc:oracle:thin:@//host:port/service. For a SID, it uses jdbc:oracle:thin:@host:port:SID.

TNS connection type

Use TNS when you have a tnsnames.ora file that defines Oracle network aliases.

  1. Select TNS in the connection settings.
  2. Configure the TNS settings.
Parameter Description
TNS names path Path to tnsnames.ora; DBeaver loads the available aliases from this file
Network Alias Alias that identifies the database connection
Authentication Authentication method for the connection; see Choose an authentication method

DBeaver can detect the default tnsnames.ora location. You can also specify the path manually.

Custom connection type

Use Custom when you need to provide the complete Java Database Connectivity (JDBC) URL.

  1. Select Custom in the connection settings.
  2. Configure the Custom settings.
Parameter Description
JDBC URL Template Complete JDBC URL for the connection
Authentication Authentication method for the connection; see Choose an authentication method

Connect to Oracle Autonomous Database with a Custom URL

Use this workflow to connect to Oracle Autonomous AI Database Serverless with JDBC Thin TLS without a wallet.

  1. Configure network access for the database endpoint. You can allow secure access from everywhere, use access control rules for IP addresses or CIDR blocks, configure VCN rules, or use a private endpoint. For information on access control rules, see Configure access control lists.
  2. In the Oracle Cloud console, open Database connection -> TLS Authentication -> TLS, and copy the connection string.
  3. In DBeaver, select Custom, and enter the complete connection string in JDBC URL Template.

For information on this connection method, see Connect JDBC Thin with TLS authentication without a wallet. For an overview of JDBC Thin connection options, see Connect with JDBC Thin.

Example

Oracle Cloud URL:

jdbc:oracle:thin:@(description=(retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1522)(host=adb.us-ashburn-1.oraclecloud.com))(connect_data=(service_name=xxxxxxxxxxxxxxxxx_high.adb.us-ashburn-1.oraclecloud.com))(security=(ssl_server_cert_dn="CN=adwc.uscom-east-1.oraclecloud.com, OU=Oracle BMCS US, O=Oracle Corporation, L=Redwood City, ST=California, C=US")))

Info

For information on connections that use the Oracle Call Interface (OCI) driver, see Connect with the JDBC OCI driver.

LDAP connection type

Use the LDAP connection type to connect to Oracle through a manually configured LDAP directory entry. DBeaver uses the entry to retrieve the Oracle connection descriptor.

To configure an LDAP connection:

  1. Select LDAP as the connection type.
  2. Enter the directory and authentication settings in the following table:
Parameter Description
LDAP server Required LDAP server host name
Port LDAP server port, default 389
Network Service Alias Required Oracle service alias stored in LDAP
Oracle context Required LDAP context containing the Oracle service entry
LDAP principal Optional LDAP directory principal
LDAP password Optional password for the LDAP principal
Database authentication (optional) Optional Oracle database credentials and wallet settings
Username Optional Oracle database username
Role Optional database role: Normal, SYSDBA, or SYSOPER
Password Optional Oracle database user password
Save password Option to save the database password
Wallet location Optional Oracle wallet directory
Wallet password Optional Oracle wallet password
  1. DBeaver automatically retrieves the Oracle connection details from LDAP.

Authenticate with Microsoft Entra ID

When the LDAP configuration uses Microsoft Entra ID interactive authentication, DBeaver opens the Entra settings and automatically fills Tenant ID, Client ID, and Scope. Review the populated settings, and continue authentication.

Troubleshoot LDAP and Microsoft Entra ID
  • Can not extract wallet archive: The wallet archive is invalid, can't be extracted, or can't be stored. Select a valid wallet archive and verify that DBeaver can write to its credential or certificate storage location.
  • Can't continue from the Microsoft Entra ID settings: Tenant ID or Client ID is empty, or Client secret is empty when Client secret authentication is selected. Enter Tenant ID and Client ID, and also Client secret when using Client secret authentication.

Choose an authentication method

Username/password

Enter the Oracle database credentials and role.

Parameter Description Example
User name Database user name SYS
Password Database user password
Role Connection role, such as Normal, SYSDBA, or SYSOPER Normal
Save password Saves the credentials in the local DBeaver configuration

OS authentication

Configure Oracle and Oracle Client before selecting OS authentication in DBeaver.

  1. Create or map the OS account to an externally identified Oracle database user. Oracle prepends the OS_AUTHENT_PREFIX value to the OS username during mapping. For information on configuring users and name mapping, see Operating System Authentication of Users.
  2. Install and configure Oracle Client for the passwordless external authentication path through the OCI driver. For information on Oracle JDBC requirements, see JDBC Client-Side Security Features.
  3. Configure the JDBC OCI driver in DBeaver.

    Note

    Remote OS authentication over TCP is disabled by default and requires Oracle-side configuration by an administrator.

    For information on configuring the OCI driver in DBeaver, see Connect to Oracle Database using the JDBC OCI driver.

  4. Select OS authentication and leave the username and password empty. DBeaver uses the current OS user.

Kerberos

For information on Kerberos authentication, see Kerberos authentication.

Microsoft Entra ID

For information on direct Microsoft Entra ID authentication, see Authentication with Microsoft Entra ID.

Oracle Wallet

Oracle Wallet stores security keys and can also contain database credentials or TNS configuration.

  1. Extract the wallet archive to a local folder.
  2. Select Oracle Wallet as the authentication method.
  3. Enter the folder in Wallet location.
  4. Enter Wallet password if the wallet is password-protected.
  5. Enter the database user name, password, and role if the wallet doesn't contain database credentials.

Connect to Oracle Autonomous Database with a wallet

Use this mutual TLS workflow to connect to Oracle Autonomous AI Database Serverless. TNS reads the connection alias from the wallet's tnsnames.ora file, while Wallet location supplies the wallet files.

  1. Download the wallet from Oracle Cloud.
  2. Extract the archive to a local folder.
  3. Select TNS as the connection type.
  4. Set TNS names path to the tnsnames.ora file in the extracted wallet folder.
  5. Select the required Network Alias.
  6. Select Oracle Wallet as the authentication method, as described in the parent section, and enter the database user name and password.
  7. Set Wallet location to the extracted wallet folder.