Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id F41301337B68 for ; Wed, 11 May 2011 00:40:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 25044-04 for ; Wed, 11 May 2011 03:40:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from hogranch.com (hogranch.com [75.101.82.47]) by mail.postgresql.org (Postfix) with ESMTP id 6DADE1337B4E for ; Wed, 11 May 2011 00:40:46 -0300 (ADT) Received: from [127.0.0.1] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id p4B3efE30760 for ; Tue, 10 May 2011 20:40:41 -0700 Message-ID: <4DCA0539.3080800@hogranch.com> Date: Tue, 10 May 2011 20:40:41 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #5994: Can't excute DBI->connect to oracle by client site References: <201104260936.p3Q9aZTP029148@wwwmaster.postgresql.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/77 X-Sequence-Number: 30216 On 05/10/11 8:09 PM, =E6=9D=8E=E7=B4=85=E5=85=B5 wrote: > I run my test program with 2 ways in the same login environment.One=20 > succeed and one fail. > > 1) psql -d dbi_link_test > -->connect succeed > 2) psql -h HOSTNAME -d dbi_link_test > -->connect fail > > The different is connection options(Unix Domain Sockets/TCP Sockets).=20 is your server listen_addresses =3D '*' ? if not, its not listening on th= e=20 interface that will respond to connections to 'HOSTNAME' and, is pg_hba.conf configured for an appropriate authentication method=20 for `host` connections ?