GoldenGate的安装与配置(三)oracle——oracle单向复制(linux-windows)

本文详细介绍了如何配置Oracle GoldenGate进行从Linux到Windows平台的单向数据复制。首先,文章说明了在Windows上安装GoldenGate软件的步骤,包括设置源数据库为归档模式、创建用户和授权、执行安装脚本。然后,文章详细描述了在Linux源库上的配置,如启动Manager、配置Extract和Pump进程。最后,文章讲解了在Windows目标库上的配置,包括设置Manager、创建检查表和配置Replicat进程。整个过程旨在确保数据同步的正确性和有效性。
摘要由CSDN通过智能技术生成

一.GG软件在windows平台的安装:

1.官方文档要求用administrator权限安装(需要系统管理员的权限),双击C:\u01\ogg\ggsci.exe


2.GoldenGate通过抓取源端数据库重做日志进行分析,将获取的数据应用到目标端,实现数据同步。因此,源数据库需要必须处于归档模式,并启用附加日志和强制日志。

SQL> startup mount;
ORACLE 例程已经启动。
Total System Global Area  730714112 bytes
Fixed Size                  2284824 bytes
Variable Size             486540008 bytes
Database Buffers          234881024 bytes
Redo Buffers                7008256 bytes
数据库装载完毕。
SQL> alter database archivelog;
数据库已更改。
SQL> alter database open;
数据库已更改。
SQL> alter database force logging;
数据库已更改。
SQL> alter database add supplemental log data;
数据库已更改。
SQL> alter system set recyclebin=off scope=spfile;
系统已更改。

3. 创建存放DDL信息的user并赋权

SQL> create user ggate identified by ggate default tablespace users temporary tablespace temp;
用户已创建。
SQL> grant connect,resource to ggate;
授权成功。
SQL> grant execute on utl_file to ggate;
授权成功。
SQL> GRANT CREATE TABLE,CREATE SEQUENCE TO ggate;
授权成功。

4.退出所有使用Oracle 的session,然后使用SYSDBA权限的用户执行如下脚本

C:\Users\Administrator.SERVER2008>cd c:\u01\ogg\
c:\u01\ogg>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on 星期四 10月 23 09:45:45 2014
Copyright (c) 1982, 2013, Oracle.  All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>@marker_setup.sql
Marker setup script
You will be prompted for the name of a schema for the Oracle GoldenGate database
 objects.
NOTE: The schema must be created prior to running this script.
NOTE: Stop all DDL replication before starting this installation.
Enter Oracle GoldenGate schema name:ggate
Marker setup table script complete, running verification script...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值