Step by Step TimesTen --- DataStore的雙向複製( 二)
Step 4, 檢視replication 的狀態
1,A機器:
$ ttRepAdmin -showstatus fxtest_aa
Replication Agent Status as of: 2008-08-18 15:49:46
DSN : fxtest_aa
Process ID : 18411 (Started)
Replication Agent Policy : manual
Host : BJINMS216.BJ.COM
RepListener Port : 59916 (AUTO)
Last write LSN : 0.823656
Last LSN forced to disk : 0.823656
Replication hold LSN : 0.819456
Replication Peers:
Name : FXTEST_BB
Host : BJINMS221.BJ.COM
Port : 60934 (AUTO) (Connected)
Replication State : STARTED
Communication Protocol : 23
TRANSMITTER thread(s):
For : FXTEST_BB
Start/Restart count : 1
Send LSN : 0.821280
Transactions sent : 0
Total packets sent : 19
Tick packets sent : 15
MIN sent packet size : 64
MAX sent packet size : 152
AVG sent packet size : 69
Last packet sent at : 15:49:37
Total Packets received: 19
MIN rcvd packet size : 64
MAX rcvd packet size : 120
AVG rcvd packet size : 109
Last packet rcvd'd at : 15:49:37
RECEIVER thread(s):
For : FXTEST_BB
Start/Restart count : 1
Transactions received : 0
Total packets sent : 19
Tick packets sent : 0
MIN sent packet size : 64
MAX sent packet size : 120
AVG sent packet size : 109
Last packet sent at : 15:49:45
Total Packets received: 19
MIN rcvd packet size : 64
MAX rcvd packet size : 152
AVG rcvd packet size : 69
Last packet rcvd'd at : 15:49:45
2,B機器:
bjinms221.bj.com> ttRepAdmin -showstatus fxtest_bb
Replication Agent Status as of: 2008-08-18 16:02:59
DSN : fxtest_bb
Process ID : 13820 (Started)
Replication Agent Policy : manual
Host : BJINMS221.BJ.COM
RepListener Port : 60934 (AUTO)
Last write LSN : 0.844184
Last LSN forced to disk : 0.844184
Replication hold LSN : 0.839984
Replication Peers:
Name : FXTEST_AA
Host : BJINMS216.BJ.COM
Port : 59916 (AUTO) (Connected)
Replication State : STARTED
Communication Protocol : 23
TRANSMITTER thread(s):
For : FXTEST_AA
Start/Restart count : 1
Send LSN : 0.841808
Transactions sent : 0
Total packets sent : 29
Tick packets sent : 25
MIN sent packet size : 64
MAX sent packet size : 152
AVG sent packet size : 67
Last packet sent at : 16:02:54
Total Packets received: 29
MIN rcvd packet size : 64
MAX rcvd packet size : 120
AVG rcvd packet size : 112
Last packet rcvd'd at : 16:02:54
RECEIVER thread(s):
For : FXTEST_AA
Start/Restart count : 1
Transactions received : 0
Total packets sent : 30
Tick packets sent : 0
MIN sent packet size : 64
MAX sent packet size : 120
AVG sent packet size : 113
Last packet sent at : 16:02:56
Total Packets received: 30
MIN rcvd packet size : 64
MAX rcvd packet size : 152
AVG rcvd packet size : 67
Last packet rcvd'd at : 16:02:56
Step 5, 檢查replication是否正常工作
1,檢查 fxtest_aa 複製到 fxtest_bb
A機器:
Command> insert into reptable values(1,'Tom');
1 row inserted.
Command> commit;
B機器:
Command> select * from reptable;
< 1, Tom >
1 row found.
2,檢查fxtest_bb 複製到 fxtest_aa
B機器:
Command> insert into reptable values(2,'Jerry');
1 row inserted.
Command> commit;
A機器:
Command> select * from reptable;
< 1, Tom >
< 2, Jerry >
2 rows found.
Step6, 修改replication, Datastore 屬性,
設定為自動啟動
A機器:
$ ttAdmin -repPolicy always fxtest_aa
RAM Residence Policy : inUse
Replication Agent Policy : always
Cache Agent Policy : manual
Cache Agent Manually Started : False
$ ttAdmin -ramPolicy always fxtest_aa
RAM Residence Policy : always
Replication Agent Policy : always
Cache Agent Policy : manual
Cache Agent Manually Started : False
B機器:
bjinms221.bj.com> ttAdmin -repPolicy always fxtest_bb
RAM Residence Policy : inUse
Replication Agent Policy : always
Cache Agent Policy : manual
Cache Agent Manually Started : False
bjinms221.bj.com> ttAdmin -ramPolicy always fxtest_bb
RAM Residence Policy : always
Replication Agent Policy : always
Cache Agent Policy : manual
Cache Agent Manually Started : False
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/81/viewspace-429796/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- React Step by StepReact
- Promise的實現(step by step)Promise
- Command 模式 Step by Step模式
- Shell Step by Step (4) —— Cron & Echo
- Step by Step Data Replication Using Oracle GoldenGateOracleGo
- TIDB DM資料同步step by stepTiDB
- Step by Step 安裝 BizTalk Server 2009Server
- 單步除錯 step into/step out/step over 區別詳解除錯
- Step-by-step,打造屬於自己的vue ssrVue
- ABP應用開發(Step by Step)-下篇
- ABP應用開發(Step by Step)-上篇
- 實時 Linux 抖動分析 Step by stepLinux
- Linkerd 2.10(Step by Step)—使用 Kustomize 自定義 Linkerd 的配置
- PostgreSQL雙向複製教程SQL
- Linkerd 2.10(Step by Step)—多叢集通訊
- Sql Server Linux(Redhat) Distributed Availability Group Setup — step by stepSQLServerLinuxRedhatAI
- 10GR2下建立物理standby STEP BY STEP
- Adaboost Algorithm StepGo
- 深度學習之step by step搭建神經網路深度學習神經網路
- Linkerd 2.10(Step by Step)—設定服務配置檔案
- Linkerd 2.10(Step by Step)—1. 將您的服務新增到 Linkerd
- Linkerd 2.10(Step by Step)—4. 如何配置外部 Prometheus 例項Prometheus
- 使用Eclipse 安裝 構建Maven專案 (step-by-step)EclipseMaven
- Linkerd 2.10(Step by Step)—2. 自動化的金絲雀釋出
- Vue.js SSR Step by Step (2) – 一個簡單的同構DEMOVue.js
- HTML step 屬性HTML
- 【Step-By-Step】高頻面試題深入解析 / 週刊06面試題
- 【Step-By-Step】高頻面試題深入解析 / 週刊07面試題
- 【Step-By-Step】高頻面試題深入解析 / 週刊04面試題
- 【Step-By-Step】高頻面試題深入解析 / 週刊05面試題
- 【Step-By-Step】高頻面試題深入解析 / 週刊03面試題
- 【Step-By-Step】高頻面試題深入解析 / 週刊01面試題
- 【Step-By-Step】高頻面試題深入解析 / 週刊02面試題
- 阿里雲數倉Dataworks資料匯出到檔案step by step阿里
- Linkerd 2.10(Step by Step)—將 GitOps 與 Linkerd 和 Argo CD 結合使用GitGo
- step1 補充
- 2.4.8 Step 7: 建立spfile
- [完結] Learn Vue 2: Step By Step [Laracasts 免費視訊中文語音]VueAST
- [完結] Learn Vue 2: Step By Step [Laracasts 免費影片中文語音]VueAST