Make sure that the SQLHOSTS file is set up properly on each server participating in replication.
Enterprise Replication requires that all database servers participating in replication be members of database server groups. Each server in the enterprise must have a unique identifier; the database server group uniquely identifies a server.
If you are combining Enterprise Replication with HDR, both the primary and secondary HDR servers must be members of the same database server group. For more information, see Managing Enterprise Replication with High-Availability Data Replication.
Typically, a server group includes only one database server. However, if the computer has multiple network protocols or network interface cards, the server group includes all aliases for the database server. Enterprise Replication treats the server group as one object, whether it includes one or several database server names.
All Enterprise Replication commands and options use the name of the database server group of the more familiar database server name (that is, the name specified by the INFORMIXSERVER environment variable) for all references to database servers. The exception is the --connect option, which can use both server name or group name. This manual also refers to a database server group as a server group.
This manual uses the convention that the name of a database server group is g_ followed by the name of a database server that is in the group. This use of g_ is only a convention; g_ is not required syntax.
On UNIX, a database server group is defined in the sqlhosts file. The following example shows a very simple sqlhosts file for four Enterprise Replication servers, john, paul, george, and ringo and their database server groups. The first line describes the database server group g_john, which includes the database server john, and so on.
dbservername | nettype | hostname | servicename | options |
---|---|---|---|---|
g_john john g_paul paul g_george george g_ringo ringo |
group ontlitcp group ontlitcp group ontlitcp group ontlitcp |
- sydney.australia.com - melbourne.australia.com - perth.australia.com - brisbane.australia.com |
- 10110 - 2939 - 5329 - 10101 |
i=143 g=g_john i=144 g=g_paul i=145 g=g_george i=146 g=g_ringo |
The following table describes the fields in the sqlhosts example above.
For an example of an SQLHOSTS file when combining Enterprise Replication and High-Availability Data Replication, see Managing Enterprise Replication with High-Availability Data Replication.
For more information about database server groups and setting up SQLHOSTS, see the chapter on client/server communications in the IBM Informix Dynamic Server Administrator's Guide.
For information about preparing the SQLHOSTS connectivity information on Windows, see Appendix F. SQLHOSTS Registry Key (Windows).
For hierarchical routing (HR) topologies:
Root and nonroot servers contain the complete global catalog; leaf servers do not. For more information, see HR Topology Terminology and Global Catalog.
Client/server network communication is encrypted by specifying the ENCCSM module with the communications support module (CSM) option in the SQLHOSTS file. However, Enterprise Replication can only be encrypted by setting encryption configuration parameters. The ENCRYPT_CDR configuration parameter must be set to 1 or 2 to allow encryption.
To combine client/server network encryption with Enterprise Replication encryption, configure two network connections for each database server. The configuration in the SQLHOSTS file would look like the following example.
dbservername | nettype | hostname | servicename | options |
---|---|---|---|---|
g_group1 cdr1 serv1 |
group ontlitcp ontlitcp |
- texpdx texpdx |
- mp.cdr1 mp.serv1 |
i=1 g=g_group1 csm=(ENCCSM) |
In this example, cdr1 and serv1 are two connection ports on the same database server. Encrypted client/server communications uses the serv1 port, while encrypted Enterprise Replication uses the cdr1 port.
For more information on encrypting client/server network communications, see the IBM Informix Dynamic Server Administrator's Guide.
For more information on encrypting Enterprise Replication, see Setting Configuration Parameters and Appendix B. Configuration Parameter and Environment Variable Reference.
If you are using the connection security option, s=6, your SQLHOSTS file must contain a regular connection (without s=6) within the same group. To do this, you can add an alias server definition that includes the server group name. For example:
g_serv1 group - - i=10 serv1 ontlitcp lxsun02 ertest1 g=g_serv1, s=6 a_serv1 ontlitcp lxsun02 ertest10 g=g_serv1
For more information about the connection security option, see the IBM Informix Administrator's Guide.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]