File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Error while connecting Oracle with Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Error while connecting Oracle with Java" Watch "Error while connecting Oracle with Java" New topic
Author

Error while connecting Oracle with Java

Neela Sathesh
Ranch Hand

Joined: Jan 19, 2004
Posts: 50
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 ]

With regards,<br />Neela.N
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Can you post some java code snippet escp the code connecting to Oracle with jdbc


Spritle Software Blogs
Neela Sathesh
Ranch Hand

Joined: Jan 19, 2004
Posts: 50
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

Joined: Jul 13, 2001
Posts: 3150
check this link please
Dana Hanna
Ranch Hand

Joined: Feb 28, 2003
Posts: 227
Does the oracle database work correctly from an oracle tool such as SQLPlus?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Error while connecting Oracle with Java
 
Similar Threads
Doubt on insert statement in JDBC!!
error while trying to run first HelloWorld.jws in SimpleAxisServer
Http404 file not found
SMS through PC
Time and time-zone