Oracle Goldengate OBEY参数用法

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:574

Oracle Goldengate OBEY用法

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 page 88.
Syntax OBEY
Example 1 obey ./mycommands.txt
The preceding command executes a file that might look something like this:
add extract fin, tranlog, begin now
add exttrail ggs/dirdat/aa, extract fin
add extract hr, tranlog, begin now
add exttrail ggs/dirdat/bb, extract hr
start extract *
info extract *, detail

Example 2
The following illustrates a nested OBEY file. Assume an OBEY file named addcmds.txt. Inside
this file, there is another OBEY command that calls the OBEY file named startcmds.txt, which
executes another set of commands.
obey ./addcmds.txt
Argument Description
COUNT Restricts the list to a specified number of the most recent markers.
Argument Description
The fully qualified name of the file that contains the list of commands.
GGSCI Commands
SHELL
Oracle GoldenGate Windows and UNIX Reference Guide 93
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
(This executes the following:)
add extract fin, tranlog, begin now
add exttrail ggs/dirdat/aa, extract fin
add extract hr, tranlog, begin now
add exttrail ggs/dirdat/bb, extract hr
add replicat fin2, exttrail ggs/dirdat/aa, begin now
add replicat hr2, exttrail ggs/dirdat/bb, begin now
obey ./startcmds.txt
(The nested startcmds.txt file executes the following:)
start extract *
info extract *, detail
start replicat *
info replicat *, detail

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】