This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Exim, .forward and DBD::Oracle


"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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]