通过plsql(或TNSPING)连接oracle慢

conn / as sysdba 连接很快

conn test/test@orcl 非常慢,要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

猜你喜欢

转载自mofeichen.iteye.com/blog/2195824
今日推荐