Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖
1#
发表于 2013-4-19 12:03:55
GGSCI> stats extract <extract_name>, totalsonly *, reportrate sec
GGSCI> stats extract <extract_name>, totalsonly *, reportrate min

看下呢?

回复 显示全部楼层 道具 举报

2#
发表于 2013-4-19 15:34:29
extract的IO慢 不仅仅可能是读的慢 还可能是写trail的慢,  归档+online redo 和 trail file所在 路径是否是同一个文件系统?

回复 显示全部楼层 道具 举报

3#
发表于 2013-4-19 16:37:20
巧妇难为无米之炊啊

回复 显示全部楼层 道具 举报

4#
发表于 2013-4-22 18:55:09
_NOAUTOMATICSEQUENCEFLUSH

Oracle GoldenGate - Version 11.2.1.0.4 and later
Information in this document applies to any platform.
Goal

I am using GoldenGate to replicate sequence last_number.  As this is for failover purpose, the DDL setup (including DDL trigger) is enabled in target database.  during sequence replication by replicat, I saw lots of following DDLs captured in ggs_ddl_trace.log:
alter sequence .... cycle;   ---- for the sequence with cycle option


alter sequence ... nocycle;  ---- for the sequence without cycle option



What is this DDL for, and can I disable them to improve the purpose?
Fix

The replicat changes the last_number in target sequence by querying the nextval, but this change is not secured if the target database goes down.  The observed DDL will move the high water mark (HWM) of target sequence and make sure sequences replicate reliably for each sequence record.  



The DDL may be skipped with replicat parameter:


DBOPTIONS _NOAUTOMATICSEQUENCEFLUSH



However, if target db goes down, the sequence number may be out of sync with source.  then you will need to use FLUSH to make sure they are in sync (or FLUSH it before the target goes down, for scheduled shutdown).

Other options to reduce the overhead from target DDL trigger:

1. disable the target DDL trigger if possible, and enable it only before the failover happens.

2. increase the cach size (e.g., from default 20 to 2000), which will reduce the number of sequence records to be replicated.

3. modify ddl_filter.sql in target to filter out the DDL (note 1420197.1 shows how to use ddl_filter.sql).

回复 显示全部楼层 道具 举报

5#
发表于 2013-4-22 18:58:04

这个问题可能还是和 source库该sequence 的cache较小有关

但加了 _NOAUTOMATICSEQUENCEFLUSH 可能导致目标库终止时可能 产生sequence 与source库不一致的情况。

回复 显示全部楼层 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-5-17 11:55 , Processed in 0.050208 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569