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.txt
add 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 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
add 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