配置Extract:
添加extract服务,并启动extract服务:
GGSCI (ogg)
11
> add extract eini_1,sourceistable
EXTRACT added.
校验Extract process
GGSCI (ogg)
14
> info extract *,tasks
EXTRACT EINI_1 Initialized
2014
-09
-10
14
:
28
Status STOPPED
Checkpoint Lag Not Available
Log Read Checkpoint Not Available
First Record Record
0
Task SOURCEISTABLE
编辑extract参数文件
GGSCI (ogg)
18
>EDIT PARAMS EINI_1
EXTRACT EINI_1
SETENV (NLS_LANG=AMERICAN_AMERICA.ZHS16GBK)
USERID ogg, PASSWORD ogg
RMTHOST
192.168.
8.249
,MGRPORT
7809
RMTTASK REPLICAT, GROUP RINI_1
TABLE scott.EMP_OGG;
GGSCI (ogg)
15
> start eini_1
Sending START request to MANAGER ...
EXTRACT EINI_1 starting
GGSCI (ogg)
16
> info eini_1
EXTRACT EINI_1 Initialized
2014
-09
-10
14
:
28
Status RUNNING
Checkpoint Lag Not Available
Log Read Checkpoint Not Available
First Record Record
0
Task SOURCEISTABLE
GGSCI (ogg)
17
> view report eini_1
2014
-09
-10
14
:
30
:
34
INFO OGG
-01017
Wildcard resolution set to IMMEDIATE because SOURCEISTABLE is used.
***********************************************************************
Oracle GoldenGate Capture
for
Oracle
Version
11.2.
1.0.
1
OGGCORE_11
.2.1.
0.
1_PLATFORMS_120423.0230_FBO
Linux, x86, 32bit (optimized), Oracle 11g
on
Apr
23
2012
08
:
20
:
38
Copyright (C)
1995
,
2012
, Oracle
and
/
or
its affiliates. All rights reserved.
Starting
at
2014
-09
-10
14
:
30
:
34
***********************************************************************
Operating System Version:
Linux
Version #
1
SMP Wed Sep
1
01
:
26
:
34
EDT
2010
, Release
2.6.
32
-71.
el6.i686
Node: ogg
Machine: i686
soft limit hard limit
Address Space Size : unlimited unlimited
Heap Size : unlimited unlimited
File Size : unlimited unlimited
CPU Time : unlimited unlimited
Process id:
6159
Description:
***********************************************************************
** Running
with
the following parameters **
***********************************************************************
2014
-09
-10
14
:
30
:
34
INFO OGG
-03035
Operating system character set identified
as
UTF
-8.
Locale: en_US, LC_ALL:.
EXTRACT EINI_1
SETENV (NLS_LANG=AMERICAN_AMERICA.ZHS16GBK)
Set environment variable (NLS_LANG=AMERICAN_AMERICA.ZHS16GBK)
USERID ogg,PASSWORD ***
RMTHOST
192.168.
8.249
,MGRPORT
7809
RMTTASK REPLICAT,GROUP RINI_1
TABLE scott.EMP_OGG;
Using the following key columns
for
source table SCOTT.EMP_OGG: EMPNO.
2014
-09
-10
14
:
30
:
36
INFO OGG
-01815
Virtual Memory Facilities
for
: COM
anon alloc: mmap(MAP_ANON) anon free: munmap
file alloc: mmap(MAP_SHARED) file free: munmap
target directories:
/u01/ogg/dirtmp.
CACHEMGR virtual memory values (may have been adjusted)
CACHESIZE: 2G
CACHEPAGEOUTSIZE (normal): 4M
PROCESS VM AVAIL FROM OS (min):
2.
75G
CACHESIZEMAX (strict force to disk):
2.
47G
Database Version:
Oracle Database 11g Enterprise Edition Release
11.2.
0.1.
0
- Production
PL/SQL Release
11.2.
0.1.
0
- Production
CORE
11.2.
0.1.
0
Production
TNS
for
Linux: Version
11.2.
0.1.
0
- Production
NLSRTL Version
11.2.
0.1.
0
- Production
Database Language
and
Character
Set:
NLS_LANG =
"AMERICAN_AMERICA.ZHS16GBK"
NLS_LANGUAGE =
"AMERICAN"
NLS_TERRITORY =
"AMERICA"
NLS_CHARACTERSET =
"ZHS16GBK"
2014
-09
-10
14
:
30
:
36
WARNING OGG
-01223
TCP/IP error
111
(Connection refus
Source Context :
SourceModule : [er.idlx]
SourceID : [/net/ap1109nap-vlan900/vol/ifarm_ports/ifarm_views/aime_oggcore_210874/oggcore/OpenSys/src/app/er/idlx.c]
SourceFunction : [idlx_tcp_error]
SourceLine : [
1414
]
ThreadBacktrace : [
10
] elements
: [/u01/ogg/libgglog.so(CMessageContext::AddThreadContext()+
0x26
) [
0x1f9166
]]
: [/u01/ogg/libgglog.so(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...)+
0x2c5
) [
0x1f5125
]]
: [/u01/ogg/libgglog.so(_MSG_ERR_TCP_GENERIC(CSourceContext*, char const*, CMessageFactory::MessageDisposition)+
0x36
) [
0
x1d755c]]
: [/u01/ogg/extract() [
0x8148d0c
]]
: [/u01/ogg/extract(IDLX_tcp_send_data+
0xf4
) [
0x8149ae0
]]
: [/u01/ogg/extract(IDLX_send_session_begin_cmd+
0xa6
) [
0x8149e12
]]
: [/u01/ogg/extract(process_source_files()+
0x584
) [
0x819662e
]]
: [/u01/ogg/extract(main+
0x5fc
) [
0x819820c
]]
: [/lib/libc.so
.6
(__libc_start_main+
0xe6
) [
0x8aecc6
]]
: [/u01/ogg/extract(__gxx_personality_v0+
0x3ad
) [
0x81144e1
]]
2014
-09
-10
14
:
32
:
35
ERROR OGG
-01224
TCP/IP error
111
(Connection refused); retries exceeded.
2014
-09
-10
14
:
32
:
35
ERROR OGG
-01668
PROCESS ABENDING.