aspose file tools*
The moose likes JDBC 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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "OCI8 Driver Connection Problem" Watch "OCI8 Driver Connection Problem" New topic
Author

OCI8 Driver Connection Problem

Tualha Khan
Ranch Hand

Joined: Nov 22, 2000
Posts: 287
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).]


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

Joined: Nov 22, 2000
Posts: 287
Hey,
Somebody help me??? See above post!!
Bye,
Tualha Khan
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: OCI8 Driver Connection Problem
 
Similar Threads
Compatibility Problem???
Network Adapter Error WHY????
SQLException: No Listener
ojdbc driver problem
Using JDBC to connect oracle