10.2.0.1版本上sqlplus命令不能執行的問題解決
Applies to:
SQL*Plus - Version 10.2.0.1 to 10.2.0.1 [Release Oracle10g]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://docs.oracle.com/cd/B19306_01/appdev.102/b14294/install.htm#CACFFGHF
under "Patching Instant Client Shared Libraries on 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.
References
BUG:4612267 - OCI CLIENT IS IN AN INFINITE LOOP WHEN MACHINE UPTIME HITS 248 DAYSBUG:4627034 - BLR BACKPORT OF BUG 4612267 ON TOP OF VERSION 10.2.0.1
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12129601/viewspace-752417/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 使用tcpdump解決應用不能執行問題TCP
- 在新克隆的VM上SQLPLUS不能正常執行SQL
- 解決sqlplus中輸錯命令時的刪除、游標鍵不能使用問題SQL
- vsCode不能執行vue命令解決方式VSCodeVue
- 使用sqlplus等命令時0509*問題的解決SQL
- 兩行命令解決 Windows 下 Homestead 執行緩慢的問題Windows
- 解決RAW在SQLPLUS上無法顯示的問題SQL
- air在go的其他版本上執行可能遇到的問題AIGo
- 解決 Git-bash 不能使用 Composer 命令的問題Git
- 解決手機連上WIFI但不能上網的問題WiFi
- 菜鳥級問題,不能執行
- 解決 SQLPLUS不能使用上下左右和BACKSPACE鍵問題SQL
- 【故障-ORACLE】OSWBB不能執行解決Oracle
- 解決SSH遠端執行命令找不到環境變數的問題變數
- 解決jenkins執行磁碟滿的問題Jenkins
- 不能建立降序索引的問題的解決索引
- rlwrap包解決Linux下sqlplus中上下鍵,退格鍵不能用的問題LinuxSQL
- 執行 shell 指令碼 \r 問題解決指令碼
- 如何解決win10系統cmd能執行javac卻不能執行java的問題Win10Java
- 限制SQLPLUS工具可執行的命令SQL
- 多執行緒的安全問題及解決方案執行緒
- DMAIC如何作為解決問題的方法執行?AI
- 解決國內gem不能用的問題
- 解決jdbc不能重連mysql的問題JDBCMySql
- rabbitmq解決erlang版本問題MQ
- 解決不能訪問 VMware Server Web Access 的問題ServerWeb
- crontab不執行mysql的指令碼問題的解決!MySql指令碼
- mysql執行truncate drop 時卡死問題解決MySql
- mac 下PyCharm執行報錯問題解決MacPyCharm
- sqlplus無法啟動的問題及解決SQL
- 有關java程式不能在linux上執行的問題,請高手指教JavaLinux
- vue 解決不能攜帶session問題VueSession
- 解決macOS vim 不能連按問題Mac
- 【ubuntu】解決行動硬碟掛載不上的問題Ubuntu硬碟
- CMD執行命令列時卡住的問題命令列
- 解決webpack不能匹配post請求的問題Web
- 解決linux不能上外網的問題Linux
- 解決VNC有些鍵不能輸入的問題VNC