本文主要是介绍OGG 11.2.1.0.1安装过程及问题解决,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
OGG安装过程
1、由于测试环境有一台服务器上面已经安装了OGG,所以只需要在另一台机器上搭建OGG的环境,两台服务器可以相互PING通,并且都装了ORACLE数据库。
Oracle 版本:11.2.0.3
Ogg版本:11.2.1.0.1
2、上传并解压安装介质。
chown -R oracle:oinstall ogg112101_fbo_ggs_Linux_x64_ora11g_64bit.zip
mkdir -p /home/oracle/ogghome
unzip ogg112101_fbo_ggs_Linux_x64_ora11g_64bit.zip -d /home/oralce/ogghome
cd /home/oracle/ogghome
tar -xvf fbo_ggs_Linux_x64_ora11g_64bit.tar
3、登录OGG测试。
node2-> ./ggsci
Oracle GoldenGate Command Interpreter for Oracle
Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Apr 23 2012 08:32:14
Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
GGSCI (node2.localdomain) 1>
如果LD_LIBRARY_PATH变量设置正确,会像上面演示一样正确进入命令行,如果提示找不到so文件,就需要 查看LD_LIBRARY_PATH变量是否正确设置。
4、创建OGG用户。
Create user ogg identified by ogg default tablespace OGG;
5、给OGG用户授权,也可以直接授予DBA的权限再回收。
SQL> grant CONNECT, RESOURCE to ogg;
Grant succeeded.
SQL> grant SELECT ANY DICTIONARY, SELECT ANY TABLE to ogg;
Grant succeeded. SQL> grant ALTER ANY TABLE to ogg;
Grant succeeded.
SQL> grant FLASHBACK ANY TABLE to ogg;
Grant succeeded.
SQL> grant EXECUTE on DBMS_FLASHBACK to ogg;
Grant succeeded.
SQL> grant insert any table to ogg;
Grant succeeded.
SQL> grant update any table to ogg;
Grant succeeded.
SQL> grant execute on utl_file to ogg;
Grant succeeded.
6、打开数据库的附加日志和force log。
若没有开启,可通过下面命令开启。
alter database force logging;
alter database add SUPPLEMENTAL log data;
7、如果想让OGG支持DDL操作,还需要以下几个脚本,这几个脚本是OGG安装目录中自带的,不是ORACLE自带的。(在此之前断开数据库的所有连接)
执行marker_setup.sql
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:ogg
Marker setup table script complete, running verification script...
Please enter the name of a schema for the GoldenGate database objects:
Setting schema name to OGG
MAR
这篇关于OGG 11.2.1.0.1安装过程及问题解决的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!