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

Home -> Community -> Usenet -> c.d.o.server -> Re: Trouble connecting to 10g via JDBC

Re: Trouble connecting to 10g via JDBC

From: Lee Chalupa via OracleMonster.com <forum_at_OracleMonster.com>
Date: Thu, 03 Feb 2005 13:43:10 GMT
Message-ID: <f525546a211d4584880f49c43b3a45ca@OracleMonster.com>


I found the problem. I have an instance named orcl on both the local machine and the database server. I did not include the '@' sign in the connection string and evidently the jdbc program found the local instance not the intended remote instance.

Here is the existing connection string which should include an @ sign before 'Chalupaserver':

	//using the Oracle JDBC Thin Driver
		myConnection = DriverManager.getConnection(

"jdbc:oracle:thin:Chalupaserver:1521:orcl",
"LTChalupa",
"38123812"

lee

-- 
Message posted via http://www.oraclemonster.com
Received on Thu Feb 03 2005 - 07:43:10 CST

Original text of this message

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