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
.
Syntax
OBEY file_name
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 theADD
commands.The following example displays the content of thestartcmds.txt
file.OBEY ./startcmds.txt
START EXTRACT * INFO EXTRACT *, DETAIL START REPLICAT * INFO REPLICAT *, DETAIL