2011年全年里番介绍:TimesTen 复制器201154错误的处理过程

来源:百度文库 编辑:偶看新闻 时间:2024/04/20 08:08:21
查看文章 TimesTen 复制器201154错误的处理过程2009-11-30 19:04

1.  用户反映业务无法处理,判断TT数据库出问题了

2. 查看TT,发现/tt 目录使用空间达到了99%,空间所剩无几了,评经验感觉应该是复制器出问题了,检查/tt/TimesTen/tt60/info目录,发现大量了大量的日志,这样日志肯定是由于没有及时的复制才导致的挤压。

3. 查看TT是否存在锁,没有锁事务:

Command> call ttlogholds;
< 69882, 52321680, Replication                   , OCSVR2:OCS >
< 70042, 22743656, Checkpoint                    , ocs.ds1 >
< 70042, 55159536, Checkpoint                    , ocs.ds0 >
3 rows found.

4. 查看tt日志:

tail -f /tmp/timestend.log
00:33:17 Err : 201154: REP: OCS:transmitter.c(935): TT12038: Could not connect to TimesTen daemon on remote host
这个消息说明两个问题:

   一. 备机的tt没有打开

   二. 复制器之间的网络存在问题

5. ttstatus 查看备机复制器状态是正常的

6. 查看tt复制器使用的IP地址

$ttschema

master OCS on "OCSVR2"

7. ping Ocsvr2 不通,复制器网络存在问题

8. 查看/etc/hosts 文件

more /etc/hosts

# ocsvr2
192.168.3.88    Ocsvr2_boot1    Ocsvr2
192.168.4.88    Ocsvr2_boot2
192.168.10.88    ocsvr2_per  

9.修改/etc/hosts 文件

vi /etc/hosts
# ocsvr2
192.168.3.88    Ocsvr2_boot1   
192.168.4.88    Ocsvr2_boot2
192.168.10.88    ocsvr2_per     Ocsvr2

10. ping Ocsvr2

ok

11. 查看tt log情况

Command> call ttlogholds;
< 69898, 39468528, Replication                   , OCSVR2:OCS >
< 70074, 64794632, Checkpoint                    , ocs.ds0 >
< 70075, 1609872, Checkpoint                    , ocs.ds1 >

开始复制了.