delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/11/14:13:56

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Exim, .forward and DBD::Oracle
Reply-To: Harald Maier <maierh AT myself DOT com>
References: <321323244855 DOT 20030410222844 AT familiehaase DOT de>
<3E9538B8 DOT 5010107 AT belkam DOT com>
<321323244855 DOT 20030410222844 AT familiehaase DOT de>
<3 DOT 0 DOT 5 DOT 32 DOT 20030410233114 DOT 007fcc30 AT incoming DOT verizon DOT net>
<3E963AF7 DOT 6060101 AT belkam DOT com> <3E96CA54 DOT 35118EA3 AT ieee DOT org>
<009201c30048$8cf1ad80$141ea8c0 AT dm> <3E96E558 DOT 9D8E5729 AT ieee DOT org>
<00d501c3004e$ee6a5160$141ea8c0 AT dm>
From: Harald DOT Maier DOT BW AT t-online DOT de
Date: Fri, 11 Apr 2003 20:13:25 +0200
In-Reply-To: <00d501c3004e$ee6a5160$141ea8c0@dm> (Dmitry Melekhov's message
of "Fri, 11 Apr 2003 21:22:28 +0400")
Message-ID: <uu1d4nbqy.fsf@myself.com>
User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3 (windows-nt)
MIME-Version: 1.0
X-Sender: 320041125923-0001 AT t-dialin DOT net

"Dmitry Melekhov" <dm AT belkam DOT com> writes:

> If I kill this process last output from it is:
> DynaLoader::bootstrap for DBD::Oracle (auto/DBD/Oracle/Oracle.dll)
>
> This is script:
>
> #!/usr/bin/perl
> $ENV{ORACLE_HOME}='c:\oracle\ora81';
> system ("/usr/bin/env");
> use DBI;
> $user = "tabel";
> $passwd = "";
> $host = "oracle.belkam.com";
> $sid = "TABEL";
> $dbh = DBI->connect("dbi:Oracle:host=$host;sid=$sid", $user, $passwd);
> print "OK";

I guess DBI is still trying to connect to the database. Have you set
Raise Error and Print Error in the connecting attributes. I am using
the following and I am fine with it.

,----
|$self->{DBI} = DBI->connect(
| 		       "DBI:Oracle:$db",$user,$pwd,
| 		       { "ora_session_mode" => $connect_mode,
| 			 "AutoCommit" => 0,
| 			 "RaiseError" => 1,
| 			 "PrintError" => 1
| 		       })
|  || $self->error("Could not connect to database ($db)");
`----

As far as I know RaiseError and PrintError should be true by default.
But I would double check this.

Harald


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019