Re: $SIG{INT} tampering during DBI->connect on Oracle

"Martin J. Evans" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase.devel
Organization Easysoft Limited
Message-ID <[email protected]>
On 04/11/10 10:30, Charles Jardine wrote:
> On 03/11/10 19:16, Brian Phillips wrote:
>> On Wed, Nov 3, 2010 at 9:55 AM, Charles Jardine <[email protected]> wrote:
>>> I simply do not see this effect. The following program:
>>>
>>>  #!/usr/local/bin/perl -w
>>>  use DBI;
>>>  my $dbh = DBI->connect("dbi:Oracle:", oralogin) or die "Failed\n";
>>>  $| = 1;
>>>  sleep 1, print('.') while 1;
>>>
>>> prints dots every second until I press ^C, at which point it terminates.
>>>
>>> There must be something different about your environment. For reference, I
>>> have Oracle 10.2.0.4.6, Perl 5.10.1, DBI 1.609, DBD::Oracle 1.24. The
>>> OS is SLES 10 SP 3. It makes no difference whether I use the bequeather
>>> or a TNS connection.
>>
>> I can use your exact script and it doesn't respond to a <CTRL>-C.  The
>> only difference is that I'm specifying a username and password in the
>> DBI->connect call but I wouldn't think that would make any difference.
>>
>> Our versions are similar:
>> perl 5.10.1
>> DBI 1.611
>> DBD::Oracle 1.24
>> Oracle Client 11.2.0.1.0
> 
> It might be a difference between the Oracle 10 and Oracle 11 clients.
> 
> Can someone who has easy access to both confirm to deny this?
> 

I don't have Oracle 10 but I have Oracle Instant Client 11.2 and Oracle Server 11.1 and as I already reported I have no problems with SIGINT.

Martin
-- 
Martin J. Evans
Easysoft Limited
http://www.easysoft.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.