3.4 验证SharePlex可用
启动SharePlex:
以oracle用户登录
$ sp_cop &
$ ps -ef |grep sp_ 检查进程运行情况
关闭SharePlex
$ sp_ctrl
sp_ctrl> shutdown
建立测试用户、测试表:
SQL> connect /as sysdba
SQL> create table quest.test1 (col1 number(10), col2 varchar2 (20));
激活配置文件(源端执行):
sp_ctrl > list config 查看当前config情况
sp_ctr> copy config ORA_config to test_config 建立一个新的配置文件
sp_ctrl> edit config test_config
datasource:o.SPLEX1
#source tables target tables routing map
quest.test1 quest.test1 hostname@o.SPLEX2
这里所有涉及到RAC的实例名都用TNS别名代替。
sp_ctrl> activate config test_config live 激活配置文件
在源系统的quest.test1中插入、修改、删除记录(commit),验证数据被复制到目标端。
启动SharePlex:
以oracle用户登录
$ sp_cop &
$ ps -ef |grep sp_ 检查进程运行情况
关闭SharePlex
$ sp_ctrl
sp_ctrl> shutdown
建立测试用户、测试表:
SQL> connect /as sysdba
SQL> create table quest.test1 (col1 number(10), col2 varchar2 (20));
激活配置文件(源端执行):
sp_ctrl > list config 查看当前config情况
sp_ctr> copy config ORA_config to test_config 建立一个新的配置文件
sp_ctrl> edit config test_config
datasource:o.SPLEX1
#source tables target tables routing map
quest.test1 quest.test1 hostname@o.SPLEX2
这里所有涉及到RAC的实例名都用TNS别名代替。
sp_ctrl> activate config test_config live 激活配置文件
在源系统的quest.test1中插入、修改、删除记录(commit),验证数据被复制到目标端。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/14639914/viewspace-2137950/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/14639914/viewspace-2137950/