最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

GoldenGateSEQUENCE同步

来源:动视网 责编:小采 时间:2020-11-09 11:49:35
文档

GoldenGateSEQUENCE同步

GoldenGateSEQUENCE同步:数据同步到Oracle11g后,测试发现某些应用插入数据时报主键冲突。经调查发现是一些利用sequence做主键的表有问题,sequence的最大 最近用GoldenGate实现了Windows Oracle10g 到Linux Oracle11g的迁移。 记录一下遇到的一个问题:数据同步到Orac
推荐度:
导读GoldenGateSEQUENCE同步:数据同步到Oracle11g后,测试发现某些应用插入数据时报主键冲突。经调查发现是一些利用sequence做主键的表有问题,sequence的最大 最近用GoldenGate实现了Windows Oracle10g 到Linux Oracle11g的迁移。 记录一下遇到的一个问题:数据同步到Orac


数据同步到Oracle11g后,测试发现某些应用插入数据时报主键冲突。经调查发现是一些利用sequence做主键的表有问题,sequence的最大

最近用GoldenGate实现了Windows Oracle10g 到Linux Oracle11g的迁移。

记录一下遇到的一个问题:
数据同步到Oracle11g后,,测试发现某些应用插入数据时报主键冲突。经调查发现是一些利用sequence做主键的表有问题,sequence的最大值小于主键的最大值。对比源数据库和目标数据库的sequence发现,有些sequence的值没有同步到目标数据库。

查询GoldenGate的官方文档后发现可以用FLUSH SEQUENCE的方式来同步sequence:
GGSCI>FLUSH SEQUENCE scott.seq*

Oracle GoldenGate
Windows and UNIX Reference Guide
11g Release 1 Patch Set 1 (11.1.1.1)
E21512-02
中第82页记录了这段描述:

Use FLUSH SEQUENCE immediately after you start Extract for the first time during an initia
synchronization or a re-synchronization. This command updates an Oracle sequence so
that initial redo records are available at the time that Extract starts to capture transaction
data. Normally, redo is not generated until the current cache is exhausted. The flush give
Replicat an initial start point with which to synchronize to the correct sequence value on
the target system. From then on, Extract can use the redo that is associated with the usua
cache reservation of sequence values.
The following database procedures are used by this command and normally are installed
by running the sequence.sql script when Oracle GoldenGate is installed.

Before using FLUSH SEQUENCE, issue the DBLOGIN command as the database user that has
EXECUTE privilege on the updateSequence procedure.
To use this command, the GGSCHEMA parameter must be used in the GLOBALS file to specify
the schema in which the sequence.sql procedure is installed. This can be the same schema
that is used for the Oracle GoldenGate DDL support and any other database objects that
are owned by Oracle GoldenGate.

文档

GoldenGateSEQUENCE同步

GoldenGateSEQUENCE同步:数据同步到Oracle11g后,测试发现某些应用插入数据时报主键冲突。经调查发现是一些利用sequence做主键的表有问题,sequence的最大 最近用GoldenGate实现了Windows Oracle10g 到Linux Oracle11g的迁移。 记录一下遇到的一个问题:数据同步到Orac
推荐度:
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top