How to approach a “Got minus one from a read call” error when connecting to an Amazon RDS Oracle instance

前端 未结 5 1673
甜味超标
甜味超标 2020-11-27 16:52

I\'m running Oracle 11GR2 on an Amazon RDS instance. occasionally I get an IO Error: Got minus one from a read call when making a call to DriverManager.ge

5条回答
  •  天命终不由人
    2020-11-27 17:35

    I would like to augment to Stephen C's answer, my case was on the first dot. So since we have DHCP to allocate IP addresses in the company, DHCP changed my machine's address without of course asking neither me nor Oracle. So out of the blue oracle refused to do anything and gave the minus one dreaded exception. So if you want to workaround this once and for ever, and since TCP.INVITED_NODES of SQLNET.ora file does not accept wildcards as stated here, you can add you machine's hostname instead of the IP address.

提交回复
热议问题