OGG "Loading data from file to Replicat"table静态数据同步配置过程
OGG "Loading data from file to Replicat"table静态数据同步配置过程
一个、mgr过程
GGSCI (lei1) 3> view params mgr port 7809
二、抽取进程extftor
GGSCI (lei1) 4> view params extftor SOURCEISTABLE userid goldengate, password yyyyy
rmthost 192.168.100.189, mgrport 7809 RMTFILE /u02/ggs/dirdat/pp, MAXFILES 1000, MEGABYTES 100 table test.xxx;
三、复制进程repftor
GGSCI (lei1) 5> view params repftor SPECIALRUN
END RUNTIME
userid goldengate, password yyyy
exttrail /u02/ggs/dirdat/pp
ASSUMETARGETDEFS map test.xxx target testhvr.xxxx;
请注意:
上面的參数是exttrail(不是extfile),exttrail參数是与抽取进程的MAXFILES和MEGABYTES配合使用的,通俗的说,exttrail是相应的/u02/ggs/dirdat/pp000000。/u02/ggs/dirdat/pp000001,/u02/ggs/dirdat/pp000002。/u02/ggs/dirdat/pp000003等等。
而extfile 參数,相应的是/u02/ggs/dirdat/pp
四、从操作系统命令行发起extract(注意:此种extract,ggsci的info all是看不到的)
[oracle@lei1 ggs]$ cd /u02/ggs
[oracle@lei1 ggs]$ pwd
/u02/ggs
[oracle@lei1 ggs]$ extract paramfile /u02/ggs/dirprm/extftor.prm reportfile /u02/ggs/dirrpt/EXTFTOR.rpt
---->请务必确保发起上面extract的securecrt不中断! 建议在vncserver或者以nohup方式运行此extract。 nohup方式运行请參考:http://blog.csdn.net/msdnchina/article/details/46333375
此时,extract会在/u02/ggs/dirdat/下例如以下的文件:
[oracle@lei1 dirdat]$ pwd
/u02/ggs/dirdat
[oracle@lei1 dirdat]$ ls -lrt pp* | wc -l
424
[oracle@lei1 dirdat]$
等待extract完毕(能够从/u02/ggs/dirrpt/EXTFTOR.rpt中推断):
---------------------------------------以上省略-------------------------------------------
2015-06-02 01:35:10 INFO OGG-01026 Rolling over remote file /u02/ggs/dirdat/pp000422. 2015-06-02 01:35:22 INFO OGG-01026 Rolling over remote file /u02/ggs/dirdat/pp000423. ***********************************************************************
* ** Run Time Statistics ** *
*********************************************************************** Report at 2015-06-02 01:35:32 (activity since 2015-06-02 00:02:59) Output to /u02/ggs/dirdat/pp: From Table TEST.XXXX:
# inserts: 3005 --------->抽取了3005条记录
# updates: 0
# deletes: 0
# discards: 0 REDO Log Statistics
Bytes parsed 0
Bytes output 43269697047
--->此处是该rpt文件的终点。
五、从操作系统命令行发起repftor(注意:此种repftor,ggsci的info all是看不到的)
[oracle@lei1 ggs]$ cd /u02/ggs
[oracle@lei1 ggs]$ pwd
/u02/ggs
[oracle@lei1 ggs]$replicat paramfile /u02/ggs/dirprm/repftor.prm reportfile /u02/ggs/dirrpt/REPFTOR.rpt
---->请务必确保发起上面replicat的securecrt不中断!建议在vncserver或者以nohup方式运行此replicat。
nohup方式运行请參考:http://blog.csdn.net/msdnchina/article/details/46333375
等待replicat完毕(能够从/u02/ggs/dirrpt/REPFTOR.rpt中推断):
---------------------------------------以上省略-------------------------------------------
Switching to next trail file /u02/ggs/dirdat/pp000422 at 2015-06-02 04:48:11 due to EOF, with current RBA 98987715
Opened trail file /u02/ggs/dirdat/pp000422 at 2015-06-02 04:48:11 Switching to next trail file /u02/ggs/dirdat/pp000423 at 2015-06-02 04:48:39 due to EOF, with current RBA 97717950
Opened trail file /u02/ggs/dirdat/pp000423 at 2015-06-02 04:48:39 ***********************************************************************
* ** Run Time Statistics ** *
*********************************************************************** Last record for the last committed transaction is the following:
___________________________________________________________________
Trail name : /u02/ggs/dirdat/pp000423
Hdr-Ind : E (x45) Partition : . (x04)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 83 (x0053) IO Time : 2015-06-02 00:03:04.183247
IOType : 5 (x05) OrigNode : 255 (xff)
TransInd : . (x03) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 0 AuditPos : 0
Continued : Y (x01) RecCount : 1 (x01) 2015-06-02 00:03:04.183247 Insert Len 83 RBA 82048951
Name: TEST.XXXX
___________________________________________________________________ Reading /u02/ggs/dirdat/pp000423, current RBA 96448185, 3005 records Report at 2015-06-02 04:48:52 (activity since 2015-06-02 03:03:36) From Table TEST.XXXX to TESTHVR.XXXX:
# inserts: 3005 --------->插入了3005条记录
# updates: 0
# deletes: 0
# discards: 0 Last log location read:
FILE: /u02/ggs/dirdat/pp000423
SEQNO: 423
RBA: 96448185
TIMESTAMP: 2015-06-02 00:03:04.183247
EOF: NO
READERR: 400 CACHE OBJECT MANAGER statistics CACHE MANAGER VM USAGE
vm current = 23.82M vm anon queues = 23.82M
vm anon in use = 0 vm file = 0
vm used max = 23.82M ==> CACHE BALANCED CACHE CONFIGURATION
cache size = 512M cache force paging = 881M
buffer min = 64K buffer highwater = 4M
pageout eligible size = 4M ================================================================================
RUNTIME STATS FOR SUPERPOOL CACHE Transaction Stats
trans active = 0 max concurrent = 3
non-zero total = 8.81K trans total = 8.81K CACHE File Caching
disk current = 0 disk total = 0
disk caching = 0 file cached = 0
file retrieves = 0 CACHE MANAGEMENT
buffer links = 52.83K anon gets = 0
forced unmaps = 0 cnnbl try = 0
cached out = 0 force out = 0 Allocation Request Distribution
< 128B: 0
128B: 0 0 | 512B: 2.94K 5.87K
2K: 19.79M 0 | 8K: 0 0
32K: 0 0 | 128K: 0 0
512K: 0 0 | 2M: 0 0
8M: 0 0 | 32M: 0 0
128M: 0 0 | 512M: 0 0
2G: 0 0 | 8G: 0 Cached Transaction Size Distribution
0: 0
< 4K: 0
4K: 0 0 | 16K: 0 0
64K: 0 0 | 256K: 0 0
1M: 0 0 | 4M: 8.81K 0
16M: 0 0 | 64M: 0 0
256M: 0 0 | 1G: 0 0
4G: 0 0 | 16G: 0 0
64G: 0 0 | 256G: 0 0
1T: 0 0 | 4T: 0 0
16T: 0 0 | 64T: 0 0
256T: 0 0 |1024T: 0 0 ================================================================================
CUMULATIVE STATS FOR SUPERPOOL CACHE Transaction Stats
trans active = 0 max concurrent = 0
non-zero total = 0 trans total = 0 CACHE File Caching
disk current = 0 disk total = 0
disk caching = 0 file cached = 0
file retrieves = 0 CACHE MANAGEMENT
buffer links = 0 anon gets = 0
forced unmaps = 0 cnnbl try = 0
cached out = 0 force out = 0 Allocation Request Distribution
< 128B: 0
128B: 0 0 | 512B: 0 0
2K: 0 0 | 8K: 0 0
32K: 0 0 | 128K: 0 0
512K: 0 0 | 2M: 0 0
8M: 0 0 | 32M: 0 0
128M: 0 0 | 512M: 0 0
2G: 0 0 | 8G: 0 Cached Transaction Size Distribution
0: 0
< 4K: 0
4K: 0 0 | 16K: 0 0
64K: 0 0 | 256K: 0 0
1M: 0 0 | 4M: 0 0
16M: 0 0 | 64M: 0 0
256M: 0 0 | 1G: 0 0
4G: 0 0 | 16G: 0 0
64G: 0 0 | 256G: 0 0
1T: 0 0 | 4T: 0 0
16T: 0 0 | 64T: 0 0
256T: 0 0 |1024T: 0 0 QUEUE Statistics:
num queues = 15 default index = 0
cur len = 0 max len = 0
q vm current = 0 vm max = 0
q hits = 61.61K q misses = 21 queue size q hits curlen maxlen cannibalized
0 64K 8.81K 3 3 0
1 128K 8.81K 3 3 0
2 256K 8.81K 3 3 0
3 512K 8.81K 3 3 0
4 1M 8.81K 3 3 0
5 2M 8.81K 3 3 0
6 4M 8.81K 3 3 0
7 8M 0 0 0 0
8 16M 0 0 0 0
9 32M 0 0 0 0
10 64M 0 0 0 0
11 128M 0 0 0 0
12 256M 0 0 0 0
13 512M 0 0 0 0
14 1G 0 0 0 0 ================================================================================
RUNTIME STATS FOR CACHE POOL #0
POOL INFO group: repftor id: p22586_BLOB
trans active = 0 trans concurrent (max) = 3
trans total = 8.81K (9015 )
flag = 0x00000030
last error = (0=<none>) Allocation Request Distribution
< 128B: 0
128B: 0 0 | 512B: 2.94K 5.87K
2K: 19.79M 0 | 8K: 0 0
32K: 0 0 | 128K: 0 0
512K: 0 0 | 2M: 0 0
8M: 0 0 | 32M: 0 0
128M: 0 0 | 512M: 0 0
2G: 0 0 | 8G: 0 ================================================================================
CUMULATIVE STATS FOR CACHE POOL #0
POOL INFO group: repftor id: p22586_BLOB
trans active = 0 trans concurrent (max) = 0
trans total = 0 (0 )
flag = 0x00000030
last error = (0=<none>) Allocation Request Distribution
< 128B: 0
128B: 0 0 | 512B: 0 0
2K: 0 0 | 8K: 0 0
32K: 0 0 | 128K: 0 0
512K: 0 0 | 2M: 0 0
8M: 0 0 | 32M: 0 0
128M: 0 0 | 512M: 0 0
2G: 0 0 | 8G: 0 QUEUE Statistics:
num queues = 15 default index = 0
cur len = 0 max len = 0
q vm current = 0 vm max = 0
q hits = 61.61K q misses = 21 queue size q hits curlen maxlen cannibalized
0 64K 8.81K 3 3 0
1 128K 8.81K 3 3 0
2 256K 8.81K 3 3 0
3 512K 8.81K 3 3 0
4 1M 8.81K 3 3 0
5 2M 8.81K 3 3 0
6 4M 8.81K 3 3 0
7 8M 0 0 0 0
8 16M 0 0 0 0
9 32M 0 0 0 0
10 64M 0 0 0 0
11 128M 0 0 0 0
12 256M 0 0 0 0
13 512M 0 0 0 0
14 1G 0 0 0 0 ================================================================================
RUNTIME STATS FOR CACHE POOL #0
POOL INFO group: repftor id: p22586_BLOB
trans active = 0 trans concurrent (max) = 3
trans total = 8.81K (9015 )
flag = 0x00000030
last error = (0=<none>) Allocation Request Distribution
< 128B: 0
128B: 0 0 | 512B: 2.94K 5.87K
2K: 19.79M 0 | 8K: 0 0
32K: 0 0 | 128K: 0 0
512K: 0 0 | 2M: 0 0
8M: 0 0 | 32M: 0 0
128M: 0 0 | 512M: 0 0
2G: 0 0 | 8G: 0 ================================================================================
CUMULATIVE STATS FOR CACHE POOL #0
POOL INFO group: repftor id: p22586_BLOB
trans active = 0 trans concurrent (max) = 0
trans total = 0 (0 )
flag = 0x00000030
last error = (0=<none>) Allocation Request Distribution
< 128B: 0
128B: 0 0 | 512B: 0 0
2K: 0 0 | 8K: 0 0
32K: 0 0 | 128K: 0 0
512K: 0 0 | 2M: 0 0
8M: 0 0 | 32M: 0 0
128M: 0 0 | 512M: 0 0
2G: 0 0 | 8G: 0
--->此处是该rpt文件结尾。
版权声明:本文博客原创文章,博客,未经同意,不得转载。
OGG "Loading data from file to Replicat"table静态数据同步配置过程的更多相关文章
- 使用OGG"Loading data from file to Replicat"的方法应该注意的问题:replicat进程是前台进程
使用OGG的 "Loading data from file to Replicat"的方法应该注意的问题:replicat进程是前台进程 因此.最好是在vncserver中调用该 ...
- Loading Data into HDFS
How to use a PDI job to move a file into HDFS. Prerequisites In order to follow along with this how- ...
- [转帖]Loading Data into HAWQ
Loading Data into HAWQ Leave a reply Loading data into the database is required to start using it bu ...
- 有关loading share object file libjvm.so: xxxxx 的那些问题
今天在跑一个有关postgresql产品的测试,要测试postgresql的有关Mirroring Controller的功能. 在执行mc_ctl命令的时候,报错:error while loadi ...
- Cocos2d-x执行时错误:Cocos2d: Get data from file(xxx.xxx) failed!
取资源图片时遇到执行时错误: Cocos2d: Get data from file(xxx/xxx.xxx) failed! 原因是我加入资源目录的方式不正确,例如以下图,我选择的是在Resourc ...
- 问题记录-Get data from file(fonts/arial.ttf) failed, error code is 32
time:2015/04/19 1. 描述:运行cocos的cpp-test例子,结果修改了代码之后提示错误:Get data from file(fonts/arial.ttf) failed, e ...
- OGG同构(ORACLE-ORACLE)、异构(ORACLE-MYSQL)同步配置及错误解析
环境:11.2.0.3(已安装数据库实例)+OEL5.7 192.168.1.55 zlm sid:zlm11g 192.168.1.60 zlm2 sid:zlm11g 一.安装软件,配置环境,创建 ...
- Oracle GoldenGate (以下简称ogg)在异种移植os同一种db之间的数据同步。
Oracle GoldenGate (以下简称ogg)在异种移植os同一种db之间的数据同步. ogg要实现的功能: 同步可以细化到单个表,满足特定的where条件rows同步,称号column同步. ...
- [MySQL]load data local infile向MySQL数据库中导入数据时,无法导入和字段不分离问题。
利用load data将文件中的数据导入数据库表中的时候,遇到了两个问题. 首先是load data命令无法执行的问题: 命令行下输入load data local infile "path ...
随机推荐
- macbook连接linuxserver后不显示matlab桌面[问题]
macbook 登录远程linuxserver.Macbook今天,系统版本号10.9.4.这是更新,打开matlab当提醒x11不存在.一个接着安装Xquarz2.7.6. matlab它可以在本地 ...
- bootstrap在 刷新页面,tab选择页面不会改变。
您可以直接复制代码 注意在同级别文件夹中引用 相应js 和 css. 实现tab影响 关键看bootstrap的 data-toggle= tab <html lang="en&quo ...
- 使用LabVIEWPC的制备
使用LabVIEWPC的制备 1.下载.安装LabVIEW 如今,互联网搜索,你可以搜索出一大推LabVIEW下载并安装破解教程.因此,这里没有具体描述的.请自行百度~~.另外.提醒一下,下载LabV ...
- 【原创】shadowebdict开发日记:基于linux的简明英汉字典(三)
全系列目录: [原创]shadowebdict开发日记:基于linux的简明英汉字典(一) [原创]shadowebdict开发日记:基于linux的简明英汉字典(二) [原创]shadowebdic ...
- js+html+css简单的互动功能页面(2015知道几乎尖笔试题)http://v.youku.com/v_show/id_XMTI0ODQ5NTAyOA==.html?from=y1.7-1.2
js+html+css实现简单页面交互功能(2015知乎前端笔试题) http://v.youku.com/v_show/id_XMTI0ODQ5NTAyOA==.html? from=y1.7-1. ...
- cocos2d之Box2D详细说明 鼠标联合实现
cocos2d之Box2D具体解释 鼠标关节实现 DionysosLai2014-5-7 我们常常要移动物理世界中的某个物体,例如说石头.木块等.假设我们直接改变这些物体的位置,让这些物体尾随我们手指 ...
- 【Jqurey EasyUI+Asp.net】---DataGrid增加、删、更改、搜
在前面写了两,但不知道如何完成,对比刚刚开始学这个,他们摸着石头过河,一步步.在最后两天DataGridCRUD融合在一起.因此份额.我希望像我这样谁是刚刚开始学习一些帮助. 直接主题酒吧. 它是说数 ...
- 在borland c++ builder 中使用 google test (gtest)
google test version: 1.6 c++ builder version: xe6 1 download google test 1.6 2 unzip the zip file. T ...
- cocos2dx环境配置和打包
安装软件准备就绪: vs2012 cocos2d-x-2.2.1 adt-bundle-windows-x86_64-20121030 android-ndk-r9c-windows-x86_64 j ...
- Redis时延问题
单线程你别阻塞,Redis时延问题分析及应对 内容目录: 耗时长的命令造成阻塞 fork产生的阻塞 持久化造成的阻塞 单线程你别阻塞,Redis时延问题分析及应对 Redis的事件循环在一个线程中处理 ...