当前位置: 代码迷 >> SQL >> 透过plsql(或TNSPING)连接oracle慢
  详细解决方案

透过plsql(或TNSPING)连接oracle慢

热度:77   发布时间:2016-05-05 10:40:41.0
通过plsql(或TNSPING)连接oracle慢

conn / as sysdba 连接很快

conn [email protected] 非常慢,要3分钟

?

看来是因为Server 本身的DNS起作用了,DNS一起作用,hosts就有问题了

- /etc/resolv.conf

;generated by /usr/sbin/oraclevm-template
#search hostname

#options timeout:15
#options timeout:15
#nameserver 172.31.2.23

全去掉,或者干脆把resolv.conf move 掉

?

解决方法:

?

mv /etc/resolv.conf /etc/resolv.conf_bak

?

重新通过plsql连接,问题解决

?

问题描述可参考:

http://www.itpub.net/thread-1515145-1-1.html

  相关解决方案