症状:
1、 所有用户包括root用户登录Linux服务器,输入用户名后要等很长时间才能输入密码
2、 在oracle服务端使用tnsping命令执行非常慢
3、 使用oracle客户端或者plsql登录oracle服务器响应非常慢
4、 应用比如mdsp,portalone等在启动连接数据库超时,导致应用启动失败。
病因:
配置了错误的DNS,导致域名解析失败,从而导致访问系统缓慢。
用药:
将配置的nameserver注释掉:

编辑文件/etc/resolv.conf,将nameserver一行注释掉


linux:~ # more /etc/resolv.conf
### /etc/resolv.conf file autogenerated by netconfig!
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
#     NETCONFIG_DNS_STATIC_SEARCHLIST
#     NETCONFIG_DNS_STATIC_SERVERS
#     NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
#     NETCONFIG_DNS_POLICY=''
# See also the netconfig(8) manual page and other documentation.
# Note: Manual change of this file disables netconfig too, but
# may get lost when this file contains comments or empty lines
# only, the netconfig settings are same with settings in this
# file and in case of a "netconfig update -f" call.
### Please remove (at least) this line when you modify the file!
#nameserver 172.24.1.82
复查:
1、 登录操作系统检查是否输入用户名后,立即提示输入密码。
2、 使用plsql客户端登录oralce服务器,是否响应很快。
3、 应用启动是否提示连接数据库成功。