Configuring connection management
To configure connection management, you must install software, set environments and connectivity information, create Connection Manager configuration files, and run the oncmsm utility.
To configure and start connection management, complete the
following steps:
- Install at least one Connection Manager as part of the IBM®
Informix® Client Software Development Kit (Client
SDK) installation.
- If Connection Managers are installed on hosts where database servers are not installed, set each Connection Manager's host INFORMIXDIR environment variable to the directory the Connection Manager is installed into.
- Modify connectivity information in the sqlhosts files
that are on all client, database server, and Connection Manager hosts.
- If sqlhosts files are in host directories other than $INFORMIXDIR/etc, set host INFORMIXSQLHOSTS environment variables to the appropriate sqlhosts file location.
- If Connection Managers or clients are installed on hosts where database servers are not installed, create a sqlhosts file on each host, and then set each Connection Manager's or client's host INFORMIXSQLHOSTS environment variable to the location of the sqlhosts file.
- If Connection Managers, application servers, or database servers
are on an untrusted network, complete the following steps:
- Create a password file.
- Encrypt the password file by running the onpassword utility.
- Distribute the password file to the database servers that Connection Managers connect to. If the database servers are on other operating systems, distribute the unencrypted password file, and then encrypt it on the other operating systems.
- On Connection Manager hosts, create a configuration file
for each installed Connection Manager.
- If the configuration file is in a directory other than $INFORMIXDIR/etc, set the CMCONFIG environment variable to specify the file's location.
- If you define a service-level agreement that uses a transaction-latency or apply-failure redirection policy, start quality of data (QOD) monitoring by running the cdr define qod and cdr start qod commands.
- Set onconfig parameters on the cluster
database servers.
- If Connection Managers control failover for a high-availability cluster, set the DRAUTO configuration parameter to 3 on all managed cluster database servers, and set the HA_FOC_ORDER configuration parameter on the primary server of each cluster to a failover order.
- On each database server that uses multiple ports, set the DBSERVERALIASES configuration parameter to the alias names listed in Connection Manager and database server sqlhosts file entries.
- Optional: Configure the cmalarmprogram script that is installed with Connection Managers.
- Run the oncmsm utility to start Connection Managers.
- Creating Connection Manager configuration files
- Configuring environments and setting configuration parameters for connection management
Before you start a Connection Manager, you must configure its environment. - Defining sqlhosts information for connection management
You must define sqlhosts network-connectivity information for client applications that connect to Connection Managers, Connection Managers that connect to database servers, and database servers that are part of a Connection Manager connection unit. - Creating a password file for connecting to database servers on untrusted networks
If a client, Connection Manager, or any of the database servers that a Connection Manager connects to are on an untrusted network, you can create encrypted password files to verify connection requests. - Starting Connection Managers on UNIX and Linux
Use the oncmsm utility to start a Connection Manager. - Starting Connection Managers on Windows
Use the oncmsm utility to start a Connection Manager. - Stopping connection management
When you no longer want a Connection Manager to manage connection units, run the oncmsm utility to stop the Connection Manager instance.
Parent topic: Connection management through the Connection Manager
Related concepts: