Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id BDED61337B81 for ; Wed, 11 May 2011 02:54:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 23724-04 for ; Wed, 11 May 2011 05:54:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from intasect.com.cn (unknown [202.98.123.179]) by mail.postgresql.org (Postfix) with ESMTP id 386291337990 for ; Wed, 11 May 2011 02:54:14 -0300 (ADT) Received: from lhb3 [222.209.225.106] by intasect.com.cn with ESMTP (SMTPD32-8.12) id A4763250372; Wed, 11 May 2011 13:53:58 +0800 Message-ID: <3A15F4ECF69F46068FE5054FBDE17EC7@lhb3> From: =?utf-8?B?5p2O57SF5YW1?= To: "John R Pierce" , References: <201104260936.p3Q9aZTP029148@wwwmaster.postgresql.org> <4DCA0539.3080800@hogranch.com> Subject: Re: BUG #5994: Can't excute DBI->connect to oracle by client site Date: Wed, 11 May 2011 13:53:56 +0800 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=response Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.107 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RDNS_NONE=0.793 X-Spam-Level: X-Archive-Number: 201105/80 X-Sequence-Number: 30219 Perhaps you misunderstanding what I mean. I can connect to postgreSQL server correctly, but When I connect postgreSQL with TCP Sockets, it return error to connect to oracle server by DBI->connect from perlu script. When I connect postgreSQL with Unix Domain Sockets,it works well. My conf file: listen_addresses = '*' # what IP address(es) to listen on; host all all 0.0.0.0/0 password ----- Original Message ----- From: "John R Pierce" To: Sent: Wednesday, May 11, 2011 11:40 AM Subject: Re: [BUGS] BUG #5994: Can't excute DBI->connect to oracle by client site On 05/10/11 8:09 PM, 李紅兵 wrote: > I run my test program with 2 ways in the same login environment.One 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). is your server listen_addresses = '*' ? if not, its not listening on the interface that will respond to connections to 'HOSTNAME' and, is pg_hba.conf configured for an appropriate authentication method for `host` connections ? -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs