service_start_stop.ksh

This script is launched every time the system goes up or down (if integrated into the boot sequence).

Basically it works with a configuration which contains all commands/scripts to start or stop.

  • Copy the conf. template

cp ${DMK_HOME}/templates/etc/service_start_stop.conf \\
${DMK_HOME}/etc
  • Example of configuration

[START]
listener.ksh start
database.ksh start
#dgobserver.ksh start <ORACLE_SID>
#emctlagent.ksh start <ORACLE_SID>
#emctlgrid.ksh start <ORACLE_SID>
#goldengate.ksh start <ORACLE_SID>
[STOP]
listener.ksh stop
database.ksh stop
#dgobserver.ksh stop <ORACLE_SID>
#emctlagent.ksh stop <ORACLE_SID>
#emctlgrid.ksh stop <ORACLE_SID>
#goldengate.ksh stop <ORACLE_SID>
  • Change permissions of shell-script

Syntax

Last updated