This section explains the steps in redirecting clients with the connectivity information and the connectivity strategy that supports this method.
The connectivity information-redirection method relies on the fact that when an application connects to a database server, it uses the connectivity information to find that database server.
If one of the database servers in a replication pair is unusable, an administrator can change the definition of the unavailable database server in the connectivity information. As described in Changing the Connectivity Information, the fields of the unavailable database server (except for the dbservername field) are changed to point to the remaining database server in the replication pair.
Because the connectivity information is read when a CONNECT statement is issued, applications might need to restart for redirection to occur. Applications can contain code that tests whether a connection has failed and issues a reconnect statement, if necessary. If a connection has failed, redirection is automatic, and you do not need to restart applications for redirection to occur.
Applications can use the following connectivity statements to support this method of redirection:
Applications can also use the following connectivity statements, provided that the INFORMIXSERVER environment variable always remains set to the same database server name and the DBPATH environment variable is not set:
To use the connectivity information to redirect clients, you must change the connectivity information for the clients and change other connectivity files, if necessary.
For more information, refer to Configuring HDR Connectivity and Client/Server Communications.
Figure 79 shows how connectivity values might be modified to redirect clients.
You do not need to change entries in the connectivity information on either of the computers that is running the database servers.
You also must ensure that the following statements are true on the client computer before that client can reconnect to the other database server.
After the administrator changes the connectivity information and other connectivity files (if needed), clients connect to the database server to which the administrator redirects them when they issue their next CONNECT statement.
If your applications contain code that tests if a connection has failed and issues a reconnect statement if necessary, redirection is handled automatically. The user has no responsibilities. If your applications do not include such code, users who are running clients must quit and restart all applications.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]