This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes OCI8 Driver Connection Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "OCI8 Driver Connection Problem" Watch "OCI8 Driver Connection Problem" New topic

OCI8 Driver Connection Problem

Tualha Khan
Ranch Hand

Joined: Nov 22, 2000
Posts: 287
Dear All,
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.
Tualha Khan

my java code is:
import java.sql.*;
public class tester
public tester()
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).]

SCJP2, BEA WLS 6.0, DB2 UDB 7.1
Tualha Khan
Ranch Hand

Joined: Nov 22, 2000
Posts: 287
Somebody help me??? See above post!!
Tualha Khan
I agree. Here's the link:
subject: OCI8 Driver Connection Problem
It's not a secret anymore!