dcsimg
JDBC & Using Oracle's Thin driver rel 8.0.5
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mohan_Kambli
Posted On:   Friday, February 13, 2004 05:53 AM

I am experimenting with Java and JDBC and was trying to compile, run one of Oracles own sample programs that uses their Thin Driver. I've installed the driver on my pc, however, when running it I get the following error. D:ORANTjdbcsamplesDBMetaData>java JDBCVersion Encountered error after DriverManager.getConnection : java.sql.SQLException: No more data to read from socket My code is: // Load the Oracle JDBC driver DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); // Connect to the database // You must put a database name after the @ sign in the connection URL. // Yo   More>>

I am experimenting with Java and JDBC and was trying to compile, run one of Oracles own sample programs that uses their Thin Driver. I've installed the driver on my pc, however, when running it I get the following error.



D:ORANTjdbcsamplesDBMetaData>java JDBCVersion



Encountered error after DriverManager.getConnection : java.sql.SQLException: No more data to read from socket



My code is:




// Load the Oracle JDBC driver




DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());



// Connect to the database
// You must put a database name after the @ sign in the connection URL.
// You can use either the fully specified SQL*net syntax or a short cut
// syntax as : : . The example uses the short cut syntax.



Connection conn =
DriverManager.getConnection ("jdbc:oracle:thin:@ntxx:1521:dev",
"mo", "mo");

   <<Less
About | Sitemap | Contact