GoldenGate将Oracle数据同步到GreenPlum(九)

2014-11-24 16:55:47 · 作者: · 浏览: 3
***********************************
Oracle GoldenGate Capture for Oracle
Version 11.1.1.0.0 Build 078
Linux, x64, 64bit (optimized), Oracle 11 on Jul 28 2010 14:58:37

Copyright (C) 1995, 2010, Oracle and/or its affiliates. All rights reserved.




Starting at 2014-02-16 00:03:46
***********************************************************************


Operating System Version:
Linux
Version #1 SMP Fri Jul 22 04:43:29 EDT 2011, Release 2.6.18-274.el5
Node: mdw
Machine: x86_64
soft limit hard limit
Address Space Size : unlimited unlimited
Heap Size : unlimited unlimited
File Size : unlimited unlimited
CPU Time : unlimited unlimited


Process id: 16158


Description:


***********************************************************************
** Running with the following parameters **
***********************************************************************
extract ffwriter
CUSEREXIT ./flatfilewriter.so CUSEREXIT PASSTHRU INCLUDEUPDATEBEFORES, PARAMS "ffwriter.properties"
/ggs/ogg/extract running with user exit library ./flatfilewriter.so, compatiblity level (2) is current.
sourcedefs ./dirdef/scott.def
table SCOTT.*;


CACHEMGR virtual memory values (may have been adjusted)
CACHEBUFFERSIZE: 64K
CACHESIZE: 4G
CACHEBUFFERSIZE (soft max): 4M
CACHEPAGEOUTSIZE (normal): 4M
PROCESS VM AVAIL FROM OS (min): 4.15G
CACHESIZEMAX (strict force to disk): 4.10G




***********************************************************************
Started Oracle GoldenGate for Flat File
Version 11.1.1.0.0
***********************************************************************


***********************************************************************
** Run Time Messages **
***********************************************************************


Opened trail file ./dirdat/eb000000 at 2014-02-16 00:03:47






======================================================
源端测试


[oracle@vzwc1 ~]$ sqlplus scott


SQL*Plus: Release 11.2.0.4.0 Production on Sun Feb 16 00:06:30 2014


Copyright (c) 1982, 2013, Oracle. All rights reserved.


Enter password:


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options


SQL> delete from emp where rownum=1;


1 row deleted.


SQL> commit;


Commit complete.


SQL> update emp set ename='ZhongWC' where empno='7839';


1 row updated.


SQL> commit;


Commit complete.




======================================================
查看目标端/ggs/ogg/dirout生成的FlatFile


[gpadmin@mdw dirout]$ pwd
/ggs/ogg/dirout
[gpadmin@mdw dirout]$ ll
total 12
-rw-rw-rw- 1 gpadmin gpadmin 45 Feb 16 00:06 pump_SCOTT_EMP_2014-02-16_00-06-44_00000_data.dsv
-rw-rw-rw- 1 gpadmin gpadmin 95 Feb 16 00:09 pump_SCOTT_EMP_2014-02-16_00-09-42_00001_data.dsv
-rw-rw-rw- 1 gpadmin gpadmin 118 Feb 16 00:09 SCOTT.EMPcontrol
[gpadmin@mdw dirout]$ cat pump_SCOTT_EMP_2014-02-16_00-09-42_00001_data.dsv
"U"|"2014-02-16 00:09:36.962844"|7839|"ZhongWC"|"PRESIDENT"||"1981-11-17:00:00:00"|5000.00||10
[gpadmin@mdw dirout]$ cat pump_SCOTT_EMP_2014-02-16_00-06-44_00000_data.dsv

"D"|"2014-02-16 00:06:38.982882"|7369|||||||

GoldenGate没有直接针对GreenPlum数据库进行数据加载的接口,可以使用Go