当前位置: 首页 > news >正文

sqlplus uptime过久事件

没什么可描述的.metalink上面写的很清楚.


SQL*Plus 10.2.0.1 Hangs, When System Uptime Is Long Period of Time [ID 338461.1]

 Modified 08-JUL-2010     Type PROBLEM     Status PUBLISHED 

In this Document
  Symptoms
  Changes
  Cause
  Solution
  References


Applies to:

SQL*Plus - Version: 10.2.0.1 and later   [Release: Oracle10g and later ]
Generic UNIX
Linux x86
HP-UX PA-RISC (64-bit)
IBM AIX on POWER Systems (64-bit)
Linux x86-64
Checked for relevance on 18-Apr-2010

Symptoms

Trying to invoke SQL*Plus hangs when machine uptime has been for a long period of time.  There have been cases where problem occurs when uptime reaches 60 days and others as long as 248 days.

Database connection is not relevant as the 'sqlplus' executable itself hangs with or without connection information. It hangs regardless of what parameters are passed in.  For example:

   sqlplus -V

However, the hang does not reproduce with Instant Client version 10.1.0.4

Generating a stack trace using gdb debugger shows:

#0 0x0048a0dd in times () from /lib/tls/libc.so.6
#1 0x01884599 in sltrgatime64 () from ./libclntsh.so.10.1
#2 0x0137d70f in kghinp () from ./libclntsh.so.10.1
#3 0x00f86b47 in kpuinit0 () from ./libclntsh.so.10.1
#4 0x00f85e7a in kpuenvcr () from ./libclntsh.so.10.1
#5 0x01051b5e in OCIEnvCreate () from ./libclntsh.so.10.1
#6 0x0099787e in afidrv () from ./libsqlplus.so
#7 0x009702b9 in safimTerminate () from ./libsqlplus.so
#8 0x0098c246 in afidrv () from ./libsqlplus.so
#9 0x080486f6 in main ()

Running STRACE tool shows:

$ strace /oracle/home/bin/sqlplus -V 2>&1 |less
......
old_mmap(NULL, 385024, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x41794000
gettimeofday({1122996561, 411035}, NULL) = 0
access("/usr/local/UD/conf/sqlnet.ora", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/local/UD/lib/oracle/network/admin/sqlnet.ora", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/local/UD/conf/sqlnet.ora", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/local/UD/lib/oracle/network/admin/sqlnet.ora", F_OK) = -1 ENOENT (No such file or directory)
fcntl64(-1218313656, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
times(NULL) = -1825782405
times(NULL) = -1825782405
times(NULL) = -1825782405
times(NULL) = -1825782405
times(NULL) = -1825782405
times(NULL) = -1825782405
times(NULL) = -1825782405

It is looping on the times() function.

In addition to sqlplus, it has been reported that the netca and dbca tools also hang.

Changes

This may happen with a new installation of Instant Client 10.2.0.1.0 or Oracle 10.2.0.1.0 on UNIX platform, or it can just occur after some period of time with no other changes.

Cause

This is a known, unpublished bug.

Bug 4612267 OCI CLIENT IS IN AN INFINITE LOOP WHEN MACHINE UPTIME HITS 248 DAYS

Solution

Select one of the following two solutions:

1) Apply one-off patch available for 10.2.0.1.
   a. Download one-off patch off Metalink:
       Patch 4612267
       Description OCI CLIENT IS IN AN INFINITE LOOP WHEN MACHINE UPTIME HITS 248 DAYS
       Product CORE
       Release Oracle 10.2.0.1

   b. To apply patch on Instant Client install, please follow instructions documented in the OCI manual.
        You can find this in:
        http://www.oracle.com/pls/db102/db102.show_toc?which=main&partno=b14250&maxlevel=2

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11780477/viewspace-686890/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/11780477/viewspace-686890/

相关文章:

  • RMAN-06207 rman恢复数据库后备份delete出错
  • RMAN异库恢复之EM(1)
  • RMAN异库恢复之EM(2)遭遇 2010/12/31 root认证过期 bug
  • 丢失redo log的恢复
  • RMAN异库恢复之EM(3)
  • LOCK_SGA=TRUE causes an ORA-27126 during database startup on AIX
  • exp/imp parfile 用到的参数
  • 日志挖掘
  • RMAN备份脚本
  • sqlldr 控制文件样例
  • 审计相关
  • RAC 修改IP (转)
  • oracle oem 启动不起来(半解决)
  • 还是oem
  • 又是oem
  • 网络传输文件的问题
  • @angular/forms 源码解析之双向绑定
  • java B2B2C 源码多租户电子商城系统-Kafka基本使用介绍
  • Mithril.js 入门介绍
  • PV统计优化设计
  • springMvc学习笔记(2)
  • 给新手的新浪微博 SDK 集成教程【一】
  • 简析gRPC client 连接管理
  • 思否第一天
  • 腾讯优测优分享 | 你是否体验过Android手机插入耳机后仍外放的尴尬?
  • 王永庆:技术创新改变教育未来
  • 终端用户监控:真实用户监控还是模拟监控?
  • 【运维趟坑回忆录】vpc迁移 - 吃螃蟹之路
  • linux 淘宝开源监控工具tsar
  • ​​快速排序(四)——挖坑法,前后指针法与非递归
  • ​LeetCode解法汇总1410. HTML 实体解析器
  • (day 2)JavaScript学习笔记(基础之变量、常量和注释)
  • (Mirage系列之二)VMware Horizon Mirage的经典用户用例及真实案例分析
  • (MonoGame从入门到放弃-1) MonoGame环境搭建
  • (WSI分类)WSI分类文献小综述 2024
  • (补)B+树一些思想
  • (初研) Sentence-embedding fine-tune notebook
  • (三分钟了解debug)SLAM研究方向-Debug总结
  • (一)80c52学习之旅-起始篇
  • .dwp和.webpart的区别
  • .NET 6 Mysql Canal (CDC 增量同步,捕获变更数据) 案例版
  • .net core控制台应用程序初识
  • .net php 通信,flash与asp/php/asp.net通信的方法
  • [ CTF ]【天格】战队WriteUp- 2022年第三届“网鼎杯”网络安全大赛(青龙组)
  • [ 渗透工具篇 ] 一篇文章让你掌握神奇的shuize -- 信息收集自动化工具
  • []T 还是 []*T, 这是一个问题
  • [<死锁专题>]
  • [20180129]bash显示path环境变量.txt
  • [C puzzle book] types
  • [C]整形提升(转载)
  • [C进阶] 数据在内存中的存储——浮点型篇
  • [Firefly-Linux] RK3568 pca9555芯片驱动详解
  • [iOS]把16进制(#871f78)颜色转换UIColor
  • [LeetCode]—Permutations 求全排列
  • [Linux_IMX6ULL驱动开发]-基础驱动