SharePlex删除不需要队列
/* 9.x版本之后,可以在sp_ctrl控制台使用delete命令删除队列。
/* 以下删除适用于8.x与9.x版本
/* 一下以删除post队列为例,export与import队列与此方法一致
1.export SP_SYS_VARDIR=正确的vardir路径
2.sp_ctrl > shutdown
//要删除队列必须停止链路先
3.确认队列文件
cd $SP_SYS_VARDIR/rim
[root@splextar rim]# ls -ltr //确认rim下面所有队列文件,以便稍后删除队列之后确认是否删除文件。
total 188
-rw-rw-r-- 1 oracle oinstall 24 Sep 7 10:48 shstinfo.ipc
-rw-rw-r-- 1 oracle oinstall 24 Sep 7 10:48 shmaddr.loc
-rw-r--r-- 1 oracle oinstall 623 Sep 7 10:51 RS.c0a8cc6f.4
-rw-r--r-- 1 oracle oinstall 8388609 Sep 7 10:51 cdc01+P+o.source-c.target+0.0000000
-rw-r--r-- 1 oracle oinstall 8388609 Sep 7 10:51 te01+P+o.source-o.target+0.0000000
-rw-r--r-- 1 oracle oinstall 8388609 Sep 7 10:54 cdc01+P+o.source-c.target+8.0000000
-rw-r--r-- 1 oracle oinstall 8192 Sep 7 10:54 te01+P+o.source-o.target.sq
-rw-r--r-- 1 oracle oinstall 8388609 Sep 7 10:54 te01+P+o.source-o.target+7.0000000
-rw-r--r-- 1 oracle oinstall 5128 Sep 7 10:54 te01+P+o.source-o.target.q
-rw-r--r-- 1 oracle oinstall 8192 Sep 7 10:59 cdc01+P+o.source-c.target.sq
-rw-r--r-- 1 oracle oinstall 5128 Sep 7 10:59 cdc01+P+o.source-c.target.q
4.删除不需要的post队列
[oracle@splextar 866splex]$ export SP_SYS_VARDIR=/SPLEX/VARDIR
[oracle@splextar 866splex]$ sp_ctrl
sp_ctrl > shutdown #删除队列需要先关闭链路
[oracle@splextar 866splex]$ qview -i
qview> qsetup
qview> list /* 可以看到我这里有两个post队列,队列名称分别为cdc01与te01,我要删除cdc01队列
The following queues exist:
cdc01+P+o.source-c.target
subqueues range from 0 to 8
WRITER +PI+11rac1+sp_mport+0xc0a8cc6f (192.168.204.111)
READER +PP+cdc01+sp_opst_mt+o.source-c.target
te01+P+o.source-o.target
subqueues range from 0 to 7
WRITER +PI+11rac1+sp_mport+0xc0a8cc6f (192.168.204.111)
READER +PP+te01+sp_opst_mt+o.source-o.target
qview> deleteq cdc01+P+o.source-c.target
qview> list /* 可以看到cdc队列已经删除
The following queues exist:
te01+P+o.source-o.target
subqueues range from 0 to 7
WRITER +PI+11rac1+sp_mport+0xc0a8cc6f (192.168.204.111)
READER +PP+te01+sp_opst_mt+o.source-o.target
重启链路:restart cop
5.确认操作系统相应文件已经删除
cd $SP_SYS_VARDIR/rim
[root@splextar rim]# ls -ltr
total 100
-rw-r--r-- 1 oracle oinstall 623 Sep 7 10:51 RS.c0a8cc6f.4
-rw-r--r-- 1 oracle oinstall 8388609 Sep 7 10:51 te01+P+o.source-o.target+0.0000000
-rw-r--r-- 1 oracle oinstall 8192 Sep 7 10:54 te01+P+o.source-o.target.sq
-rw-r--r-- 1 oracle oinstall 8388609 Sep 7 10:54 te01+P+o.source-o.target+7.0000000
-rw-r--r-- 1 oracle oinstall 5128 Sep 7 10:54 te01+P+o.source-o.target.q
-rw-rw-r-- 1 oracle oinstall 24 Sep 7 11:06 shstinfo.ipc
-rw-rw-r-- 1 oracle oinstall 24 Sep 7 11:06 shmaddr.loc
6.启动链路
sp_cop -uport &
7.确认链路其他队列复制正常