Home | Previous Page | Next Page   Fault Tolerance > Using High-Availability Data Replication (Enterprise/Workgroup Editions) >

Changing the Database Server Mode

To change the database server mode, use the onmode utility from the command line or ISA. For information about onmode, see the IBM Informix Dynamic Server Administrator's Reference.

Table 42 summarizes the effects of changing the mode of the primary database server.

Table 42. Mode Changes on the Primary Database Server
On the Primary On the Secondary To Restart HDR
Any mode to offline

(onmode -k)

Secondary displays:
DR: Receive error.

HDR is turned off.

The mode remains read-only.

If DRAUTO is set to 0 (OFF), the mode remains read-only.

If DRAUTO is set to 1 (RETAIN_TYPE), the secondary server switches to standard type and can accept updates. (If DRAUTO is set to 2 (REVERSE_TYPE), the secondary database server becomes a primary database server as soon as the connection ends when the old primary server fails.)

Treat it like a failure of the primary. Two different scenarios are possible, depending on what you do with the secondary database server while the primary database server is offline. See these sections for information:

to online, quiescent, or single-user

(onmode -s / onmode -u)

(onmode -j )

Secondary does not receive errors.

HDR remains on.

Mode remains read-only.

Use onmode -m on the primary.

Table 43 summarizes the effects of changing the mode of the secondary database server.

Table 43. Mode Changes on the Secondary Database Server
On the Secondary On the Primary To Restart HDR
Read-only offline

(onmode -k)

Primary displays:
DR: Receive error.

HDR is turned off.

Treat it as you would a failure of the secondary. Follow the procedures in Restarting If the Secondary Database Server Fails.

Note:
Single-user mode operates the same way on an HDR secondary database server as it does on the primary database server.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]