goldengate从11.2升级到12.1.2

1.停止抽取进程

GGSCI (001.oracle.drs.dc.com) 286> stop EXTSJ01

2. 停止投递和复制进程

等待投递进程传输完和复制进程加载完毕.当投递进程的Write Checkpoint #1的Sequence和RBA和复制进程的 Current CHECKPOINT的Sequence和RBA相同时表示已同步完毕

2.1检查投递进程:

GGSCI (001.oracle.drs.dc.com) 202> info PUPTDB2P,showch

EXTRACT    PUPTDB2P  Last Started 2016-05-04 20:32   Status STOPPED

Checkpoint Lag       00:00:00 (updated 01:12:12 ago)

Log Read Checkpoint  File ./dirdat/exttrdbk/ex000006

First Record  RBA 1151

Current Checkpoint Detail:

Read Checkpoint #1

GGS Log Trail

Startup Checkpoint (starting position in the data source):

Sequence #: 6

RBA: 1151

Timestamp: 2016-04-29 14:40:29.589038

Extract Trail: ./dirdat/exttrdbk/ex

Current Checkpoint (position of last record read in the data source):

Sequence #: 6

RBA: 1151

Timestamp: Not Available

Extract Trail: ./dirdat/exttrdbk/ex

Write Checkpoint #1

GGS Log Trail

Current Checkpoint (current write position):

Sequence #: 7

RBA: 1183

Timestamp: 2016-05-04 20:35:56.803177

Extract Trail: /home/ggt/goldengate/dirdat/reptdb2p/re

Trail Type: EXTTRAIL

2.2检查复制进程

GGSCI (001.oracle.drs.dc.com) 209> info reptdb2p,showch

REPLICAT   REPTDB2P  Last Started 2016-05-04 20:32   Status STOPPED

Checkpoint Lag       00:00:00 (updated 01:14:28 ago)

Log Read Checkpoint  File ./dirdat/reptdb2p/re000007

2016-05-04 20:32:43.741679  RBA 1183

Current Checkpoint Detail:

Read Checkpoint #1

GGS Log Trail

Startup Checkpoint (starting position in the data source):

Sequence #: 6

RBA: 1246

Timestamp: 2016-04-29 14:40:29.589110

Extract Trail: ./dirdat/reptdb2p/re

Current Checkpoint (position of last record read in the data source):

Sequence #: 7

RBA: 1183

Timestamp: 2016-05-04 20:32:43.741679

Extract Trail: ./dirdat/reptdb2p/re

2.3停止投递进程和复制进程

GGSCI (001.oracle.drs.dc.com) 209> STOP puptdb2p

GGSCI (001.oracle.drs.dc.com) 210> STOP reptdb2p

3.停止管理进程

GGSCI (001.oracle.drs.dc.com) 210> STOP mgr

4.备份原来的goldengate

[ggt@001.oracle.drs.dc.com ~]$ mv goldengate goldengate11.2

5.安装goldengate 12.1

[ggt@001 ~]$ unzip 121200_fbo_ggs_Linux_x64_shiphome.zip

[ggt@001 ~]$ cd fbo_ggs_Linux_x64_shiphome/Disk1

[ggt@001 ~]$ ./runInstaller

选择数据库版本,我的是oracle 11G

选择安装位置:指定到原始版本的位置;选择是否自动启动管理进程

6.检查安装有效性

[ggt@001.oracle.drs.dc.com goldengate]$ ./ggsci

Oracle GoldenGate Command Interpreter for Oracle

Version 12.1.2.0.0 17185003 OGGCORE_12.1.2.0.0_PLATFORMS_130924.1316_FBO

Linux, x64, 64bit (optimized), Oracle 11g on Sep 25 2013 00:31:13

Operating system character set identified as UTF-8.

Copyright (C) 1995, 2013, Oracle and/or its affiliates. All rights reserved.

7.把原版本的相关目录复制到新版本下

[ggt@001 goldengate]$

cp -R /home/ggt/goldengate11.2/dirchk/ .

cp -R /home/ggt/goldengate11.2/dirdat/ .

cp -R /home/ggt/goldengate11.2/dirdef/ .

cp -R /home/ggt/goldengate11.2/dirpcs/ .

cp -R /home/ggt/goldengate11.2/dirprm/ .

cp -R /home/ggt/goldengate11.2/dirrpt/ .

cp -R /home/ggt/goldengate11.2/dirsql/ .

cp -R /home/ggt/goldengate11.2/dirtmp/ .

cp -R /home/ggt/goldengate11.2/BR/ .

8.升级复制进程的checkpointtable

GGSCI (001.oracle.drs.dc.com) 20> dblogin userid ggt@mpaysoa_kx, password  pwd

Successfully logged into database.

GGSCI (001.oracle.drs.dc.com) 22> upgrade checkpointtable chk_mpayb2p

Successfully upgraded checkpoint table chk_mpayb2p.

注意:这一步必须做,否则这报以下错:

2016-05-05 16:31:56  ERROR   OGG-00868  OCI Error ORA-00904: "LOG_BSN": invalid identifier (status = 904). Updating checkpoint table chk_mpay

b2p, group REPMPB2P, key 169,822,320 (0x000000000a1f4870), SQL <UPDATE chk_mpayb2p SET last_update_ts = sysdate, seqno = :seqno, rba = :rba,

audit_ts = :audit_ts, log_bsn = :log_bsn, log_csn = :log_csn, log_xid = :log_xid, log_cmplt_csn = :log_cmplt_csn, log_cmplt_xids = :log_cmplt

_xids, version = :version WHERE group_name = :group_name AND group_key  = :key>.

9.启动管理进程

GGSCI (001.oracle.drs.dc.com) 23>start mgr

10.启动抽取进程

注意:启动之前,要修改trail文件的格式或把trail的序号向前滚一个序号,否则会报以下错:

ERROR   OGG-01416  File ./dirdat/lt000005, with format RELEASE 11.2, does not match current format specification of RELEASE 12.1. Modify the parameter file to specify format RELEASE 11.2 or issue ETROLLOVER prior to restart.

方法一:修改trail文件的格式方法:把开参数文件,在exttrail ./dirdat/sj01/ex后面加上FORMAT RELEASE 11.2

GGSCI (001.oracle.drs.dc.com) 23>edit params extsj01

修改exttrail ./dirdat/sj01/ex为exttrail ./dirdat/sj01/ex, FORMAT RELEASE 11.2

方法二:trail的序号向前滚一个序号

GGSCI (001.oracle.drs.dc.com) 262> alter extsj01,etrollover

2016-05-05 10:14:51  INFO    OGG-01520  Rollover performed.  For each affected output trail of Version 10 or higher format, after starting the source extract, issue ALTER EXTSEQNO for that trail's reader (either pump EXTRACT or REPLICAT) to move the reader's scan to the new trail file;  it will not happen automatically.

EXTRACT altered.

启动抽取进程

GGSCI (001.oracle.drs.dc.com) 262>start extsj01

11.启动投递进程

如果在第10步用方法一的话,直接启动投递进程和复制进程就可以了,如果用方法二必须执行以下操作

11.1 记录投递进程的读写检查点

GGSCI (001.oracle.drs.dc.com) 258> info PUPMPBK2,showch

EXTRACT    PUPMPBK2  Last Started 2016-05-05 10:01   Status ABENDED

Checkpoint Lag       00:44:46 (updated 00:00:21 ago)

Log Read Checkpoint  File /home/ggt/goldengate/dirdat/sj01/ex194468

2016-05-05 09:16:27.000000  RBA 2244115

Current Checkpoint Detail:

Read Checkpoint #1

GGS Log Trail

Startup Checkpoint (starting position in the data source):

Sequence #: 194468

RBA: 2244115

Timestamp: 2016-05-05 09:16:27.000000

Extract Trail: /home/ggt/goldengate/dirdat/sj01/ex

Current Checkpoint (position of last record read in the data source):

Sequence #: 194468

RBA: 2244115

Timestamp: 2016-05-05 09:16:27.000000

Extract Trail: /home/ggt/goldengate/dirdat/sj01/ex

Write Checkpoint #1

GGS Log Trail

Current Checkpoint (current write position):

Sequence #: 6184

RBA: 36936583

Timestamp: 2016-05-05 09:16:30.784940

Extract Trail: /home/ggt/goldengate/dirdat/repmpaybak/re

Trail Type: RMTTRAIL

Header:

Version = 2

Record Source = A

Type = 1

# Input Checkpoints = 1

# Output Checkpoints = 1

File Information:

Block Size = 2048

Max Blocks = 100

Record Length = 2048

Current Offset = 0

Configuration:

Data Source = 0

Transaction Integrity = 1

Task Type = 0

Status:

Start Time = 2016-05-05 10:01:08

Last Update Time = 2016-05-05 10:01:13

Stop Status = A

Last Result = 0

11.2 修改Read Checkpoint和Write Checkpoint

GGSCI (001.oracle.drs.dc.com) 262> alter PUPMPBK2,etrollover

2016-05-05 10:14:51  INFO    OGG-01520  Rollover performed.  For each affected output trail of Version 10 or higher format, after starting the source extract, issue ALTER EXTSEQNO for that trail's reader (either pump EXTRACT or REPLICAT) to move the reader's scan to the new trail file;  it will not happen automatically.

EXTRACT altered.

GGSCI (001.oracle.drs.dc.com) 262>   alter PUPMPBK2,extseqno 194469 extrba 0

注意:extseqno 194469是在Read Checkpoint的Sequence #: 194468加1,因为在抽取进程上用etrollover向前滚了一个序号

GGSCI (001.oracle.drs.dc.com) 262>start PUPMPBK2

11.3启动投递进程

GGSCI (001.oracle.drs.dc.com) 262>start PUPMPBK2

12. 启动复制进程

12.1查看复制进程的加载位置

GGSCI (001.oracle.drs.dc.com) 21> info REPMPB2P,showch

REPLICAT   REPMPB2P  Last Started 2016-05-05 16:31   Status ABENDED

Checkpoint Lag       00:00:00 (updated 00:04:42 ago)

Log Read Checkpoint  File ./dirdat/repmpb2p/re000083

First Record  RBA 0

Current Checkpoint Detail:

Read Checkpoint #1

GGS Log Trail

Startup Checkpoint (starting position in the data source):

Sequence #: 6184

RBA: 36936583

Timestamp: Not Available

Extract Trail: ./dirdat/repmpb2p/re

Current Checkpoint (position of last record read in the data source):

Sequence #: 6184

RBA: 36936583

Timestamp: Not Available

Extract Trail: ./dirdat/repmpb2p/re

12.2修改复制进程的Sequence #和RBA

GGSCI (001.oracle.drs.dc.com) 22>alter REPMPB2P extseqno 6185 extrba 0

注意:extseqno 6185是在Current Checkpoint的Sequence #: 6184加1,因为在投递进程上用etrollover向前滚了一个序号

12.3 启动复制进程

GGSCI (001.oracle.drs.dc.com) 22>start REPMPB2P

13 升级完成

恭喜你,至此你已成功完成goldengate的11g到12c的升级

