When Control‑M/Server and Control‑M/EM share the same database server (or Oracle instance), the following actions might be required:
The BMC-supplied PostgreSQL database server can be shut down or started using the following scripts. If the cluster vendor has a certified database policy file, BMC Software recommends that you use the file.
To start the Control‑M database, use the following commands:
# Control-M/EM
EM_ACC=em800
EM_DIR=/export1/em800
su - $EM_USER -c $EM_DIR/bin/start_server
# Control-M/Server
CTM_ACC=ctm800
CTM_DIR=/export2/ctm800
su - $CTM_USER -c $CTM_DIR/ctm_server/scripts/startdb
To stop the Control‑M database, use the following commands:
# Control-M/EM
EM_ACC=em800
DBA_PASS=<emPass> # The Control-M/EM database administrator password
EM_DIR=/export1/em800
su - $EM_USER -c $EM_DIR/ctm_em/bin/stop_server << PASSEOF
$DBA_PASS
PASSEOF
exit
# Control-M/Server
CTM_USER=ctm800
CTM_DIR=/home/ctm800
CTM_PSWD=manager
# Stop CONTROL-M/Server PG Database
su - $CTM_USER -c "$CTM_DIR/ctm_server/scripts/shutdb -p$CTM_PSWD"
Parent Topic |