ogg单机同步复制操作手册(共30页).docx
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《ogg单机同步复制操作手册(共30页).docx》由会员分享,可在线阅读,更多相关《ogg单机同步复制操作手册(共30页).docx(30页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、精选优质文档-倾情为你奉上一、 概要信息1.1文档简介该文档主要用于指导利用OGG来进行数据的同步复制,其中源数据库为单机,目标数据库为单机。OGG相关安装软件版本为12c,主要包括如下:1. OGG,主要用于源库与目标库的数据同步2. OGG Veridata,主要用于同步数据校验温馨提醒:1. 请仔细阅读该文档注意事项!1.2机器环境1.2.1源机器信息操作系统版本Redhat 6.4数据库版本11.2.0.4.0主机名oggsrcIP地址192.168.1.1861.2.2目标机器信息操作系统版本Redhat 6.4集群数据库版本11.2.0.4.0主机名oggtgtIP地址192.16
2、8.1.1871.3软件环境软件名称软件版本部署节点备注Oracle GoldenGate12.2.0.1.1oggsrc(源库) oggtgt(目标库)Oracle ADR12.2.1.0.0oggsrc(源库) oggtgt(目标库)JDK1.8oggsrc(源库) oggtgt(目标库)1.4软件包信息软件名称软件包名称Oracle GoldenGate 12fbo_ggs_Linux_x64_shiphome.zipOracle Application Development Runtime Infrastructure(ADR)fmw_12.2.1.0.0_infrastructur
3、e_Disk1_1of1.zipJDKjdk-8u112-linux-x64.rpm1.5注意事项-软件安装:对于RAC的OGG,有三种方式选择:1.oracle推荐直接安装在共享文件系统上(共享存储/OCFS/AFS);2.也可以安装在RAC所有节点的本地目录,但必需保证所有节点的安装路径一致;3.还可以只安装其中一个节点,但必需保证安装OGG的节点可以访问其它节点的归档目录(本文档使用)-关于归档本文档中,源库归档目录为本地目录-关于IP配置:RAC上的VIP必需为固定IP且与管理IP是同一网段,不可以是DHCP获取-关于主机hosts表安装过程中涉及到的主机名及IP对应关系都配置到每台主
4、机的hosts表中-关于时间同步:所有节点必需配有时间同步功能保证所有节点的操作系统时间一致,因为OGG的EXTRACT进程是通过对比commit时间(即操作系统时间)来决定是否传输相关的数据-关于COMPATIBLE:确保所有节点的数据库COMPATIBLE参数已经设置-OGG数据存放路径将OGG数据存放路径mount在单边,防止相同的进程在其它节点启动引起进程冲突-源库数据对象是否支持OGG对数据对象支持有一定的限制,可以通过脚本提前检查-关于数据迁移方式本文档推荐使用数据泵方式进行数据迁移,因此需要提前将目标数据库建好二、 OGG搭建环境准备2.1源库操作2.1.1开启归档-归档目录为所
5、有节点共享目录-节点SQL alter system set log_archive_dest_1=location=/arch scope=spfile sid=*; System altered.SQL alter system set recyclebin=off scope=spfile;-For an Oracle 10g source, the system recycle bin must be disabled. For Oracle 11g and later, it can be enabled.System altered. SQL shutdown immediate
6、OGGSRC:/home/oracle$export ORACLE_SID=oggsrcOGGSRC:/home/oracle$sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 - Production on Mon Sep 19 16:29:11 2016 Copyright (c) 1982, 2008, Oracle. All rights reserved. Connected to an idle instance. SQL startup mount; ORACLE instance started. Total System Glo
7、bal Area bytes Fixed Size bytes Variable Size bytes Database Buffers bytes Redo Buffers bytes Database mounted. SQL alter database archivelog;Database altered.SQL archive log list;Database log mode Archive ModeAutomatic archival EnabledArchive destination /archOldest online log sequence 4Next log se
8、quence to archive 7Current log sequence 7 SQL alter database open;Database altered.SQL alter system archive log current;System altered.2.1.2开启附加日志功能和force_logging-节点SQL SELECT supplemental_log_data_min, force_logging FROM v$database;SUPPLEME FOR- -NO NOSQL ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;Da
9、tabase altered.SQL alter database force logging;Database altered.SQL SELECT supplemental_log_data_min, force_logging FROM v$database;SUPPLEME FOR- -YES YESSQL ALTER SYSTEM SET ENABLE_GOLDENGATE_REPLICATION = TRUE SCOPE=BOTH;System altered.2.2目标库操作2.2.1开启归档(可不必打开)-节点,归档目录/arch非共享SQL alter system set
10、log_archive_dest_1=location=/arch scope=spfile sid=*; System altered. $export ORACLE_SID=oggtgt $sqlplus / as sysdba SQL startup mount; ORACLE instance started. Total System Global Area bytes Fixed Size bytes Variable Size bytes Database Buffers bytes Redo Buffers bytes Database mounted. SQL alter d
11、atabase archivelog;Database altered.SQL archive log list;Database log mode Archive ModeAutomatic archival EnabledArchive destination /archOldest online log sequence 4Next log sequence to archive 7Current log sequence 7 SQL alter database open;Database altered.SQL alter system archive log current;Sys
12、tem altered.2.2.2开启参数ENABLE_GOLDENGATE_REPLICATION/11.2.0.4版本的必须设置该参数为trueSQL ALTER SYSTEM SET ENABLE_GOLDENGATE_REPLICATION = TRUE SCOPE=BOTH;System altered.三、 OGG搭建3.1 OGG软件安装-此处只在源库节点xxxx和目标库节点xxxx上操作,其它节点不操作!此处只以xxx为例!3.1.1创建OGG目录-节点rootoggsrc media# mkdir -p /u01/ogg/dirdatrootoggsrc media# cho
13、wn -R oracle:oinstall /u01/oggrootoggsrc media# chmod -R 775 /u01/ogg rootoggsrc media# su - oracle3.1.2配置OGG用户环境变量-此处用oracle用户安装OGG添加或修改oracle用户环境变量export OGG_HOME=/u01/oggexport PATH=.:$PATH:$HOME/bin:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:$OGG_HOMEexport LIBPATH=$ORACLE_HOME/lib:$OGG_HOME3.1.3安装OGG软件
14、oracleoggsrc $ cd /u01/media/ oracleoggsrc media$ ls -lrttotal drwxr-xr-x 7 oracle oinstall 4096 Aug 26 2013 database-rw-r-r-. 1 oracle oinstall Jul 18 20:43 p_Linux-x86-64_2of7.zip-rw-r-r-. 1 oracle oinstall Jul 18 20:44 p_Linux-x86-64_1of7.zip-rw-r-r- 1 oracle oinstall Jul 18 23:55 fmw_12.2.1.0.0_
15、infrastructure_Disk1_1of1.zip-rw-r-r- 1 oracle oinstall Jul 19 00:00 fbo_ggs_Linux_x64_shiphome.zip-rw-r-r- 1 oracle oinstall Jul 19 00:04 jdk-8u112-linux-x64.rpm-rw-r-r- 1 oracle oinstall Jul 19 05:55 pdksh-5.2.14-37.el5_8.1.x86_64.rpm-rw- 1 oracle oinstall Jul 19 06:10 coreoracleoggsrc media$ unzi
16、p -q fbo_ggs_Linux_x64_shiphome.ziporacleoggsrc media$ cd fbo_ggs_Linux_x64_shiphome$cd Disk1$lsinstall response runInstaller stageOGGSRC:/u01/media/fbo_ggs_AIX_ppc_shiphome/Disk1$./runInstaller3.2源库OGG配置-配置OGG全部用oracle用户去操作!3.2.1创建OGG应用子目录OGGSRC:/home/oracle$cd /u01/oggOGGSRC:/u01/ogg$ggsciOracle G
17、oldenGate Command Interpreter for OracleVersion 12.2.0.1.1 OGGCORE_12.2.0.1.0_PLATFORMS_.1401_FBOAIX 6, ppc, 64bit (optimized), Oracle 11g on Jan 21 2016 09:52:07Operating system character set identified as ISO-8859-1.Copyright (C) 1995, 2015, Oracle and/or its affiliates. All rights reserved.GGSCI
18、(OGGSRC) 1 create subdirsCreating subdirectories under current directory /u01/oggParameter files /u01/ogg/dirprm: already existsReport files /u01/ogg/dirrpt: createdCheckpoint files /u01/ogg/dirchk: createdProcess status files /u01/ogg/dirpcs: createdSQL script files /u01/ogg/dirsql: createdDatabase
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ogg 单机 同步 复制 操作手册 30
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内