Creating a Database Connection on Linux
Before creating a database connection for Oracle GoldenGate processes running on Linux, install the latest version of Microsoft ODBC driver for SQL Server (Linux).
Select the following link for download and installation steps:
For the installation, choose the steps listed under Red Hat Enterprise Linux and Oracle.
After the ODBC software is installed, follow the example below to create
an ODBC DSN for Linux:
-
Create a template file for your data source(s):
vi odbc_template_file.ini
-
Describe the data source in the template file. Multiple unique DSN entries can be listed in the template file, if needed.
In the following example,mydsn_2019_source
is the DSN name, which will be used withDBLOGIN
andSOURCEDB
orTARGETDB
to connect to the Extract or Replicat to the database.[mydsn_2019_source] Driver = ODBC Driver 18 for SQL Server Server = myserver,1433 Database = source_database TrustServerCertificate=YES
-
Install the data source using the following command.
odbcinst -i -s -f odbc_template_file.ini
This command adds the DSN to the system
odbc.ini
file. For more information, select the following link: