Hello,
I have a questions (troubles) using dbiproxy.
The situation is as follows:
1. I've started dbiproxy as follows:
dbiproxy --localaddr=192.168.0.121 --localport=1234 --logfile=STDERR --debu
g --mode=fork
2. using the following script to deal with the database:
#!/usr/bin/perl
use DBI;
use Data::Dumper;
use strict;
my $host = '192.168.0.121';
my $port = 1234;
my $db = 'dbi:Oracle:testing';
my $user = 'stelt';
my $passwd = 'steltora';
my $dbh = DBI->connect_cached("dbi:Proxy:hostname=$host;port=$port;dsn=$db",
$user, $passwd) or die $DBI::errstr;
my @row_ary = $dbh->selectrow_array('select * from equipment');
print "Rows:\n" . Dumper(\@row_ary);
3. monitoring number of database connections on the ORACLE server.
However when the script finishes, the server shows that the connection is
closed (i.e. connect_cached does not work properly).
It is really issue for me because caching and reusing of the connections are
the main reasons of introduction of the dbiproxy to the system.
Where am I wrong ?
Thanks, in advance.
-------------------------
Best regards,
Ildar Gabdulline
Project Manager, STELT Telecom
mailto : [EMAIL PROTECTED]
WWW : www.realeast.ru