TRANLOGOPTIONS RAWDEVICEOFFSET

今天介绍一下ogg中TRANLOGOPTIONS RAWDEVICEOFFSET参数,在ogg的官方文档中是没有这个参数的说明的。

这个参数的作用就是,当你使用裸设备的时候需要设置该参数。

下面看看mos上咋说:

Oracle GoldenGate Supports
Reading Redo And Archive Log files Stored On Raw Devices With Source Database On AIX OS And Also Requires TRANLOGOPTIONS RAWDEVICEOFFSET Parameter (文档 ID 1269855.1)
转到底部


In this Document

Goal
  Fix

APPLIES TO:

Oracle GoldenGate – Version 9.5_EA and later

IBM AIX on POWER Systems (64-bit)

***Checked for relevance on 06-Aug-2012***

GOAL

Oracle GoldenGate Supports Reading Redo And Archive Log files Stored On Raw Devices With Source Database On AIX OS

And Also Requires TRANLOGOPTIONS RAWDEVICEOFFSET Parameter

FIX

OGG supports redo and archive log files stored on raw devices, but if the Source database exists on AIX OS then  the use of

TRANLOGOPTIONS RAWDEVICEOFFSET 0

may be required

RAWDEVICEOFFSET <n>

Directs Extract where to start reading on a raw device. For most operating systems, the offset is 0, but on the AIX platform
it is 4096 bytes. RAWDEVICEOFFSET 0 must be used if the customer’s device is configured with the -TO option. The -TO option directs Oracle not to skip the first 4096 bytes of the logical volume, but start writing at 0. (When Oracle skips the first 4096, it
can cause problems with fractured blocks.) RAWDEVICEOFFSET 0 directs Extract to start reading where Oracle starts.

There is an Oracle utility named offset that helps determine the offset value, located in:

$ORACLE_HOME/bin/offset

More Info:

The real scenario is: if "-TO" option was turned on, GoldenGate got error 22 problem; if "-TO" option was turned off, GoldenGate could work properly.

Below is the parameters used to generate logical volume on an AIX cluster for Oracle files:

mklv -y ‘o_entry_d_01‘ -t ‘raw‘ ‘-S64K‘ -TO ora_entry_vg 129 hdiskpower21 hdiskpower22 hdiskpower23 hdiskpower24 hdiskpower25 hdiskpower26 hdiskpower27 hdiskpower28

Before option "T" was turned on, GoldenGate had an "error 22" problem and could not be started. After option "T" was on, GoldenGate worked properly.

The default for AIX is 4096. Included below are comments from IBM about option "-TO":

There is a fairly new -T flag on mklv that is described by CMVC Defect 389055. This flag is NOT documented on the mklv man page. The purpose of this flag is to use with Oracle to tell it to NOT skip the first 4096 bytes of the logical volume.

When Oracle skips the first 4096, it can cause problems with fractured blocks. When Oracle sees a type of "O" (uppercase O, not 0 zero), it will intentionally overwrite the LVCB by starting at the beginning of the LV, thus preventing fractured 4K blocks. The
problem was being seen when a halt -q was issued, and any fractured blocks became corrupted.

By default, the first 4k of each AIX Logical Volume is reserved for the Logical Volume Control Block(LVCB). This means that the first Oracle data block begins at a 4k offset into the Logical Volume. When fine granularity striping is used (either within AIX
LVM or within ESS RAID-5 or RAID-10 arrays), this can result in a slight I/O performance degradation when an Oracle DB Block Size is greater than 4k is used. (An 8k DB Block Size is typical for OLTP applications and a 16k DB Block size is typical for Data
Warehouse applications.) This is because every few DB blocks are physically split across device boundaries – with the first part of the DB block residing on one physical disk and the remainder of the DB block residing on another physical disk. This can result
in two physical I/Os being required to read or write a single DB block. The larger the DB Block size used, the higher the percentage of split blocks and the greater the potential for I/O performance degradation.

When running Oracle 9i Release 2 (or later), it is possible to eliminate the 4k offset. This is recommended for new Oracle implementations or for existing applications with extremely high I/O performance requirements.

Currently, the capability to do this is delivered in two parts: An IBM AIX e-fix (APAR IY36656 for AIX 5.1) and an Oracle patch (bug 2620053). The functionality will be included in future release levels of AIX and in Oracle 9.2.0.3 or later. Once the prerequisite
software has been installed, do the following to take advantage of the zero offset feature:

· Create a “big” Volume Group using the mkvg –B flag.

· Create one or more Logical Volumes in that Volume group using the mklv –T O flag. The “-TO” option indicates to Oracle that it can safely use a 0 offset for this Logical Volume.

