delorie.com/archives/browse.cgi | search |
"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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |