Server state | If this condition occurs, or if this HSB command is run... | Then server state becomes... | If command is unsuccessful, then the state is... |
---|---|---|---|
OFFLINE | If the primary server executes ADMIN COMMAND 'hotstandby netcopy' then the state of the secondary server changes to SECONDARY ALONE after the database has been copied. | SECONDARY ALONE | Unchanged |
PRIMARY ACTIVE | HotStandby timeout (automatic) when AutoPrimaryAlone=Yes. Note The HSB timeout occurs automatically when the secondary server is down or a connection between the primary and secondary server is broken. | PRIMARY ALONE | (Not applicable) |
PRIMARY ACTIVE | HotStandby timeout (automatic) when AutoPrimaryAlone=No. Note The HSB timeout occurs automatically when the secondary server is down or a connection between the primary and secondary servers is broken. | PRIMARY UNCERTAIN | (Not applicable) |
PRIMARY ACTIVE | ADMIN COMMAND 'hotstandby set standalone' on the primary server. | STANDALONE | Unchanged |
PRIMARY ACTIVE | ADMIN COMMAND 'hotstandby switch secondary' on the primary server or ADMIN COMMAND 'hotstandby switch primary' on the secondary server. | SECONDARY ACTIVE | SECONDARY ALONE |
PRIMARY ACTIVE | ADMIN COMMAND 'hotstandby disconnect' on the primary server. | PRIMARY ALONE | PRIMARY ALONE |
PRIMARY ALONE | ADMIN COMMAND 'hotstandby copy' or ADMIN COMMAND 'hotstandby netcopy' on the primary server. Note that the state of the primary server does not change. The server stays in PRIMARY ALONE state. To change the state to PRIMARY ACTIVE, you must run the following command: ADMIN COMMAND 'hotstandby connect'; Note If you are using a diskless server without file access to the secondary server, you must use the netcopy command rather than the copy command. | PRIMARY ALONE | PRIMARY ALONE |
PRIMARY ALONE | ADMIN COMMAND 'hotstandby connect' on the primary server. Note The above command is used to connect to the secondary server, which is now fixed, or a server other than the failed secondary server. | PRIMARY ACTIVE (after the catchup is completed) | Unchanged |
PRIMARY ALONE | ADMIN COMMAND 'hotstandby set standalone' on the primary server or the transaction log is full. | STANDALONE | Unchanged |
PRIMARY ALONE | ADMIN COMMAND 'hotstandby set secondary alone' or ADMIN COMMAND 'hotstandby switch secondary' on the primary server. | SECONDARY ALONE | SECONDARY ALONE |
PRIMARY UNCERTAIN | ADMIN COMMAND 'hotstandby set primary alone' on the primary server. | PRIMARY ALONE | Unchanged |
PRIMARY UNCERTAIN | ADMIN COMMAND 'hotstandby connect' on the primary server. Note The above command is used to connect to the secondary server (which is now fixed) or to connect to a server other than the failed secondary server. | PRIMARY ACTIVE | Unchanged |
PRIMARY UNCERTAIN (HSB timeout has occurred for connecting to the secondary server) | ADMIN COMMAND 'hotstandby set standalone' on the primary server. | STANDALONE | Unchanged |
PRIMARY UNCERTAIN | ADMIN COMMAND 'hotstandby set secondary alone' or ADMIN COMMAND 'hotstandby switch secondary' on the primary server. | SECONDARY ALONE | Unchanged |
SECONDARY ACTIVE | HotStandby timeout (automatic). Note The HSB timeout occurs automatically when the secondary server is down or a connection between the primary and secondary servers is broken. | SECONDARY ALONE | (not applicable) |
SECONDARY ACTIVE | ADMIN COMMAND 'hotstandby switch secondary' on the primary server or ADMIN COMMAND 'hotstandby switch primary' on the secondary server. | PRIMARY ACTIVE | Unchanged |
SECONDARY ACTIVE | ADMIN COMMAND 'hotstandby set primary alone' on the secondary server. | PRIMARY ALONE | Unchanged |
SECONDARY ACTIVE | ADMIN COMMAND 'hotstandby disconnect' on the primary or secondary server. | SECONDARY ALONE | SECONDARY ALONE |
SECONDARY ALONE | ADMIN COMMAND 'hotstandby connect' on the primary or secondary servers. | SECONDARY ACTIVE | Unchanged |
SECONDARY ALONE | ADMIN COMMAND 'hotstandby set standalone' on the secondary server. | STANDALONE | Unchanged |
SECONDARY ALONE | ADMIN COMMAND 'hotstandby set primary alone' or ADMIN COMMAND 'hotstandby switch primary' on the secondary server. | PRIMARY ALONE | Unchanged |