BruceCui has asked for the wisdom of the Perl Monks concerning the following question:
I'm new to Perl. When my code tried to create new threads, the logger in the sub-thread body threw out exception like this:
thread failed to start: DBD::Oracle::db prepare failed: handle 2 is owned by thread 83e0008 not current thread 8973c18 (handles can't be shared between threads and your driver may need a CLONE method added) at /usr/cisco/packages/perl/perl-5.8.8/lib/site_perl/5.8.8/Log/Log4perl/Appender/DBI.pm line 88.Plz let me know if it is possible to used DBIAppender in multithread env, and how to make it happen, if anyone on the earth knows. Thanks a lot!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can Log4perl's DBI Appender be used in multithread?
by afoken (Chancellor) on Apr 13, 2011 at 10:33 UTC | |
|
Re: Can Log4perl's DBI Appender be used in multithread?
by chrestomanci (Priest) on Apr 13, 2011 at 13:32 UTC | |
by BruceCui (Initiate) on Apr 14, 2011 at 01:55 UTC | |
by afoken (Chancellor) on Apr 14, 2011 at 09:38 UTC |