in reply to Too many open files error with DBD Oracle
If you want to use threads in conjunction with DBI, it behoves you to read the pod for the appropriate DBD::*. In this particular case, this might be useful information:
ora_dbh_share
Needs at least Perl 5.8.0 compiled with ithreads. Allows to share database connections between threads. The first connect will make the connection, all following calls to connect with the same ora_dbh_share attribute will use the same database connection. The value must be a reference to a already shared scalar which is initialized to an empty string.
our $orashr : shared = '' ; $dbh = DBI->connect ($dsn, $user, $passwd, {ora_dbh_share => \$orash +r}) ;
That said, your snippet is concealing why you are using threads.
It is hard to see why you would be failing for a lack of file handles, when you should have at most 25 open at any given time. Unless Perl on Solaris, or Solaris itself is terminally broken?
The question of whether you could actually benefit from multiple connections to Oracle is entirely obscured.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Too many open files error with DBD Oracle
by JoeW (Novice) on Jun 23, 2010 at 15:39 UTC | |
by BrowserUk (Patriarch) on Jun 23, 2010 at 18:13 UTC | |
by JoeW (Novice) on Jun 23, 2010 at 18:36 UTC | |
by Corion (Patriarch) on Jun 23, 2010 at 16:04 UTC |