Got a minus one from a read call

爱⌒轻易说出口 提交于 2019-12-20 03:14:34

问题


I connect to a database with read only access using SQL developer. It's a TNS connection. I use a tnsnames.ora, forwarding port script and SQL Developer.

In the past, occasionally, when connecting, I get a error message Got a minus one from a read call. Vendor Code 0

If I do a reboot, it goes away. Another friend suggested changed the forwarding port which worked for him.

I recently upgraded to a new computer and now it seems that I am getting the error message consistently. Reboot or changing forwarding port does not help at all.

The port forwarding script contains something like this

putty -L (port):(machine name):1521

Does anybody have any idea? Thanks.


回答1:


My port forwarding script forwards multiple ports. Somehow separating them into 2 smaller file, this error went away.




回答2:


Check your sqlnet.ora file and comment if there is any entry like the below.

tcp.validnode_checking = yes

tcp.invited_nodes=(<hostname_1>, <hostname_2>)

Now reload your listener and check the connectivity from SQL Developer.

lsnrctl reload <SID>


来源:https://stackoverflow.com/questions/2824438/got-a-minus-one-from-a-read-call

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!