Storing and Calling Frequently Used Command Sequences
You can automate a frequently-used series of commands by using an
OBEY
file and the OBEY
command. The
OBEY
file takes the character set of the local operating
system. To specify a character that is not compatible with that character set, use
the Unicode notation.
To use OBEY
Example 9-37 OBEY command file
ALTER CREDENTIALSTORE ADD USER c##ggadmin@cdb1 ALIAS cggwest DOMAIN OracleGoldenGate PASSWORD ggadmin
DBLOGIN USERIDALIAS cggwest
ALTER CREDENTIALSTORE ADD USER ggadmin@pdbwest ALIAS ggwest DOMAIN OracleGoldenGate PASSWORD Welcome2OGG
ADD SCHEMATRANDATA hr
ADD TRANDATA hr.employees
ADD HEARTBEATTABLE
ADD EXTRACT exte, INTEGRATED TRANLOG, BEGIN NOW
ADD EXTTRAIL east/ea, EXTRACT exte
START EXTRACT exte
INFO EXTRACT exte, DETAIL
See OBEY
for more information in Parameters and Functions Reference
for Oracle GoldenGate.