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.
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.
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. |