设为首页 加入收藏

TOP

Oracle 11g GoldenGate与Oracle 11g数据同步(一)
2017-04-21 10:22:50 】 浏览:575
Tags:Oracle 11g GoldenGate 数据 同步

1.下载,安装GoldenGate软件(两个节都需要安装)


GoldenGate可从以下信息的得到下载:


如果取消关注Linux公社公众号,即使再次关注,也将无法提供本服务!


链接:http://pan.baidu.com/s/1c25pSPE  密码:获得见上面的方法,地址失效请在下面留言。


------------------------------------------分割线------------------------------------------


也可以到Linux公社1号FTP服务器下载


------------------------------------------分割线------------------------------------------ 


[oracle@oracleogg ~]$ unzip ogg112101_fbo_ggs_Linux_x64_ora11g_64bit.zip
[oracle@oracleogg ~]$ tar xvf fbo_ggs_Linux_x64_ora11g_64bit.tar -C /u01/glodengate/
[oracle@oracleogg ~]$ cd /u01/glodengate/
[oracle@oracleogg glodengate]$ vim ~/.bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.1/db_1
export ORACLE_SID=oracle11g
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/u01/glodengate/lib    --必须要设置,否则出错


[oracle@oracleogg glodengate]$ ./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 (oracleogg) 1> create subdirs    --安装glodengate
Creating subdirectories under current directory /u01/glodengate
Parameter files                /u01/glodengate/dirprm: already exists
Report files                  /u01/glodengate/dirrpt: created
Checkpoint files              /u01/glodengate/dirchk: created
Process status files          /u01/glodengate/dirpcs: created
SQL script files              /u01/glodengate/dirsql: created
Database definitions files    /u01/glodengate/dirdef: created
Extract data files            /u01/glodengate/dirdat: created
Temporary files                /u01/glodengate/dirtmp: created
Stdout files                  /u01/glodengate/dirout: created
GGSCI (oracleogg) 2>
[oracle@oracleogg glodengate]$ ls -lF | grep '/$'    --查看glodengate创建的目录
drwxr-x--- 2 oracle oinstall    4096 Apr 23  2012 cfg/
drwxrwxr-x 2 oracle oinstall    4096 Nov 19 19:36 dirchk/    --检查点文件
drwxrwxr-x 2 oracle oinstall    4096 Nov 19 19:36 dirdat/    --extract文件
drwxrwxr-x 2 oracle oinstall    4096 Nov 19 19:36 dirdef/
drwxr-x--- 2 oracle oinstall    4096 Apr 23  2012 dirjar/
drwxrwxr-x 2 oracle oinstall    4096 Nov 19 19:36 dirout/
drwxrwxr-x 2 oracle oinstall    4096 Nov 19 19:36 dirpcs/
drwxr-x--- 2 oracle oinstall    4096 Apr 23  2012 dirprm/    --参数文件目录
drwxrwxr-x 2 oracle oinstall    4096 Nov 19 19:36 dirrpt/    --日志文件
drwxrwxr-x 2 oracle oinstall    4096 Nov 19 19:36 dirsql/    --sql脚本文件
drwxrwxr-x 2 oracle oinstall    4096 Nov 19 19:36 dirtmp/    --临时文件
drwxr-x--- 7 oracle oinstall    4096 Apr 23  2012 UserExitExamples/
[oracle@oracleogg glodengate]$



2.获取语法帮助信息
(1).必须要ggsci根目录进入ggsci终端,否则获取不到帮助信息
(2).帮助语法: help <command

首页 上一页 1 2 3 4 5 6 下一页 尾页 1/6/6
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇ERROR OGG-01172 Discard file (/.. 下一篇Oracle 11g DataGuard主备切换

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目