Adding an instance of the CDC Replication Engine for MySQL Source (Windows)
Before you can start replication, you must add and configure an instance.
Procedure
- If you are configuring the first instance of the CDC Replication Engine for MySQL Source after installation, you can proceed to Step 3 of this procedure.
-
At the command prompt, launch the configuration tool by issuing the
following command in the specified directory:
\<CDC Replication installation directory>\bin\dmconfigurets.exe - At the welcome message, click OK to continue.
-
On the IBM® Data Replication New Instance dialog box, you can
configure the following options in the Instance area:
Option Description Name Enter a name for your CDC Replication instance. This name must be unique. Server Port Enter the port number which CDC Replication uses for communication with client workstations running Management Console and other servers. Note: This port number cannot be used by other applications installed on the same server. You will use this port number when specifying access parameters for your datastore in the Access Manager perspective in Management Console. CDC Replication displays a default TCP/IP port of . For more information, see your Management Console documentation.Staging Store Disk Quota (GB) Enter the maximum amount of disk space that will be utilized by the CDC Replication staging store on your source system. The default value is 100 GB. Specify 1 GB if you are creating an instance that will be used as a target of replication. This reduces the disk resources that CDC Replication requires on your target system.
Maximum Memory Allowed (MB) Enter the amount of physically available RAM that you want to allocate for this instance of CDC Replication. By default, the configuration tool allocates 1024 MB of RAM for each instance. Note: Using values other than the defaults or allocating more RAM than is physically available on your server should only be undertaken after considering the impacts on product performance.Encryption profile Select the encryption profile from the list. If you would like to enable TLS for communication between source and target, you must select an encryption profile with encryption enabled. Click Manage to view and manage the available encryption profiles. Encryption profiles can be shared between multiple instances of CDC Replication. -
In the Windows Service area, you can specify
the account that will be used to start CDC Replication services. Select one of the following
options:
Option Description Local System account Start the CDC Replication services through the local system administrator account. This account Start CDC Replication services through the specified user account. The account must be specified in the format
<domain>\<user name>, where <domain> is the name of a domain in your environment, and <user name> is a valid login user name in the specified domain. If your computer is not part of a domain, you can specify<computer name>\<user name>.In the Password and Confirm Password boxes, enter the password currently associated with the selected Windows user account. If you change the password for the Windows user account after installing CDC Replication, you will have to use the Windows Services dialog to change the password currently set for each CDC Replication service.
-
In the Database area you can configure access to the database that
contains the tables for replication. To complete this step you need system administrator privileges.
You can then add a datastore in the Access Manager perspective in Management Console and provide
users access to this database. For more information, see your Management Console documentation. You
can choose MySQL Community Edition or MySQL Enterprise Edition:
- Community Edition
- First click the Do you wish to configure with MySQL Community Edition
check box, then fill in these values:
- JDBC Drivers: File path where the MySQL JDBC jar file is located.
- JDBC Classname: Class name for the JDBC driver.
- URL: The JDBC connection URL. For
example:
jdbc:mysql://hostname:db_port/db_name?serverTimezone=UTC - External Secret Store Java User Exit: Select this option to get database
credentials from an external secret store.
- External Secret Store Java User exit class name: Enter the Java class name of the user exit.
- Username: Enter the user name or user name key from the external secret store to access the database.
- Password: Enter a valid password for the user name or password key from the external secret store.
- Username: The user name to access the database.
- Password: A valid password for the user name.
- MySQL Binary Log Pattern: The pattern with which the binary log file name starts.
- MySQL Binary Log Path (in the Archive Log Directory area): The path where MySQL binary logs are stored for CDC Replication to read.
- Enterprise Edition
-
- Host: The machine IP address or fully qualified name where MySQL is running.
- Name: The MySQL database name.
- Port: The port number to connect to MySQL.
- External Secret Store Java User Exit: Select this option to get database
credentials from an external secret store.
- External Secret Store Java User exit class name: Enter the Java class name of the user exit.
- Username: Enter the user name or user name key from the external secret store to access the database.
- Password: Enter a valid password for the user name or password key from the external secret store.
- Username: The user name to access the database.
- Password: A valid password for the user name.
- MySQL Binary Log Pattern: The pattern with which the binary log file name starts.
- MySQL Binary Log Path (in the Archive Log Directory area): The path where MySQL binary logs are stored for CDC Replication to read.
- Optional:
If you want to use a JMS provider as the method of communication between datastores, perform
the following steps. Otherwise TCP/IP will be used exclusively as the communications protocol.
A JMS provider should be used when characteristics of your network prevent the existence of a long term, stable TCP/IP connection.
- Ensure that a queue has been created by your system administrator and is named correctly. Each CDC Replication instance that is to use a JMS message provider must have a queue named in the format CDC_<port>, where <port> is the five digit TCP listening port number of the instance (you can left pad the number with zeroes if necessary, to ensure five digits).
- Click the Communications Protocol tab.
- Select JMS or TCP/IP.
- Click Add.
- Select the required JMS Provider .jar files.
- Click Add Connection.
- Enter a remote factory name. A connection factory encapsulates a set of connection configuration parameters that has been defined by an administrator.
-
Enter a user name and password for JMS server authentication.
This user name is defined by your JMS provider. Contact your system administrator for more information.
- Click the JNDI Server tab.
- Enter the constant that holds the local or remote connection factory name in the JNDI Initial Context box. Java™ Naming and Directory Interface (JNDI) is a programming interface from Oracle for connecting Java programs to naming and directory services.
- Enter the URL that is relative to the JNDI initial context in the JNDI URL box. In JNDI, all naming and directory operations are performed relative to a context. Therefore the JNDI defines an initial context that serves as a starting point for naming and directory operations. This value should be the fully-qualified class name of the factory class that will create the initial context.
- If the JNDI server to which you want to connect requires authentication, then you need to provide the user name and password to connect to that system. Contact your system administrator for information about the user name that you should specify.
- Click OK to save the connection.
-
Click Test if you want to verify the connection.
If the JMS Provider is not configured correctly, CDC Replication will use TCP/IP as the communication protocol between datastores.
- Click OK.
- Click OK to save your configuration settings for the CDC Replication instance.
- If CDC Replication has detected an unsupported encoding, a
dialog will open asking you to select an alternate encoding from a list.
You can filter the list of alternate encodings by clicking one of the following buttons:
- Closest match—Displays the alternated encodings that are the closest match to the data.
- Comparable encodings byte length—Displays the alternate encodings in order of byte length.
- All–Displays all alternate encodings.
Select an encoding from the list and click OK.
If you click Cancel, an error message will be displayed and the instance will not be created.