Home » Developer & Programmer » JDeveloper, Java & XML » Problem with JDBC OCI Connection
Problem with JDBC OCI Connection [message #92060] Mon, 23 February 2004 05:27 Go to next message
Dada
Messages: 1
Registered: February 2004
Junior Member
Hi, I have a problem to connect from java to oracle.
I'm trying to connect to OracleDB with OCI Driver.
DriverManager.getConnection("jdbc:oracle:oci@ORCL",user,pwd); causes error: TNS: could not resolve service name. I'm working wih JDev 9.0.2.579. and Oracle 9.2.
Is anybody here who can help me?
Re: Problem with JDBC OCI Connection [message #92134 is a reply to message #92060] Mon, 22 March 2004 19:17 Go to previous message
Lalit
Messages: 7
Registered: February 2002
Junior Member
Dear Sir,
I am getting problem while connecting Oracle10g server using oci driver. It is giving me error as

Error occured is :java.sql.SQLException: No suitable driver
Exception in thread "main" java.lang.NullPointerException
at dbAccess.main(dbAccess.java:31)

So send me suitable solution for this problem.
Regds
Lalit
Previous Topic: Displaying BLOB in Web Page
Next Topic: send weblogic JMS message within oracle trigger
Goto Forum:
  


Current Time: Wed Aug 04 22:33:05 CDT 2021