9.2 Start and Stop a Target

You can use the start, stop, or kill the Extract or Replicat targets, for which the credentials have been set.

To start, stop, or kill the targets:
  1. Go to the OGG Home page.
    (Optional) Enter the result of the step here.
  2. Select either the Extract or Replicat Process.
  3. Click one of the following: Start, Stop, or Kill.

9.2.1 EMCLI Commands on Oracle GoldenGate Targets

The gg_execute Verb is used to execute commands on the Oracle GoldenGate Classic as well as Microservices targets.

Syntax

emcli gg_execute -command="<name of the command>"
-target_type="<type of the target>" 
-target_name="<name of the target>"
-options=""
Explanation of the Command
  • command : Valid values are start, stop, or kill. Based on the command passed, appropriate action is taken on the process.
  • target_type: Valid values are either of the following: oracle_goldengate_extract or oracle_goldengate_replicat.
  • target_name : Fully qualified name of the process or target as shown in the following example:
  • options : It is an optional argument. Currently, valid for START command. For example, -options="ATCSN 12456"

Note:

Before you execute this command, ensure that the preferred credential is already set (either using the UI or the EMCLI, else an error gets displayed when the gg_execute command is executed.

Example

emcli gg_execute -command="start" -target_type="oracle_goldengate_extract" -target_name="extract:hostname:port:EOBEY"