关于idea链接oracle数据库出现[08006][17002] IO 错误: Got minus one from a read call, connect lapse 1 ms., Authen

新公司,新入职,使用idea链接数据库出现了这个问题,简单记录一下

 

错误现象

关于idea链接oracle数据库出现[08006][17002] IO 错误: Got minus one from a read call, connect lapse 1 ms., Authen

解决方式

一般来说,idea链接数据库都会使用数据库最新版本的jar包,但是面对oracle的时候,基本都会出错,具体可能是因为版本不兼容,这时候我们选择手动替换idea的jar,

步骤如图所示

步骤一

关于idea链接oracle数据库出现[08006][17002] IO 错误: Got minus one from a read call, connect lapse 1 ms., Authen

步骤二

 

关于idea链接oracle数据库出现[08006][17002] IO 错误: Got minus one from a read call, connect lapse 1 ms., Authen

步骤三

 

关于idea链接oracle数据库出现[08006][17002] IO 错误: Got minus one from a read call, connect lapse 1 ms., Authen

从这里选择程序中使用的jdbc驱动,然后就可以了