2.67 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 fin, tranlog, begin now add exttrail ggs/var/lib/data/aa, extract fin add extract hr, tranlog, begin now add exttrail ggs/var/lib/data/bb, extract hr add replicat fin2, exttrail ggs/var/lib/data/aa, begin now add replicat hr2, exttrail ggs/var/lib/data/bb, 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.txtadd extract fin, tranlog, begin now add exttrail dirdat/aa, extract fin add extract hr, tranlog, begin now add exttrail dirdat/bb, extract hr start extract * info extract *, detail
Parent topic: Common Command Line Interface Commands