Configuring a Database Connection
Learn about configuring a database connection for SQL Server.
Extract and Replicat Database Connectivity
Extract and Replicat connect to a SQL Server database using a system ODBC DSN (Data Source Name) and use ODBC for its metadata queries and transactional data processing.
Creating a Database Connection on Linux
Ensure that you have installed a supported version of the Microsoft ODBC driver by following the instructions under Prerequisites for Installing Oracle GoldenGate Microservices Architecture for SQL Server.
After the ODBC driver is installed, follow the example below to create an ODBC DSN for Linux:
Configure a DSN Connection in Windows
Before creating a database connection for Oracle GoldenGate processes running on Windows, install the latest version of either Microsoft ODBC Driver 17 for SQL Server or the Microsoft ODBC Driver 18 for SQL Server.
Follow these steps to create a system DSN on the Windows server where Oracle GoldenGate is installed.
To create a SQL Server DSN:
Connecting to the Listener of a SQL Server Always On Configuration
Extract and Replicat can connect to the listener of an Always On configuration or directly to the current primary replica of the group, depending on the DSN connection used.
The advantage of creating the connection to the listener is that Extract or Replicat can reconnect to the new primary replica upon failover without having to reconfigure the DSN to the new primary.
An Extract can also be configured to route its read-only queries to an available readable, synchronous mode secondary replica. By default, if Extract connects to a listener, all processing will be done against the primary replica, but if an Extract is configured with the TRANLOGOPTIONS ALWAYSONREADONLYROUTING
parameter, its read-only queries are routed by the listener to an available readable secondary replica.
See TRANLOGOPTIONS and Requirements Summary for Capture and Delivery of Databases in an Always On Availability Group for more information.
If creating the DSN to connect to a Listener of an Always On configuration, enable the Multi-subnet failover option when creating the DSN. For Linux DSN connections, use the MultiSubnetFailover=Yes
option in the DSN entry.