OBEY

Use OBEY to process a file that contains a list of Oracle GoldenGate commands. OBEY is useful for executing commands that are frequently used in sequence.

You can call one OBEY file from another one. This is called a nested OBEY file. You can nest up to 16 OBEY files. To use nested OBEY files, you must enable the functionality by first issuing the ALLOWNESTED command, see [ALLOWNESTED](allownested.html#GUID-088EE985-204C-40AE-A2FD-5FDE32759450).

Syntax

OBEY *file_name*

file_name

The relative or fully qualified path name of the file that contains the list of commands.

Examples


OBEY ./mycommands.txt
ADD EXTRACT exte, TRANLOG, BEGIN NOW
add exttrail east/ea, EXTRACT exte
ADD EXTRACT extw, TRANLOG, BEGIN NOW
ADD EXTRACT west/ew, EXTRACT extw
ADD REPLICAT repe, EXTTRAIL east/ea, BEGIN NOW
ADD REPLICAT repw, EXTTRAIL west/ew, BEGIN NOW

The preceding command executes the mycommands.txt file and dispalys its content with the ADD commands.

The following example displays the content of the startcmds.txt file.

OBEY ./startcmds.txt
START EXTRACT *
INFO EXTRACT *, DETAIL
START REPLICAT *
INFO REPLICAT *, DETAIL