1.模拟源数据库业务持续运行
OGG的单向配置比较简单,但实际生产过程很多业务要求不间断运行,
所以我创建了2张模拟业务表,简单模拟在业务不间断运行场景下OGG的配置。
1.1 创建模拟的业务用户
首先我创建业务用户jy,并指定密码,赋予基本业务用户的角色权限。
--user create user jy identified by jy default tablespace users; --grant grant resource, connect to jy;
1.2 在业务用户下创建表和存储过程
连接到业务用户jy下,创建1个序列,2张表(其中一张表有主键):
--connect conn jy/jy --sequence create sequence s1; --tables --table t_second 无主键 create table t_second as select s1.nextval id, to_char(sysdate,'yyyy-mm-

