OGG的工作原理:
capture实时的读取交易日志,并不是傻傻的捕捉,捕捉数据变化并可实现过滤。别的表的改变我就不需要记录。
队列文件:没有提交,暂存数据变化到队列中。
传输:对数据压缩和加密。
Delivery:执行所需的数据变化,然后将数据变化提交到目的库。
( 容灾产品都是这样的工作原理 )
?亚秒级实时数据复制
?支持异构环境
?可靠性:断点续传,不影响系统连续运行。
?高性能,对生产系统影响小
? 以事务为单位复制 -事务完整性
?整合:ETL tools, Message Service
?灵活拓扑结构
?复制冲突检测和解决
?事件标记(Event marker)
?路由和压缩:TCP/IP,LAN,WAN
?加密:128-位,SSL
?自定义延时应用修改
?根据事务大小和数量自动管理内存
? 亚秒级复制
? 不依赖源数据库的触发器和规则,对源数据库影响小。
同类产品stream
---------------------------------------------------------------------------------------------
我们可以配置多个capture捕捉器, 如:12g redo log的能力,惠普机 器20个cpu
veridate
采用的调整方法:
?并行应用(Parallel Apply)
?不影响生产节点(远程应用,Remote Apply)
?峰值–4.2百万操作/分钟或者60亿操作/天(达到5,000 ops/sec 每个应用进程(apply process),并且平均每条记录约200 bytes
[oracle@linux6 ogg]$ pwd
/ogg
[oracle@linux6 ogg]$ tar -xvf fbo_ggs_Linux_x64_ora10g_64bit.tar
打包就安装成功
配置环境变量
点击( 此处 )折叠或打开
-
[ oracle@linux6 ogg ] $ cd
-
[ oracle@linux6 ~ ] $ pwd
-
/home/oracle
-
export LD_LIBRARY_PATH = $ ORACLE_HOME/lib
点击( 此处 )折叠或打开
-
[ oracle@linux6 ogg ] $ . / ggsci
-
. / ggsci : error while loading sharedlibraries : libnnz10 . so : cannot open shared object file : No such file ordirectory
点击( 此处 )折叠或打开
-
[ oracle @ linux6 lib ] $ ls - l | grep libnnz
-
-
- rw - r --r--. 1 oracle oinstall 11595642 Aug 2 2009 libnnz11.a
-
- rw - r --r--. 1 oracle oinstall 7899997 Aug 2 2009 libnnz11.so
-
-
[ oracle @ linux6 lib ] $ ln - s libnnz11 . so libnnz10 . so
-
-
[ oracle @ linux6 lib ] $ ls - l | grep libnnz
-
-
lrwxrwxrwx . 1 oracle oinstall 11 Aug 27 00 : 32 libnnz10 . so - > libnnz11 . so
-
- rw - r --r--. 1 oracle oinstall 11595642 Aug 2 2009 libnnz11.a
进入ogg
点击( 此处 )折叠或打开
-
oracle @ boweston : / ogg > . / ggsci
-
-
Oracle GoldenGate Command Interpreter for Oracle
-
Version 11 . 2 . 1 . . 1 OGGCORE_11 . 2 . 1 . . 1_PLATFORMS_120423 . 0230_FBO
-
Linux , x64 , 64bit ( optimized ) , Oracle 10g on Apr 23 2012 07 : 30 : 46
-
-
Copyright ( C ) 1995 , 2012 , Oracle and / or its affiliates . All rights reserved .
-
-
-
GGSCI ( boweston ) 2 > help
-
-
-
GGSCI Command Summary :
-
-
Object : Command :
-
SUBDIRS CREATE
-
ER INFO , KILL , LAG , SEND , STATUS , START , STATS , STOP
-
EXTRACT ADD , ALTER , CLEANUP , DELETE , INFO , KILL ,
-
LAG , REGISTER , SEND , START , STATS , STATUS , STOP
-
UNREGISTER
-
EXTTRAIL ADD , ALTER , DELETE , INFO
-
GGSEVT VIEW
-
MANAGER INFO , SEND , START , STOP , STATUS
-
MARKER INFO
-
PARAMS EDIT , VIEW
-
REPLICAT ADD , ALTER , CLEANUP , DELETE , INFO , KILL , LAG , SEND ,
-
START , STATS , STATUS , STOP
-
REPORT VIEW
-
RMTTRAIL ADD , ALTER , DELETE , INFO
-
TRACETABLE ADD , DELETE , INFO
-
TRANDATA ADD , DELETE , INFO
-
SCHEMATRANDATA ADD , DELETE , INFO
-
CHECKPOINTTABLE ADD , DELETE , CLEANUP , INFO
-
-
Commands without an object :
-
( Database ) DBLOGIN , LIST TABLES , ENCRYPT PASSWORD , FLUSH SEQUENCE
-
MININGDBLOGIN
-
( DDL ) DUMPDDL
-
( Miscellaneous ) FC , HELP , HISTORY , INFO ALL , OBEY , SET EDITOR , SHELL ,
-
SHOW , VERSIONS , ! ( note : you must type the word
-
COMMAND after the ! to display the ! help topic . )
-
i . e . : GGSCI ( sys1 ) > help ! command
-
-
-
-
For help on a specific command , type HELP < command > < object > .
-
-
Example : HELP ADD REPLICAT
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29990276/viewspace-1388803/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29990276/viewspace-1388803/