X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 915C13A3CD3 for ; Tue, 2 Nov 2004 16:49:16 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 14031-10 for ; Tue, 2 Nov 2004 16:49:13 +0000 (GMT) Received: from silmaril.syscor.priv (h24-108-208-253.sbm.shawcable.net [24.108.208.253]) by svr1.postgresql.org (Postfix) with ESMTP id 42B503A3E80 for ; Tue, 2 Nov 2004 16:49:12 +0000 (GMT) Received: from syscor.com (strider.syscor.priv [192.168.1.3]) by silmaril.syscor.priv (8.12.8/8.12.8) with ESMTP id iA2Gn7CN026104; Tue, 2 Nov 2004 08:49:07 -0800 Message-ID: <4187BADC.2050702@syscor.com> Date: Tue, 02 Nov 2004 08:50:36 -0800 From: Ron St-Pierre User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka , pgsql-jdbc Subject: Re: JDeveloper References: <4186C6DE.4060603@syscor.com> <4186DBAD.2020501@syscor.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/21 X-Sequence-Number: 11443 Kris Jurka wrote: >On Mon, 1 Nov 2004, Ron St-Pierre wrote: > > > >>*cough* *cough* of course *ahem* and now that I've supplied the correct >>one it's telling me >>that the connection has been refused, and to check hostname, port.etc. >>This isn't a new database >>or setup, I can still access it using pgAdminIII (just tried), I ssh >>into the server all the time, etc. >>I also tried to specify the port after the url (192.x.x.x:5432) but then >>it complains that I don't >>have a suitable driver. Any ideas? >> >> >> > >Again I'm unsure of the URL you gave, but it should look like >jdbc:postgresql://db.mycompany.com:port/database > Yes, that worked! > >Are you using pgadmin from your desktop or the server? If you are using >it from the same machine as jdeveloper then the connection should look the >same to postgresql and should work. > To connect from pgAdmin I simply use the ip address 192.x.x.x and the port, without specifying the jdbc:postgresql:: prefix or the database name. >If you are using it from the server >then you may be connecting over unix sockets instead of tcpip sockets >which is a different situation. Double check the URL, the tcpip_socket >flag in postgresql.conf, and your pg_hba.conf settings. > >Kris Jurka > Many thanks Kris, you've saved me from more frustration! Ron