网站首页 > 技术文章 正文
由于今年7月1日全世界会多出一秒,这可能对时间敏感的IT系统造成较大影响。中亦科技数据库团队对此问题做了深入的研究,并对用户系统提出了相应的解决方法及建议。
中亦科技数据库产品总监黄远邦认为,闰秒调整会对Oracle数据库有以下影响:
· 对于单点数据库,这个调整没有任何的影响;
· 对于RAC系统,NTP闰秒问题可能会导致节点reboot;
· 对于使用NTP进行时间同步的RAC系统,对高于10.2.0.4版本的系统(包括11G)无影响;对低于10.2.0.0.4以下的版本,如果使用了第三方cluster 软件,如HACMP,Sun Cluster or Veritas SFRAC也是没有影响;
· 对于Linux及Oracle VM,部分应用程序无法处理该非常规“23:59:60”的时间戳,可能会导致应用挂起或主机重启。
闰秒的背景介绍
2015年1月5日,总部设在法国巴黎的国际地球自转和参考系统服务组织IERS(International Earth Rotation and Reference Systems Service)在其49期C公报发布闰秒公告:国际标准时间UTC(Coordinated Universal Time,协调世界时)将在2015年6月30日(格林尼治时间)实施一个正闰秒,即增加1秒。1月8日国际权度局时间部BIPM(Bureau International des Poids et Mesures)向全球参加国际原子时TAI计算的各守时实验室发布了闰秒调整预报。由于时差的原因,我国将在北京时间2015年7月1日的7时59分59秒和全球同步进行闰秒调整,届时会出现7:59:60的特殊现象。上一次“闰秒”出现在北京时间2012年7月1日。本次闰秒调整步骤及调整前后的时间标记为:
UTC时间:
2015年6月30日,23时59分59秒
2015年6月30日,23时59分60秒
2015年7月1日, 0时0分0秒
北京时间:
2015年7月1日,7时59分59秒
2015年7月1日,7时59分60秒
2015年7月1日,8时 0分 0秒
触发条件及避免方式
节点reboot的需要同时满足以下触发条件才会重启:
条件1:
xntpd daemon does not have slewing enabled (default) or does not have
PLL mode disabled (default)
条件2:
A. The Oracle Clusterware version does not have a fix for bug 5015469 or bug
6022204 or the Oracle Clusterware version does have a fix for at least one these
defects, but due to Solaris CR#6595936 the alarm signal arrival has been
delayed exceeding the oprocd 0.5 sec default margin (only Solaris)
因为这两个条件需要同时满足才能触发,可以使用以下的方式避免相应条件的失效:
条件1:
使用ntp –x打开 ntpd(xntpd)进程的“slewing”特性,进而避免其快速调整。
每个系统不同,详细可以参考:
NTP leap second event causing Oracle Clusterware node reboot [ID
759143.1]
条件2:
Apply Oracle Clusterware patch bundles or MLR (i.e. MLR # 9 or higher) in
order to resolve bugs 5015469 and 6022204,修复相应的bug,使触发条件失效
以下是引用片段:
Bug 5015469:
fix included in Oracle Clusterware 10.2.0.3 and higher, one off fixes
exist for 10.1.0.3, 10.1.0.4, 10.1.0.5, 10.2.0.1, 10.2.0.2 This fix mainly
rearms the oprocd timer after a negative
time drift.
Bug 6022204:
fix included in Oracle Clusterware 10.2.0.4 and higher (including
11g), included in Oracle Clusterware 10.2.0.3 MLR 9 and higher
and Oracle Clusterware 10.2.0.3 bundle patches 2 and 3 (patch #
6756433 and 7117233). This fix doesn't exist for Oracle Clusterware
10.2.0.2 or
10.2.0.1. This fix supersedes 5015469 and is needed in conjunction
with increasing the oprocd margin.
猜你喜欢
- 2025-08-03 OpenAI 和 Oracle 承诺为 Stargate Network 扩展 4.5 GW 数据中心
- 2025-08-03 异构跨库数据同步还在用Datax?来看看这几个开源的同步方案
- 2025-08-03 开源:一款开源的数据同步中间件DBSyncer
- 2025-08-03 计算机存储之数据一致性
- 2025-08-03 OGG同步10PB数据到Kafka不停库?全量+增量...
- 2025-08-03 【推荐】一款开源免费、功能强大的数据同步工具,支持多种数据源
- 2024-11-01 Canal数据同步实战 数据同步工具有哪些
- 2024-11-01 支持断点续传的数据库同步服务 断点续传需要服务器支持吗
- 2024-11-01 Oracle OGG 单向DDL同步 oracle ogg双向同步
- 2024-11-01 数据同步组件(Canal)在珍爱网的应用与实践
你 发表评论:
欢迎- 644℃几个Oracle空值处理函数 oracle处理null值的函数
- 634℃Oracle分析函数之Lag和Lead()使用
- 628℃0497-如何将Kerberos的CDH6.1从Oracle JDK 1.8迁移至OpenJDK 1.8
- 625℃Oracle数据库的单、多行函数 oracle执行多个sql语句
- 620℃Oracle 12c PDB迁移(一) oracle迁移到oceanbase
- 608℃【数据统计分析】详解Oracle分组函数之CUBE
- 599℃最佳实践 | 提效 47 倍,制造业生产 Oracle 迁移替换
- 584℃Oracle有哪些常见的函数? oracle中常用的函数
- 最近发表
- 标签列表
-
- 前端设计模式 (75)
- 前端性能优化 (51)
- 前端模板 (66)
- 前端跨域 (52)
- 前端缓存 (63)
- 前端aes加密 (58)
- 前端脚手架 (56)
- 前端md5加密 (54)
- 前端路由 (61)
- 前端数组 (73)
- 前端js面试题 (50)
- 前端定时器 (59)
- 前端获取当前时间 (50)
- Oracle RAC (76)
- oracle恢复 (77)
- oracle 删除表 (52)
- oracle 用户名 (80)
- oracle 工具 (55)
- oracle 内存 (55)
- oracle 导出表 (62)
- oracle约束 (54)
- oracle 中文 (51)
- oracle链接 (54)
- oracle的函数 (58)
- 前端调试 (52)
本文暂时没有评论,来添加一个吧(●'◡'●)