• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while connecting Oracle with Java

 
Neela Sathesh
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,
I had worked with jdbc in my college.It is executing there correctly.
But when i use the same coding in my home i am getting the error
"java.sqlException:java SQL_HANDLE_ENAV failed.I am using Oracle8i version.
Please can u provide me help.
[ January 20, 2004: Message edited by: Bear Bibeault ]
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post some java code snippet escp the code connecting to Oracle with jdbc
 
Neela Sathesh
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
import java.sql.*;
public class a
{
public static void main(String ar[])
{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection cn=DriverManager.getConnection("jdbc dbc:hai","scott","tiger");
Statement st=cn.createStatement();
st.execute("create table bala(name varchar2(22));
}
catch(Exception e)
{
}
}
}
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check this link please
 
Dana Hanna
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the oracle database work correctly from an oracle tool such as SQLPlus?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic