Configuring Authentication
All Oracle databases require authentication. You can configure the Simba Oracle ODBC Driver to provide your credentials and authenticate the connection to the database using one of the following methods:
You can set the connection properties described below in a connection string or in a DSN (in the odbc.ini
file). Settings in the connection string take precedence over
settings in the DSN.
Using Your Oracle Database Credentials
You can configure the connector to authenticate the connection using your database credentials.
To configure authentication using your database credentials:
- Set the
UseExternalCredentials
property tofalse
. - Set the
UID
property to your user name for accessing the Oracle database. - Set the
PWD
property to the password corresponding to the user name you typed above.
Using Kerberos
You can configure the connector to use the Kerberos protocol to authenticate the connection. The connector retrieves and uses a Kerberos ticket based on the settings in the sqlnet.ora
configuration file.
Before you can use this authentication mechanism, you must specify the necessary Kerberos settings in the sqlnet.ora
file, and set the TNS_ADMIN environment variable on your machine to point to the path of the sqlnet.ora
file. For more information, see the following:
- For information about configuring Kerberos for your Oracle database, including details about the settings required in the
sqlnet.ora
file, see "Configuring Kerberos Authentication" in the Oracle Database Security Guide: https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/configuring-kerberos-authentication.html. - For general information about the
sqlnet.ora
file, see "Parameters for the sqlnet.ora File" in the Oracle Database Net Services Reference: https://docs.oracle.com/en/database/oracle/oracle-database/19/netrf/parameters-for-the-sqlnet.ora.html.
To configure Kerberos authentication:
- Set the
UseExternalCredentials
property totrue
.