Oracle 10G的一個BUG

一臺Oracle數據庫出現告警,發現已經非法關閉了,可是查看alert等信息並無其餘異常信息。 使用sqlplus或者查看lsnrctl等信息時一直掛在那裏不動。

環境:
OS:CentOS 6.3
DB:Oralce 10.2.0.1.0
數據庫版本是10G,猜想是否是一個BUG引發的,就查看一下
ps -ef|grep sqlplus 
oracle    8702  8701  0 11:00 pts/6    00:00:00 sqlplus             --hang住了
oracle    8792  8744  0 11:00 pts/7    00:00:00 grep sqlplus

--跟蹤進程分析:
strace -p 8702

times(NULL)                             = -2140814387
times(NULL)                             = -2140814387
times(NULL)                             = -2140814387
times(NULL)                             = -2140814387
times(NULL)                             = -2140814387
times(NULL)                             = -2140814387
times(NULL)                             = -2140814387
times(NULL)                             = -2140814387
times(NULL)                             = -2140814387
times(NULL)                             = -2140814387
times(NULL)                             = -2140814387
times(NULL)                             = -2140814387
times(NULL)                             = -2140814387
times(NULL)                             = -2140814387
times(NULL)                             = -2140814387
times(NULL)                             = -2140814387

查下系統運行時間
[oracle@localhost ~]$ uptime
10:56:57 up 199 days, 16:02,  4 users,  load average: 55.99, 55.85, 53.78

果真是一個之前遇到過的調用時間函數死循環的BUG,翻了一下,
參考: sql

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&section=&expand=3216

 

        under "Patching Instant Client Shared Libraries on Linux or UNIX".

 

2)  Apply Patchset 10.2.0.2 or higher. 

      According to unpublished BUG 4612267, this bug is fixed in version 11, and backported to 10.2.0.2 patchset.
2、處理 該問題重現的週期在250天左右,已在11G版本被修復;  臨時解決,先把應用停掉,再刪除oracle進程,最後reboot服務器; 最終解決:打補丁,或者升級到11G
相關文章
相關標籤/搜索