Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OCI8 Driver Connection Problem

 
Tualha Khan
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
Hey,
I am facing problem in connecting with my Oracle 8i EE. I am using JDK1.2.2. I am using windows
2000 professional edition.
When I try to connect using oracle thin driver, I get connected without any problem. But when I
try to use sun-odbc driver, or I use the oracle oci8 drivers, I get a error which says "java.exe
has generated errors and will now be closed by windows"
I got the following listing from the error log file:
Application exception occurred:
App: java.exe (pid=952)
When: 9/2/2000 @ 00:29:28.581
Exception number: c0000005 (access violation)
*----> System Information <----*
Computer Name: GMD
User Name: Tualha Khan
Number of Processors: 1
Processor Type: x86 Family 6 Model 6 Stepping 5
Windows 2000 Version: 5.0
Current Build: 2195
Service Pack: None
Current Type: Uniprocessor Free
Registered Organization: GMD
Registered Owner: Tualha Khan

I get the partial output on the command prompt as:
Driver Registered

What is wrong?
Please help.
Bye,
Tualha Khan

my java code is:
import java.sql.*;
public class tester
{
public tester()
{
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
System.out.println("Driver Registered");
//Connection con=DriverManager.getConnection("jdbcracle:thin:@gmd:1521:gmd","tualha","khan");
Connection con=DriverManager.getConnection("jdbcracleci8:tualha/khan@");
System.out.println("Connection Established");
}
catch(Exception ex)
{
System.out.println("Exception is : "+ex);
}
}
public static void main(String args[])
{
new tester();
}
}

[This message has been edited by Thomas Paul (edited March 05, 2001).]
 
Tualha Khan
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
Somebody help me??? See above post!!
Bye,
Tualha Khan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic