Starting and Stopping Dbvisit StandbyMP

Starting and Stopping Dbvisit StandbyMP

1. Linux

On Linux there are two methods of for start and stop: systemctl service and starting background process via nohup.

Choose only one method from the two for your environment, do not combine them

1.1 Systemctl Service

The advantage of having Dbvisit Standby Multiplatform components setup as systemctl services is that systemctl will automatically startup Dbvisit Standby Multiplatform components after server boot.

dbvagentmanager should be installed and running on primary and standby server, while dbvcontrol should be running either on separate host or standby server only

Directly after Installation of Dbvisit Standby Multiplatform is finished, you have the option to install systemctl service:

$ sudo /usr/dbvisit/standbymp/bin/dbvagentmanager service install --user oracle $ sudo /usr/dbvisit/standbymp/bin/dbvcontrol service install --user oracle

Dbvisit will then create new dbavgentmanager and dbvcontrol systemctl service description:

cat /etc/systemd/system/dbvagentmanager.service cat /etc/systemd/system/dbvcontrol.service

You can then use following commands to start or stop dbvagentmanager and dbvcontrol:

sudo /usr/dbvisit/standbymp/bin/dbvagentmanager service start sudo /usr/dbvisit/standbymp/bin/dbvagentmanager service stop sudo /usr/dbvisit/standbymp/bin/dbvcontrol service start sudo /usr/dbvisit/standbymp/bin/dbvcontrol service stop

It is also possible to use directly systemctl to operate dbvagentmanager and dbvcontrol:

sudo systemctl start dbvagentmanager sudo systemctl stop dbvagentmanager sudo systemctl restart dbvagentmanager sudo systemctl start dbvcontrol sudo systemctl stop dbvcontrol sudo systemctl restart dbvcontrol

For checking whether the process remains running after startup, you can use systemctl, or ps command:

sudo systemctl status dbvagentmanager sudo systemctl status dbvcontrol ps -ef | grep dbvagentmanager ps -ef | grep dbvcontrol

For uninstalling the systemctl dbvagentmanager and dbvcontrol service from Linux OS we recommend to use following commands:

sudo /usr/dbvisit/standbymp/bin/dbvagentmanager service stop sudo /usr/dbvisit/standbymp/bin/dbvagentmanager service uninstall sudo /usr/dbvisit/standbymp/bin/dbvcontrol service stop sudo /usr/dbvisit/standbymp/bin/dbvcontrol service uninstall

1.2 Background Process

Never use root user for this method.

If you don’t want to introduce additional complexity by setting up systemctl services, you can start Dbvisit Standby Multiplatform processes directly as oracle user. This is very fast method and can be used when troubleshooting. The disadvantage is that Dbvisit Standby Multiplatform processes will need to be started manually after server boot.

nohup /usr/dbvisit/standbymp/bin/dbvagentmanager service run & nohup /usr/dbvisit/standbymp/bin/dbvcontrol service run &

There’s no stop command, you have to manually search & kill the dbvagentmanager/dbvcontrol process:

$ ps -ef | grep dbvagentmanager | grep -v grep oracle 17474 3630 1 15:29 pts/0 00:00:00 /usr/dbvisit/standbymp/bin/dbvagentmanager service run $ kill 17474

2. Windows

On Windows you can easily control Dbvisit Standby Multiplatform components through services:

image-20241204-145325.png

Services are created automatically during Dbvisit Standby Multiplatform installation. It is supported to set the startup type of the services to Automatic (Delayed) if required.

3. Oracle Grid Environments

On Oracle Grid environments there are specific steps for creating and starting Dbvisit Standby Multiplatform components services via crsctl cluster resource and you must not use systemctl service nor background process.

For Oracle Grid on Linux refer to:

Oracle SEHA and RAC on Linux

For Oracle Grid on Windows refer to:

Oracle SEHA on Windows

If you have only single node with Oracle grid (for example Oracle Database Appliance server) you can decide whether to use crsctl service, systemctl service or background process - all are supported.