In order to eliminate the 4k offset for an existing Oracle database, new Logical Volumes must be created and the existing data must be migrated to the new Logical Volumes using normal migration procedures.

This parameter is valid for RAC also.  However, please make sure all the Database thread in RAC has the same offset/setup
when using raw device for the redo log, as GoldenGate can‘t set specific RAWDEVICEOFFSET <n> for each thread.  This has to be across the board for all threads.

时间: 2024-09-28 02:35:26

TRANLOGOPTIONS RAWDEVICEOFFSET的相关文章

GoldenGate 异常处理预案

异常处理一般步骤 如果GoldenGate复制出现异常,可以通过以下步骤尝试解决问题: 1)        通过ggsci>view report命令查找ERROR字样,确定错误原因并根据其信息进行排除: 2)        通过ggsci>view ggsevt查看告警日志信息: 3)        检查两端数据库是否正常运行,网络是否连通: 4)        如不能确定错误原因,则可以寻求Oracle技术支持.在寻求技术支持时一般需要提供以下信息: ü  错误描述 ü  进程报告,位于d

OGG常见问题处理

1403: ORA-01403: No data found 在运行PL/SQL块.存储过程.函数.触发器等,假设须要进行操作的记录没有查询到.则会返回1403的错误 Goldengate中的1403 在目标段复制进程中,godengate从日志中解析出sql语句,依据sql语句的where条件.在目标段的库中匹配不出对应的记录 1403错误原因: 1. 附加日志相关 ? 数据相关 ? 表结构不一致/索引重建 常见问题: 1.生产端I/O过大.内存占用过大 配置了多个Extract进程导致 2.

【故障解决】OGG-00446 错误解决

[故障解决]OGG-00446 Could not find archived log for sequence 一.1  BLOG文档结构图       一.2  前言部分   一.2.1  导读和注意事项 各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你所不知道的知识,~O(∩_∩)O~: ① OGG-00446 Could not find archived log for sequence 的解决方法(重点) ② OGG基本的维护.排错操作     Tips:   

Oracle Goldengate参数整理

转自:http://blog.csdn.net/lemontree1123/article/details/46603549 manager参数: AUTOSTART:指定在mgr启动时自动启动那些进程. AUTOSTART ER * AUTOSTART extract extsz AUTORESTART:指定在mgr可以定时重启那些进程.可以在网络中断等故障恢复后自动重起,避免人工干预. AUTORESTART ER *, WAITMINUTES 5, RETRIES 3 DYNAMICPOR

goldengate一些參数整理

manager參数: AUTOSTART:指定在mgr启动时自己主动启动那些进程. AUTOSTART ER * AUTOSTART extract extsz AUTORESTART:指定在mgr能够定时重新启动那些进程. 能够在网络中断等故障恢复后自己主动重起.避免人工干预. AUTORESTART ER *, WAITMINUTES 5, RETRIES 3 DYNAMICPORTLIST:指定GoldenGate能够使用那些port接受extract发送过来的数据. DYNAMICPOR

goldengate一些参数整理

manager参数: AUTOSTART:指定在mgr启动时自动启动那些进程. AUTOSTART ER * AUTOSTART extract extsz AUTORESTART:指定在mgr可以定时重启那些进程.可以在网络中断等故障恢复后自动重起,避免人工干预. AUTORESTART ER *, WAITMINUTES 5, RETRIES 3 DYNAMICPORTLIST:指定GoldenGate可以使用那些端口接受extract发送过来的数据. DYNAMICPORTLIST 784

Ogg入门--基本命令

1.切换到oracle用户,进入到goldengate的安装目录. 2.查看进程的运行状况: GGSCI (pxpaddb1) 1> info all Program Status Group Lag at Chkpt Time Since Chkpt MANAGER RUNNING EXTRACT RUNNING DPEXPAD 00:00:00 00:00:08 EXTRACT RUNNING DPEXPAD2 00:00:00 00:00:04 --投递进程 EXTRACT RUNNING

GoldenGate系列之集成模式

一.集成模式进程配置1.用户授权:exec dbms_goldengate_auth.grant_admin_privilege('goldengate');2.参数调整:alter system set streams_pool_size=12g scope=spfile;3.执行注册:dblogin userid goldengate password xxxregister extract capture01 database4.增加extract进程方法一:add extract cap

AIX 6.1 Oracle 10G 数据库GoldenGate实施

安装环境说明: 源端:AIX 6.1 10.190.1.215 目标端:Linux 10.191.1.10 1:源端创建goldengate 表空间. 表空间的要求:最小500m,大点3-5G,设置自动扩展. SQL>  set pagesize 9999 col tablespace_name for a15 col file_name for a45 select tablespace_name ,file_name from dba_data_files; 在源端创建GoldenGate表