- Oracle Client 経由でデータベースに接続する。
- コネクションプーリングを使用できる。
cnn.ConnectionString = "User Id=scott; Password=tiger; Data Source=ora10g;
Connection Lifetime=120; Connection Timeout=60; Decr Pool Size=2; Incr Pool Size=5;
Max Pool Size= 20; Min Pool Size=5;Pooling=true;";
cnn.ConnectionString =
"User Id=scott;Password=tiger;Data Source= ora10g ";
cnn.Open();
cnn.Failover += new OracleFailoverEventHandler(OnFailover);
...
public FailoverReturnCode OnFailover(
object sender, OracleFailoverEventArgs eventArgs)
{
return FailoverReturnCode.Success;
}