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.txtADD 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 NOWThe preceding command executes the
mycommands.txtfile and dispalys its content with theADDcommands.The following example displays the content of thestartcmds.txtfile.OBEY ./startcmds.txtSTART EXTRACT * INFO EXTRACT *, DETAIL START REPLICAT * INFO REPLICAT *, DETAIL