Multiplexed instances and Mirroring Controller can be started and stopped automatically in line with the starting and stopping of the operating system of the database server.
However, to stop the operating system on the primary server, it is necessary to stop the operating system on the standby server so that no unnecessary automatic switching or errors occur.
Note
To guarantee the startup sequence of Mirroring Controller on the primary and standby servers, first confirm that the primary server has started, and then start the standby servers in sequence.
You can configure the Windows service to perform automatic start and stop of Mirroring Controller.
No settings are required for Mirroring Controller to start and stop an instance.
Note
Do not configure the Windows service of a multiplexed instance to perform automatic start.
When registering Mirroring Controller to the Windows service in "8.3.1 Setting up Database Multiplexing Mode on the Primary Server" and "8.4.1 Setting up Database Multiplexing Mode on the Standby Server", specify "auto" for the -S option of the register mode used with the mc_ctl command.
Example)
> mc_ctl register -M D:\mcdir\inst1 -w -f -P ******** -S auto
Use the sc config command to change the configuration of the Windows service of Mirroring Controller.
Example) The following is an example using the registered service name "Mirroring_Controller_inst1".
> sc config "Mirroring_Controller_inst1" start= auto
See
Refer to documentation such as Windows Help and Support for the sc command for information on how to configure the service.
Information
You can check the registration status in the Windows service window or by using the sc qc command.