本文主要是介绍TimesTen数据库复制对于时间同步的要求,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
今天做了一个带缓存组的Active Standby Pair复制的实验,启动复制代理后,standby master数据库迟迟不能进入STANDBY状态,最终在tterrors.log中找到了原因:
2016-11-07 22:16:11.99 Err : REP: 3940: [0x7fa64c31d700, 0, noAwt] MASTER1:transmitter.c(9937): TT16224: Transmitter thread failure due to high clock skew 595 with peer store SUBSCRIBER1
最终在两个数据库的主机上执行以下命令后成功:
[root@ttc ~]# /usr/sbin/VBoxService --timesync-set-start
VBoxService 4.3.26 r98988 (verbosity: 0) linux.amd64 (Mar 16 2015 17:30:38) release log
00:00:00.001949 main Log opened 2016-11-07T14:16:46.375976000Z
00:00:00.002317 main OS Product: Linux
00:00:00.002461 main OS Release: 3.8.13-44.1.1.el6uek.x86_64
00:00:00.002572 main OS Version: #2 SMP Wed Sep 10 06:10:25 PDT 2014
00:00:00.002694 main OS Service Pack: #2 SMP Wed Sep 10 06:10:25 PDT 2014
00:00:00.002791 main Executable: /opt/VBoxGuestAdditions-4.3.26/sbin/VBoxService
00:00:00.002793 main Process ID: 5393
00:00:00.002793 main Package type: LINUX_64BITS_GENERIC
00:00:00.009261 main 4.3.26 r98988 started. Verbose level = 0
此命令仅适用于与VirtualBox虚拟机,作用是将Guest OS的时钟与Host OS同步。
参考
Better Time Synchronization with VirtualBox Guest Additions – vilimblog
这篇关于TimesTen数据库复制对于时间同步的要求的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!