Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: ODP .Net Connection Pool Problem on Web Application

Re: ODP .Net Connection Pool Problem on Web Application

From: <sdbillsfan_at_gmail.com>
Date: 13 Feb 2006 14:33:32 -0800
Message-ID: <1139870012.828807.96070@g47g2000cwa.googlegroups.com>


Sorry, I meant to also add that you need to make sure all your connections are opened/used/closed similar to this pattern so that you'll always close connections even if there are unexpected exceptions:

OracleConnection oc = null;
try
{

   oc = new OracleConnection(_myConnStr);    oc.Open();
   ...
}
catch
{

    ...log and/or reraise
}
finally
{

    if(oc != null)
    {

         oc.Close();
    }
} Received on Mon Feb 13 2006 - 16:33:32 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US