Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id E30EB1337BF3 for ; Wed, 11 May 2011 03:18:06 -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 31444-01 for ; Wed, 11 May 2011 06:17:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [173.230.139.50]) by mail.postgresql.org (Postfix) with ESMTP id 779DB1337B81 for ; Wed, 11 May 2011 03:17:54 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id 246BF881; Wed, 11 May 2011 02:17:53 -0400 (EDT) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id bhgseo+NBV7s; Wed, 11 May 2011 02:17:52 -0400 (EDT) Received: from mail.postnewspapers.com.au (ppp171-128.static.internode.on.net [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id 6785E2D; Wed, 11 May 2011 02:17:52 -0400 (EDT) Received: from [10.0.0.53] (wallace.localnet [10.0.0.53]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 651BDAF31E; Wed, 11 May 2011 14:17:51 +0800 (WST) Message-ID: <4DCA2A0F.3000209@postnewspapers.com.au> Date: Wed, 11 May 2011 14:17:51 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110307 Thunderbird/3.1.9 MIME-Version: 1.0 To: =?UTF-8?B?5p2O57SF5YW1?= CC: John R Pierce , pgsql-bugs@postgresql.org Subject: Re: BUG #5994: Can't excute DBI->connect to oracle by client site References: <201104260936.p3Q9aZTP029148@wwwmaster.postgresql.org> <4DCA0539.3080800@hogranch.com> <3A15F4ECF69F46068FE5054FBDE17EC7@lhb3> In-Reply-To: <3A15F4ECF69F46068FE5054FBDE17EC7@lhb3> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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/82 X-Sequence-Number: 30221 On 11/05/11 13:53, 李紅兵 wrote: > 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. Are you _certain_ that you're connecting to the same database on the same machine when you use TCP vs unix sockets? The simplest explanation for this problem would be that you're running different test perlu code or running it on different machines/DBs when connecting via TCP than when connecting via unix socket. If that's not the case, about the only thing I can imagine is some weird kernel security module getting in the way. Maybe something that tries to isolate processes started as a result of tcp/ip connections so they can't make new connections themselves, or something crazy like that. You wouldn't happen to be on a box with SELinux/Apparmor/TOMOYO/SMACK/etc, would you? -- Craig Ringer