原创:goldengate从11.2升级到12.1.2的更多相关文章

  1. 升级Ubuntu 12.04下的gcc到4.7

    我们知道C++11标准开始支持类内初始化(in-class initializer),Qt creator编译出现error,不支持这个特性,原因在于,Ubuntu12.04默认的是使用gcc4.6, ...

  2. 1-1 课程导学 & 1-2 项目需求分析,技术分解.

    1-1 课程导学 1-2 项目需求分析,技术分解. 要有一定的dart基础,了解安卓和ios的一些普通的开发

  3. 升级nginx1.12为1.161版本

    升级nginx1.12为1.161版本 一.添加源 到 cd /etc/yum.repos.d/ 目录下 新建nginx.repo 文件 vim nginx.repo 输入以下信息 [nginx-st ...

  4. 【原创】Linux基础之redhat6升级glibc-2.12到2.14

    redhat6自带glibc-2.12,升级到glibc-2.14过程 # strings /lib64/libc.so.6 |grep GLIBC_GLIBC_2.2.5GLIBC_2.2.6GLI ...

  5. kubernetes实战(十六):k8s高可用集群平滑升级 v1.11.x 到v1.12.x

    1.基本概念 升级之后所有的containers会重启,因为hash值会变. 不可跨版本升级. 2.升级Master节点 当前版本 [root@k8s-master01 ~]# kubeadm ver ...

  6. ebs 12.1.1升级到12.1.3

    升级过程参考 Oracle电子商务套件版本12.1.3自述文件 (文档 ID 1534411.1) 应用启动到维护模式 adadmin 打以下patch 9239089  9239090  92390 ...

  7. U3D笔记11:47 2016/11/30-15:15 2016/12/19

    11:47 2016/11/30Before you can load a level you have to add it to the list of levels used in the gam ...

  8. 线上平滑升级nginx1.12

    .下载相关包,需要和之前用到的依赖包保持一致 wget http://nginx.org/download/nginx-1.12.2.tar.gz wget https://bitbucket.org ...

  9. app后端设计(11)-- 系统架构(2014.12.05更新)

    个人认为,在小型的创业团队中,特别是以应用产品为主,在架构后台的时候,需要集中精力解决自身业务上的问题,不是花时间解决第三方已经解决的问题,简单点来说,就是能用第三方服务就使用第三方的服务.基于这个原 ...

随机推荐

  1. centos下安装iftop

    CentOS 下iftop 的安装 安装方法一:编译安装(安装成功) wget http://ex-parrot.com/~pdw/iftop/download/iftop-0.17pre3.tar. ...

  2. IIS Connection Timeout vs httpRuntime executionTimeout

    IIS Connection Timeout specifies how long, in seconds, should the code wait before timing out from t ...

  3. Extjs的GridPanel的RowExpander的扩展

    对Extjs的grid使用,有时候单单使用其中的某些组.或某些行是远远不够的,还需要对行进行一些扩展,如:与filters相似的row扩展控件,如下 这个控件,我也是从网上找的小例子,按照其内部的某些 ...

  4. Block 传值

    A 界面: - (IBAction)gotoVC:(id)sender { //必须在事件发生时调用Block,每次Block对应一次初始化 cvc = [[CViewController alloc ...

  5. Nginx下实现pathinfo及ThinkPHP的URL Rewrite模式支持

    打开Nginx的配置文件 /usr/local/nginx/conf/nginx.conf 一般是在这个路径,根据你的安装路径可能有所变化.如果你配置了vhost,而且只需要你这一个vhost支持pa ...

  6. 基于OWIN WebAPI 使用OAuth授权服务【客户端模式(Client Credentials Grant)】

    适应范围 采用Client Credentials方式,即应用公钥.密钥方式获取Access Token,适用于任何类型应用,但通过它所获取的Access Token只能用于访问与用户无关的Open ...

  7. 解析ASP.NET WebForm和Mvc开发的区别

    因为以前主要是做WebFrom开发,对MVC开发并没有太深入的了解.自从来到创新工场的新团队后,用的技术都是自己以前没有接触过的,比如:MVC 和EF还有就是WCF,压力一直很大.在很多问题都是不清楚 ...

  8. 简单理解ECMAScript2015中的箭头函数新特性

    箭头函数(Arrow functions),是ECMAScript2015中新加的特性,它的产生,主要有以下两个原因:一是使得函数表达式(匿名函数)有更简洁的语法,二是它拥有词法作用域的this值,也 ...

  9. Java程序员的日常 —— 工作一天的收获

    看题目可能是扯皮,其实还是有很多专业知识的.从最开始没有注意到设计原则,到后面的jquery实战技巧,都是今天一天碰到的问题. 每天整理一点点,每天收获一点点. 关于软件设计 在设计系统结构的时候,一 ...

  10. crossplatform---Node.js Applications with VS Code

    Node.js is a platform for building fast and scalable server applications using JavaScript. Node.js i ...