in reply to Re^2: Too many open files error with DBD Oracle
in thread Too many open files error with DBD Oracle

Presumably a problem on the Oracle side — seems to be an old issue... See file handles staying open on ocius.msb.

  • Comment on Re^3: Too many open files error with DBD Oracle

Replies are listed 'Best First'.
Re^4: Too many open files error with DBD Oracle
by JoeW (Novice) on Jun 23, 2010 at 18:26 UTC
    aha, thanks for that. Well, this has been very helpful - I think I need to rethink the way I'm using files and Oracle connections to work around this (e.g. re-using the connection rather than disconnecting for each iteration), as my options for changing the Oracle install are limited.
    Cheers
      I think I need to rethink the way I'm using files and Oracle connections to work around this (e.g. re-using the connection rather than disconnecting for each iteration), as my options for changing the Oracle install are limited.

      Rather than making wholesale changes to what you have working, if instead of creating 25 new threads, connections & filehandles within the same process to process each new input file; restart(*) the entire process. That way you get a clean slate for everything.

      (*)If Solaris is a forky OS, then that might be the way to go.

        Well, well - thank you v much for that. Hadn't used fork before - very useful! Solves my problem, with very little code change. Cheers