溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

SharePlex刪除為什么不需要隊列

發(fā)布時間:2021-11-05 15:51:08 來源:億速云 閱讀:157 作者:iii 欄目:關(guān)系型數(shù)據(jù)庫

這篇文章主要講解了“SharePlex刪除為什么不需要隊列”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“SharePlex刪除為什么不需要隊列”吧!

SharePlex刪除不需要隊列

/* 9.x版本之后,可以在sp_ctrl控制臺使用delete命令刪除隊列。
/* 以下刪除適用于8.x與9.x版本
/* 一下以刪除post隊列為例,export與import隊列與此方法一致

1.export SP_SYS_VARDIR=正確的vardir路徑

2.sp_ctrl > shutdown    //要刪除隊列必須停止鏈路先

3.確認(rèn)隊列文件

cd $SP_SYS_VARDIR/rim
  [root@splextar rim]# ls -ltr      //確認(rèn)rim下面所有隊列文件,以便稍后刪除隊列之后確認(rèn)是否刪除文件。
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               #刪除隊列需要先關(guān)閉鏈路
[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隊列已經(jīng)刪除
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.確認(rèn)操作系統(tǒng)相應(yīng)文件已經(jīng)刪除

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.確認(rèn)鏈路其他隊列復(fù)制正常

感謝各位的閱讀,以上就是“SharePlex刪除為什么不需要隊列”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對SharePlex刪除為什么不需要隊列這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是億速云,小編將為大家推送更多相關(guān)知識點的文章,歡迎關(guān)注!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI