sqlplus 無響應 hang處理
現象:
本地使用sqlplus / nolog 長時間無響應,
使用ps -ef | grep ora 後發現 cpu佔用很高, 導致連線不上,
MOS上有一篇文章:
SQL*Plus 10.2.0.1 Hangs, When System Uptime Is Long Period of Time [ID 338461.1]
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:
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.
上面說系統執行到多久之後,會出現此問題,這個不是必須條件,也許你的系統執行時間沒有達到上面所說的那個時間,也會出現此情況
推薦最好進行升級,臨時解決,可以重啟機器。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/751371/viewspace-735667/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 記一次Oracle資料庫無響應(hang住)故障的處理Oracle資料庫
- sqlplus命令無響應,cpu佔用率很高的問題處理SQL
- oracle之 sqlplus prelim 引數介紹 ( 處理hang )OracleSQL
- APM RUEI processor處理程式hang死處理方法
- sqlplus失去響應SQL
- clover在win10下無響應如何處理_clover在win10下無響應怎麼修復Win10
- 資料庫無響應問題的緊急處理和分析資料庫
- 資料庫hang住,分析處理資料庫
- Oracle10g在Linux下sqlplus無響應OracleLinuxSQL
- .Net Core HttpClient處理響應壓縮HTTPclient
- 處理請求(AFURLRequestSerialization)和響應(AFURLResponseSerialization)
- oradebug處理DB hang情況
- os thread startup等待事件HANG處理thread事件
- 一次資料庫HANG處理資料庫
- 資料庫響應慢問題處理資料庫
- 刪除臨時表空間hang處理
- SUN E6500雙機hang住處理
- 一次資料庫hang的處理資料庫
- 9i資料庫hang死分析處理資料庫
- 【問題處理】“sqlplus / as sysdba”無法登陸——多餘的斜槓!SQL
- HttpClient入門(1) 傳送請求,處理響應及響應重複讀取HTTPclient
- 對Response中的響應體做統一處理
- 從請求到響應 django 都做了哪些處理Django
- Oracle hang 之sqlplus -prelim使用方法OracleSQL
- sqlplus hang 解決方法一例SQL
- 登陸sqlplus hang /telnet很慢 for AixSQLAI
- Laravel 打造適合 API 的異常處理響應格式LaravelAPI
- Vue響應式原理 - 關於Array的特別處理Vue
- Nest 中處理 XML 型別的請求與響應XML型別
- python tkinter 視窗出現未響應處理方式Python
- Cocoa Touch事件處理流程--響應者鏈(轉載)事件
- MY_ iOS 按鈕超過父檢視範圍無法響應事件的處理方法iOS事件
- Finder持續無響應怎麼辦?Finder無響應解決教程
- sqlplus"strace: exec: Exec format error"故障處理SQLORMError
- 理解響應者和響應鏈如何處理事件事件
- 一種處理laravel返回值響應的解決方案Laravel
- SpringMVC處理請求頭、響應頭、編碼行為SpringMVC
- oracle LOGICAL standby 日誌無法應用處理Oracle