Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: JDBC Java -> Oracle connection problem ...

Re: JDBC Java -> Oracle connection problem ...

From: DriftWood <drift_wood_at_my-deja.com>
Date: Wed, 06 Dec 2000 19:25:33 GMT
Message-ID: <90m3r5$nov$1@nnrp1.deja.com>

 DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());  conn = DriverManager.getConnection
 ("jdbc:oracle:thin:@host:port:SID",user,password);

If you now have two instances, you need to use the correct SID (and Port if there is more than one listener).

If this isn't working, what errors are you seeing?

--
-cheers

  DW



"It is a kind of good deed to say well; and yet words are not deeds.   -William Shakespeare"

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Wed Dec 06 2000 - 13:25:33 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US