1,分别在主库和备库上执行以下操作;
a,SQL>alter database add supplemental log data (primary key) columns;
b,更改到归档模式;
c,分别增加一个用户,并授DBA权限,一般我喜欢用ggadmin;
d,内存磁盘能满足需求,每个gg进程占用50MB内存,磁盘需求2G;
2,解压gg到/home/oracle
发布ggsci
创建sumdirs GGSCI>create subdirs
3,增加mgr process;
GGSCI>edit param mgr
编辑参数;
启动mgr GGSCI> start mgr
4,增加extract
GGSCI>edit params e01
编辑参数;
增加extract e01 GGSCI> add extract e01,tranlog,begin now,threads 1
指定extrailfile GGSDI> add exttrail ./dir/sa,extract e01
5,增加data pump
GGSCI>add extract p01,exttrailsource ./dir/sa,begin now
启动extrace GGSCI>start extract e01
启动data pump GGSCI>start extrace p01
编辑datapump参数 GGSCI>edit params p01
6,在备库上增加replicate
编辑参数 GGSCI>edit params r01
增加replicate GGSCI>add replicate r01,exttrail ./dir/ta
启动replicate GGSCI> start replicate r01
阅读(2874) | 评论(0) | 转发(0) |