hi there
I am using the dbi proxy. there are two scripts that work on the same mashine with the
proxy. now I copy the scripts to another server and try to connect. all I got was the
following message
Cannot log in to DBI::ProxyServer: Cannot connect: Bad file descriptor at
/usr/lib/perl5/site_perl/Net/Daemon/Log.pm line 125.
the net::daemon is installed on both servers. I minimized the configfile for the proxy
but it doesn't work.
the script:
my $dbh = DBI->connect("dbi:Proxy:$proxy;dsn=$dsnrad", "$userrad", "$passrad") ||
print "$DBI::errstr";
my $sth = $dbh->prepare("6 ? ?") || print "$DBI::errstr";
$sth->execute($username, $cpass) || print "$DBI::errstr";
$hash = $sth->fetchrow_hashref();
%hash = %{$hash};
$sth->finish;
$dbh->disconnect;
the configfile
use DBI;
require DBD::Oracle;
{
facility => 'daemon',
pidfile => '/var/dbiproxy/dbiproxy.pid',
logfile => '/var/log/dbiproxy.log',
mode => 'fork', # | threads | single
clients => [
SQL's
]
}
the $proxy is correct.
can someone give me a hand??
thx jan-hendrik