java.sql.SQLException
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, April 14, 2003 04:43 PM

Hi, I'm creating an application on the client-side which accesses a database residing on a remote oracle server. I get the following exception java.sql.SQLException: [Microsoft][ODBC driver for Oracle][Oracle] at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2458) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:320) at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:163) at java.sql.DriverManager.getConnection(DriverManager.java:517) at java.s   More>>

Hi,
I'm creating an application on the client-side which accesses a database residing on a remote oracle server.
I get the following exception


java.sql.SQLException: [Microsoft][ODBC driver for Oracle][Oracle]


at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031)


at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188)


at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2458)


at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:320)


at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:163)


at java.sql.DriverManager.getConnection(DriverManager.java:517)


at java.sql.DriverManager.getConnection(DriverManager.java:199)


at jsptutorials.SqlInteraction.main(SqlInteraction.java:32)



at this line

Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:oracledatabase");





Please can u let me know where the error lies...

thanks a lot!

chakrdeep    <<Less

Re: java.sql.SQLException

Posted By:   Bif_Macmullen  
Posted On:   Wednesday, April 16, 2003 09:07 AM

Don't you also need to pass the username and password of the database in the getConnection() method?
About | Sitemap | Contact