java.sql.SQLException: Io exception: Got minus one from a read call during JDBC connection with oracle

后端 未结 7 1142
故里飘歌
故里飘歌 2020-12-19 07:52

Hi I am new to java when I tried to connect oracle with my java sample code I got the above exception

My Code is

import java.sql.*;
import java.io.IO         


        
7条回答
  •  醉梦人生
    2020-12-19 08:35

    solution 1 :

    I think this exception is due to operating system internal environment problem.

    I have got same problem with type 4 driver. But type 1 driver not giving this exception. So that currently I'm using type 1 driver.

    Check port number, sid at tnsnames.ora

    C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN\SAMPLE\tnsnames.ora

    solution 2 :

    install vmware on your computer, install OS, then program will work with type 4 driver.

提交回复
热议问题