Enabling table-level supplemental logging【每日一译】--20130105

来源:互联网 发布:象棋软件排名 编辑:程序博客网 时间:2024/05/24 03:38
Perform the following steps to enable table-level supplemental logging of key values
for use by Oracle GoldenGate. The command you will issue, ADD TRANDATA, also
provides a COLS option to log non-key columns for use in a KEYCOLS clause or for

filtering or manipulation.

执行以下步骤去允许表级别的主键值附加日志对于使用OGG来说。输入命令ADD TRANDATA,

也可以提供一个COLS选项去产生非主键列日志对于使用KEYCOLS语句或者是过滤和操作之用。

1. Run GGSCI on the source system.

2. Issue the DBLOGIN command as a user that has privilege to enable table-level
supplemental logging.
DBLOGIN USERID user, PASSWORD password [encryption options]
See the Oracle GoldenGate Windows and UNIX Reference Guide for password
encryption options for DBLOGIN.
3. Issue the ADD TRANDATA command.
ADD TRANDATA table [, COLS columns] [, NOKEY]
Where:

1.在源系统上运行GGSCI命令

2.输入DBLOGIN命令,使用一个含 有允许表级别附加日志权限的用户。

3.输入ADD TRANDATA命令


■ table is the owner and name of the table. You can use a wildcard for the table
name, but not the owner name.
■ COLS columns logs non-key columns that are required for a KEYCOLS clause or
for filtering and manipulation.
■ NOKEY prevents the logging of the primary key or unique key. Requires a
KEYCOLS clause in the TABLE and MAP parameters and a COLS clause in the ADD
TRANDATA command to log the KEYCOLS columns.

#TABLE是表的所属人和名字。对于表名你可以使用通配符,但不能针对属人的名字使用。

#COLS列产生非主键列的日志,要求非主键列需要一个KEYCOLS语句或者针对于过滤和操作语句。

#NOKEY阻塞主键或者唯一键的日志。它要求在TABLE和MAP参数中使用KEYCOLS语句和对于产生日志的

KEYCOLS列的ADD TRANDATA命令时使用COLS语句。

4. If using ADD TRANDATA with the COLS option, create a unique index for those
columns on the target to optimize row retrieval. If you are logging those columns
as a substitute key for a KEYCOLS clause, make a note to add the KEYCOLS clause to
the TABLE and MAP statements when you configure the Oracle GoldenGate
processes.

4.如果在COLS选项中你使用了ADD TRANDATA命令,对于这些目标列创建一个唯一索引去优化行的检索。

如果对于这些列产生的日志使用KEYCOLS语句替换。当你配置OGG进程时对于TABLE和MAP语句添加

KEYCOLS语句作一个记录。

原创粉丝点击