I hope this will help you.
using (OracleConnection oraConn = new OracleConnection(connectionString))<br />
{<br />
try<br />
{<br />
oraConn.Open();<br />
}<br />
catch(Exception e)<br />
{<br />
}<br />
finally<br />
{<br />
if(oraConn != null && oraConn.State != ConnectionState.Closed)<br />
{<br />
oraConn.Close();<br />
}<br />
}<br />
}