打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
GoldenGate(OGG)高可用XAG部署
userphoto

2023.05.17 湖南

关注

前言:

本文档主要描述通过Oracle Grid Infrastructure Agents (XAG)基于Oracle RAC实现GoldenGate(OGG)软件高可用的实施操作

环境信息:

源端

目标端

节点一IP

节点二IP

192.168.1.84

192.168.1.86

节点一IP

节点二IP

192.168.1.200

192.168.1.210

VIP

192.168.1.88

VIP

192.168.1.204

数据库版本

11.2.0.4

数据库版本

12.2.0.1

OGG版本

19.1.0.0.4

OGG版本

19.1.0.0.4

XAG版本

10.2

XAG版本

7.1.0

EXTRACT进程

E_BSS_1

REPLICAT进程

R_ING_1

PUMP进程

P_BSR_1

源端OGG高可用配置:

            1 配置vip资源:

  1. --添加vip资源,这里使用集群新建的network 2网络,可以使用默认的network 1,同网段即可
  2. #network is the network number that you want to use.
  3. #ip is the IP address provided by your system administrator for the new Application VIP. This IP address must be in the same subnet as determined above.
  4. #gg_vip_source is the name of the application VIP that you will create.
  5. /u01/app/11.2.0/grid/bin/appvipcfg create -network=2 \
  6. -ip=192.168.1.88 \
  7. -vipname=gg_vip_source \
  8. -user=root
  9. --root授权Oracle用户有启动vip的权限
  10. /u01/app/11.2.0/grid/bin/crsctl setperm resource gg_vip_source -u user:oracle:r-x
  11. --Oracle用户启动资源
  12. /u01/app/11.2.0/grid/bin/crsctl start resource gg_vip_source
  13. --验证资源
  14. [oracle@rac1 ~]$ /u01/app/11.2.0/grid/bin/crsctl status resource gg_vip_source
  15. NAME=gg_vip_source
  16. TYPE=app.appvip_net2.type
  17. TARGET=ONLINE
  18. STATE=ONLINE on rac2

          2 配置ACFS资源:

  1. --配置ACFS,在节点一操作即可
  2. --添加vol卷
  3. su -grid
  4. ASMCMD> volcreate -G DATA -s 5G acfsvol
  5. --查看acfs生成的卷组
  6. su - grid
  7. ASMCMD> volinfo -G DATA acfsvol
  8. Diskgroup Name: DATA
  9. Volume Name: ACFSVOL
  10. Volume Device: /dev/asm/acfsvol-119
  11. State: ENABLED
  12. Size (MB): 5120
  13. Resize Unit (MB): 32
  14. Redundancy: UNPROT
  15. Stripe Columns: 4
  16. Stripe Width (K): 128
  17. Usage:
  18. Mountpath:
  19. --挂载/ogg 文件系统
  20. --确认asm下面生成acfs卷组
  21. # ls /dev/asm
  22. --创建挂载目录
  23. su - root
  24. mkdir /ogg
  25. --格式划acfs
  26. su - root
  27. # /sbin/mkfs -t acfs /dev/asm/acfsvol-119
  28. --加入集群管理
  29. su - root
  30. /u01/app/11.2.0/grid/bin/srvctl add filesystem -d /dev/asm/acfsvol-119 -g 'DATA' -v ACFSVOL -m /ogg -u oracle
  31. --挂载
  32. /u01/app/11.2.0/grid/bin/srvctl start filesystem -d /dev/asm/acfsvol-119
  33. --查看是否online以及mount
  34. su - grid
  35. crsctl stat res -t |grep -i acfs
  36. ora.data.acfsvol.acfs
  37. ora.registry.acfs
  38. df -h
  39. --如果没有online,再手动mount
  40. su - root
  41. # mount.acfs -o all
  42. --授予目录权限
  43. su - root
  44. # chown oracle.oinstall /ogg

        3 安装ogg软件:

  1. --安装ogg软件,要安装在acfs所在的目录/ogg里面
  2. cd fbo_ggs_Linux_x64_shiphome/
  3. cd Disk1/
  4. ./runInstaller

        4 ogg开启ddl支持:

  1. sqlplus / as sysdba
  2. @marker_setup.sql
  3. @ddl_setup.sql
  4. @role_setup.sql
  5. GRANT GGS_GGSUSER_ROLE TO ogg_owner;
  6. @ddl_enable.sql
  7. @?/rdbms/admin/dbmspool.sql
  8. @ddl_pin ogg_owner

        5 配置MGR进程:

  1. --需要注意配置的参数是autostart,因为高可用是依靠mgr去自动启动进程的
  2. GGSCI (rac1) 3> edit params mgr
  3. port 7809
  4. DYNAMICPORTLIST 7940-8100
  5. AUTOSTART ER *
  6. AUTORESTART ER *,RETRIES 10, WAITMINUTES 1, RESETMINUTES 60
  7. PURGEOLDEXTRACTS /ogg/dirdat/*,USECHECKPOINTS,MINKEEPDAYS 5
  8. LAGREPORTHOURS 1
  9. LAGINFOMINUTES 30
  10. LAGCRITICALMINUTES 45
  11. --启动mgr进程
  12. GGSCI (rac1) 5> start mgr

        6 源端添加表级附加日志:

  1. --连接数据库
  2. GGSCI>dblogin userid ogg password ogg
  3. --添加表级附加日志
  4. GGSCI>add trandata test.*
  5. --显示日志添加情况
  6. GGSCI>info trandata test.*

        7 配置EXTRACT进程:

  1. --添加extract进程
  2. add extract E_BSS_1 tranlog,begin now,threads 2
  3. add exttrail ./dirdat/es,extract E_BSS_1,megabytes 1000
  4. --需要注意的是要通过tns去连接数据库,而不是ORACLE_SID方式,并且连接的tns需要可以访问到全部节点,最好连scan_ip
  5. --配置ogg连接数据库的tns
  6. ORCL =
  7. (DESCRIPTION =
  8. (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))
  9. (CONNECT_DATA =
  10. (SERVER = DEDICATED)
  11. (SERVICE_NAME = orcl)
  12. )
  13. )
  14. --配置extract进程
  15. GGSCI (rac1) 3> edit params e_bss_1
  16. extract E_BSS_1
  17. SETENV (ORACLE_HOME = "/u01/app/oracle/product/11.2.0/db_1")
  18. SETENV (NLS_LANG = "AMERICAN_AMERICA.ZHS16GBK")
  19. userid ogg@orcl, password ogg
  20. exttrail ./dirdat/es
  21. gettruncates
  22. TRANLOGOPTIONS INCLUDEREGIONID,EXCLUDEUSER ogg
  23. TRANLOGOPTIONS BUFSIZE 2048000
  24. TRANLOGOPTIONS DBLOGREADER,DBLOGREADERBUFSIZE 2048000
  25. DISCARDFILE ./dirrpt/e_bss_1.dsc,APPEND,MEGABYTES 1000
  26. DISCARDROLLOVER AT 6:00
  27. REPORTROLLOVER AT 6:00
  28. REPORTCOUNT EVERY 1 HOURS,RATE
  29. DDL INCLUDE MAPPED , OBJTYPE 'TABLE' &
  30. INCLUDE MAPPED OBJTYPE 'INDEX'
  31. DDLOPTIONS ADDTRANDATA RETRYOP RETRYDELAY 10 MAXRETRIES 10
  32. DDLOPTIONS REPORT
  33. FETCHOPTIONS MISSINGROW ABEND
  34. STATOPTIONS REPORTFETCH
  35. WARNLONGTRANS 1H,CHECKINTERVAL 10m
  36. DYNAMICRESOLUTION
  37. TABLE test.test;

        8 配置PUMP进程:

  1. --添加投递进程
  2. add extract P_BSR_1,exttrailsource ./dirdat/es
  3. add RMTTRAIL ./dirdat/rs,ext P_BSR_1,megabytes 1000
  4. --需要注意的是这里远程的IP是目标端的VIP,这样才能在failover之后,依然可以正常投递
  5. --配置投递进程参数
  6. GGSCI (rac1) 3> edit params P_BSR_1
  7. extract P_BSR_1
  8. rmthost 192.168.1.204, mgrport 7809
  9. rmttrail ./dirdat/rs
  10. passthru
  11. DISCARDFILE ./dirrpt/p_bsr_1.dsc,APPEND,MEGABYTES 1000
  12. DISCARDROLLOVER AT 6:00
  13. REPORTROLLOVER AT 6:00
  14. REPORTCOUNT EVERY 1 HOURS,RATE
  15. TABLE TEST.TEST;

        9 添加源端OGG高可用服务实例:

  1. ++++++++++++++++++++++++++++++++++++++++++++++++参数说明
  2. agctl add goldengate --help
  3. Adds Goldengate instance to Oracle Clusterware.
  4. <instance_name> Instance name
  5. --gg_home <GoldenGate_Home> GoldenGate home directory
  6. --instance_type <instance_type> {source | target | dual}
  7. --server_pool <server_pool> Name of the Server pool where instance can be run
  8. --nodes <node>[,...] List of nodes where instance can be run
  9. --vip_name <vip_name> Virtual IP name
  10. --network <network_number> Network number
  11. --ip <ip_address> IP address
  12. --user <user> Operating System user name that owns the instance
  13. --group <group> Name of the group to which the Operating System user belongs
  14. --oracle_home <oracle_home> ORACLE_HOME location
  15. --databases <database>[,...] List of database instance dependencies
  16. --db_services <db_service>[,...] List of database service dependencies
  17. --filesystems <filesystem>[,...] List of file system resource dependencies
  18. --attribute <name>=<value>[,...] Attributes that can be applied
  19. --environment_vars <var=value>[,...] Additional environment variables to set
  20. --monitor_extracts <ext>[,...] List of EXTRACT groups to monitor
  21. --monitor_replicats <rep>[,...] List of REPLICAT groups to monitor
  22. --critical_extracts <exta>[,...] List of critical EXTRACT groups to monitor and failover
  23. --critical_replicats <repa>[,...] List of critical REPLICAT groups to monitor and failover
  24. --dataguard_autostart <yes|no> Start GoldenGate on DataGuard role transition to PRIMARY
  25. --jagent_autostart <yes|no> Start JAgent on GoldenGate startup
  26. --agctl添加高可用source_ogg实例,oracle用户执行以及管理
  27. --注意这里源端VIP不是必需的,因为源端不需要用到VIP
  28. --注意这里的database也可以不用设置,这里的设置主要是强关联database,这样当节点的database关闭会触发ogg failover
  29. agctl add goldengate source_ogg --gg_home /ogg \
  30. --instance_type source \
  31. --nodes rac1,rac2 \
  32. --vip_name gg_vip_source \
  33. --filesystems ora.data.acfsvol.acfs\
  34. --databases ora.orcl.db \
  35. --oracle_home /u01/app/oracle/product/11.2.0/db_1 \
  36. --monitor_extracts E_BSS_1,P_BSR_1
  37. --查看实例配置
  38. [oracle@rac1 ogg]$ agctl config goldengate source_ogg
  39. Instance name: source_ogg
  40. Application GoldenGate location is: /ogg
  41. Goldengate MicroServices Architecture environment: no
  42. GoldenGate instance type is: source
  43. EXTRACT groups to monitor: E_BSS_1,P_BSR_1
  44. REPLICAT groups to monitor:
  45. Critical EXTRACT groups:
  46. Critical REPLICAT groups:
  47. Autostart on DataGuard role transition to PRIMARY: no
  48. Autostart JAgent: no
  49. Configured to run on Nodes: rac1 rac2
  50. ORACLE_HOME location is: /u01/app/oracle/product/11.2.0/db_1
  51. Databases needed: ora.orcl.db
  52. File System resources needed: ora.data.acfsvol.acfs
  53. VIP name: gg_vip_source

        10 启动源端OGG高可用服务实例:

  1. --开启source_ogg实例,oracle用户执行
  2. [oracle@rac1 ogg]$ agctl start goldengate source_ogg --node rac1
  3. --会把mgr进程启动,mgr会把extract进程,pump进程启动
  4. [oracle@rac1 ogg]$ ./ggsci
  5. Oracle GoldenGate Command Interpreter for Oracle
  6. Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
  7. Linux, x64, 64bit (optimized), Oracle 11g on Oct 17 2019 23:13:12
  8. Operating system character set identified as UTF-8.
  9. Copyright (C) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
  10. GGSCI (rac1) 1> info all
  11. Program Status Group Lag at Chkpt Time Since Chkpt
  12. MANAGER RUNNING
  13. EXTRACT RUNNING E_BSS_1 00:00:00 00:00:03
  14. EXTRACT RUNNING P_BSR_1 00:00:00 00:00:00
  15. --查看集群服务状态,当前服务在节点一
  16. crsctl stat res -t
  17. Cluster Resources
  18. --------------------------------------------------------------------------------
  19. gg_vip_source
  20. 1 ONLINE ONLINE rac1
  21. ora.LISTENER_SCAN1.lsnr
  22. 1 ONLINE ONLINE rac1
  23. ora.bkrac1-vip.vip
  24. 1 ONLINE ONLINE rac1
  25. ora.bkrac2-vip.vip
  26. 1 ONLINE ONLINE rac2
  27. ora.cvu
  28. 1 ONLINE ONLINE rac1
  29. ora.oc4j
  30. 1 ONLINE ONLINE rac2
  31. ora.orcl.db
  32. 1 ONLINE ONLINE rac1 Open
  33. 2 ONLINE ONLINE rac2 Open
  34. ora.rac1.vip
  35. 1 ONLINE ONLINE rac1
  36. ora.rac2.vip
  37. 1 ONLINE ONLINE rac2
  38. ora.scan1.vip
  39. 1 ONLINE ONLINE rac1
  40. xag.source_ogg.goldengate
  41. 1 ONLINE ONLINE rac1
  42. GGSCI (rac1) 2>
  43. --关闭source_ogg实例,用oracle用户执行
  44. agctl stop goldengate source_ogg
  45. --手动切换source_ogg实例到去其他节点,用oracle用户执行
  46. agctl relocate goldengate source_ogg --node rac2

目标端OGG高可用配置:

        1 配置VIP,ACFS,OGG软件安装参照源端配置即可

        2 配置MGR进程:

  1. --需要注意配置的参数是autostart,因为高可用是依靠mgr去自动启动进程的
  2. GGSCI (rac1) 3> edit params mgr
  3. port 7809
  4. DYNAMICPORTLIST 7940-8100
  5. AUTOSTART ER *
  6. AUTORESTART ER *,RETRIES 10, WAITMINUTES 1, RESETMINUTES 60
  7. PURGEOLDEXTRACTS /ogg/dirdat/*,USECHECKPOINTS,MINKEEPDAYS 5
  8. LAGREPORTHOURS 1
  9. LAGINFOMINUTES 30
  10. LAGCRITICALMINUTES 45
  11. --启动mgr进程
  12. GGSCI (rac1) 5> start mgr

        3 配置replicat应用进程:

  1. --创建检查表
  2. GGSCI> dblogin userid ogg password ogg
  3. GGSCI > add checkpointtable ogg.rep_ogg_ckpt
  4. --添加应用进程
  5. GGSCI> add replicat R_ING_1,exttrail ./dirdat/rs,checkpointtable ogg.rep_ogg_ckpt
  6. --需要注意的是要通过tns去连接数据库,而不是ORACLE_SID方式,并且连接的tns需要可以访问到全部节点,最好连scan_ip
  7. --配置ogg连接数据库的tns
  8. ORCL =
  9. (DESCRIPTION =
  10. (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))
  11. (CONNECT_DATA =
  12. (SERVER = DEDICATED)
  13. (SERVICE_NAME = orcl)
  14. )
  15. )
  16. --配置应用进程
  17. GGSCI (rac1) 3> edit params r_ing_1
  18. REPLICAT R_ING_1
  19. SETENV (ORACLE_HOME = "/oracle/app/oracle/product/12.2/db_1")
  20. SETENV (NLS_LANG = "AMERICAN_AMERICA.AL32UTF8")
  21. userid ogg@orcl, password ogg
  22. ASSUMETARGETDEFS
  23. DBOPTIONS DEFERREFCONST
  24. DBOPTIONS SUPPRESSTRIGGERS
  25. DISCARDFILE ./dirrpt/r_ing_1.dsc, APPEND, MEGABYTES 1000
  26. DISCARDROLLOVER AT 6:00
  27. REPERROR (DEFAULT, ABEND)
  28. REPERROR (24344, DISCARD)
  29. gettruncates
  30. DDL INCLUDE MAPPED , OBJTYPE 'TABLE' &
  31. INCLUDE MAPPED OBJTYPE 'INDEX'
  32. DDLOPTIONS REPORT

        4 添加目标端OGG高可用服务实例:

  1. --agctl添加高可用target_ogg实例,用oracle用户执行以及管理
  2. --注意这里的database也可以不用设置,这里的设置主要是强关联database,这样当节点的database关闭会触发ogg failover
  3. agctl add goldengate target_ogg --gg_home /ogg \
  4. --instance_type target \
  5. --nodes rac1,rac2 \
  6. --vip_name gg_vip_source \
  7. --filesystems ora.mgmt.acfsvol.acfs \
  8. --databases ora.orcl.db \
  9. --oracle_home /oracle/app/oracle/product/12.2/db_1 \
  10. --monitor_replicats R_ING_1
  11. --查看实例配置
  12. [oracle@rac1 ogg]$ agctl config goldengate target_ogg
  13. GoldenGate location is: /ogg
  14. GoldenGate instance type is: target
  15. Configured to run on Nodes: rac1 rac2
  16. ORACLE_HOME location is: /oracle/app/oracle/product/12.2/db_1
  17. Databases needed: ora.orcl.db
  18. File System resources needed: ora.mgmt.acfsvol.acfs
  19. VIP name: gg_vip_source
  20. EXTRACT groups to monitor: E_BSS_1,P_BSR_1
  21. REPLICAT groups to monitor: R_ING_1
  22. Critical EXTRACT groups:
  23. Critical REPLICAT groups:
  24. Autostart on DataGuard role transition to PRIMARY: no
  25. Autostart JAgent: no

        5 启动目标端OGG高可用服务实例:

  1. --开启source_ogg实例,用oracle用户执行
  2. [oracle@rac1 ogg]$ agctl start goldengate target_ogg --node rac1
  3. --会把mgr进程启动,mgr会把extract进程,pump进程启动
  4. [oracle@rac1 ogg]$ ./ggsci
  5. [oracle@rac1 ogg]$ ./ggsci
  6. Oracle GoldenGate Command Interpreter for Oracle
  7. Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
  8. Linux, x64, 64bit (optimized), Oracle 12c on Oct 18 2019 01:38:51
  9. Operating system character set identified as UTF-8.
  10. Copyright (C) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
  11. GGSCI (rac1) 1> info all
  12. Program Status Group Lag at Chkpt Time Since Chkpt
  13. MANAGER RUNNING
  14. REPLICAT RUNNING R_ING_1 00:00:00 00:00:00
  15. --查看集群服务状态,当前服务在节点一
  16. crsctl stat res -t
  17. Cluster Resources
  18. --------------------------------------------------------------------------------
  19. gg_vip_source
  20. 1 ONLINE ONLINE rac1 STABLE
  21. ora.LISTENER_SCAN1.lsnr
  22. 1 ONLINE ONLINE rac2 STABLE
  23. ora.MGMTLSNR
  24. 1 ONLINE ONLINE rac1 169.254.179.17 192.1
  25. 68.2.10,STABLE
  26. ora.asm
  27. 1 ONLINE ONLINE rac1 Started,STABLE
  28. 2 ONLINE ONLINE rac2 Started,STABLE
  29. 3 OFFLINE OFFLINE STABLE
  30. ora.cvu
  31. 1 ONLINE ONLINE rac2 STABLE
  32. ora.mgmtdb
  33. 1 ONLINE ONLINE rac1 Open,STABLE
  34. ora.orcl.db
  35. 1 ONLINE ONLINE rac1 Open,HOME=/oracle/ap
  36. p/oracle/product/12.
  37. 2/db_1,STABLE
  38. 2 ONLINE ONLINE rac2 Open,HOME=/oracle/ap
  39. p/oracle/product/12.
  40. 2/db_1,STABLE
  41. ora.qosmserver
  42. 1 ONLINE ONLINE rac2 STABLE
  43. ora.rac1.vip
  44. 1 ONLINE ONLINE rac1 STABLE
  45. ora.rac2.vip
  46. 1 ONLINE ONLINE rac2 STABLE
  47. ora.scan1.vip
  48. 1 ONLINE ONLINE rac2 STABLE
  49. xag.target_ogg.goldengate
  50. 1 ONLINE ONLINE rac1 STABLE
  51. --------------------------------------------------------------------------------
  52. GGSCI (rac1) 2>
  53. --关闭source_ogg实例,用oracle用户执行
  54. agctl stop goldengate target_ogg
  55. --手动切换source_ogg实例到去其他节点,用oracle用户执行
  56. agctl relocate goldengate target_ogg --node rac2

测试OGG高可用配置:

        1 源端OGG节点主机重启:

  1. --在源端开启会话,模拟表操作
  2. declare
  3. v_count number(10):=0;
  4. begin
  5. for i in 1..1000000 loop
  6. insert into test.test select * from dba_objects where rownum<4;
  7. delete from test.test where rownum<2;
  8. update test.test
  9. set owner='aaa'
  10. where rownum<2;
  11. v_count:=v_count+1;
  12. if v_count>=1 THEN
  13. commit;
  14. v_count:=0;
  15. end if;
  16. end loop;
  17. commit;
  18. end;
  19. /
  20. --当前源端ogg所在节点主机rac1
  21. [oracle@rac1 ~]$ agctl status goldengate source_ogg
  22. Goldengate instance 'source_ogg' is running on rac1
  23. --重启主机rac1
  24. --ogg实例服务会自动转移到节点二rac2
  25. [oracle@rac2 ogg]$ agctl status goldengate source_ogg
  26. Goldengate instance 'source_ogg' is running on rac2
  27. [oracle@rac2 ogg]$ ./ggsci
  28. Oracle GoldenGate Command Interpreter for Oracle
  29. Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
  30. Linux, x64, 64bit (optimized), Oracle 11g on Oct 17 2019 23:13:12
  31. Operating system character set identified as UTF-8.
  32. Copyright (C) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
  33. GGSCI (rac2) 1> info all
  34. Program Status Group Lag at Chkpt Time Since Chkpt
  35. MANAGER RUNNING
  36. EXTRACT RUNNING E_BSS_1 00:00:02 00:00:10
  37. EXTRACT RUNNING P_BSR_1 00:00:00 00:00:02
  38. GGSCI (rac2) 2>
  39. --目标端进程无感知
  40. --源端和目标端两边的数据同步一致

        2 目标端OGG节点主机重启:

  1. --当前目标端ogg所在节点主机rac1
  2. [oracle@rac1 ogg]$ agctl status goldengate target_ogg
  3. Goldengate instance 'target_ogg' is running on rac1
  4. --重启主机rac1
  5. --ogg实例服务会自动转移到节点二rac2
  6. [oracle@rac2 ~]$ agctl status goldengate target_ogg
  7. Goldengate instance 'target_ogg' is running on rac2
  8. GGSCI (rac2) 1> info all
  9. Program Status Group Lag at Chkpt Time Since Chkpt
  10. MANAGER RUNNING
  11. REPLICAT RUNNING R_ING_1 00:00:00 00:00:08
  12. GGSCI (rac2) 2>
  13. --源端的投递进程会短暂abend,因为vip要从目标节点一漂移到节点二,所以会短暂的连接不上,但由于配置了autorestart参数,所以mgr进程会尝试重新start投递进程
  14. GGSCI (rac2) 11> info all
  15. --出现abend
  16. Program Status Group Lag at Chkpt Time Since Chkpt
  17. MANAGER RUNNING
  18. EXTRACT RUNNING E_BSS_1 00:00:02 00:00:06
  19. EXTRACT ABENDED P_BSR_1 00:00:00 00:01:39
  20. --自己恢复正常
  21. GGSCI (rac2) 12> info all
  22. Program Status Group Lag at Chkpt Time Since Chkpt
  23. MANAGER RUNNING
  24. EXTRACT RUNNING E_BSS_1 00:00:02 00:00:00
  25. EXTRACT RUNNING P_BSR_1 00:00:00 00:00:04
  26. --源端和目标端两边的数据同步一致
  27. source:
  28. SQL> select count(*) from test.test;
  29. COUNT(*)
  30. ----------
  31. 294962
  32. SQL>
  33. target:
  34. select count(*) from test1.test
  35. COUNT(*)
  36. ----------
  37. 294962
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
RAC环境下配置OGG同步
修改自:收录的一篇很详细很全的OGG配置文档
oracle+goldengate安装以及单向复制配置doc
goldengate_安装配置指南
Oracle GoldenGate安装配置教程
Oralce GoldenGate与Kafka集群集成
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服