Max Pool Size 100 プール内の最大接続数。
Min Pool Size 1 プール内の最小接続数。
static void Main()
{
OracleConnection con = new OracleConnection();
//Open a connection using ConnectionString attributes
//related to connection pooling.
con.ConnectionString =
“User Id=scott;Password=tiger;Data Source=oracle;” +
“Min Pool Size=10;Connection Lifetime=120;Connection Timeout=60;” +
“Incr Pool Size=5; Decr Pool Size=2”;
con.Open();
Console.WriteLine(“Connection pool successfully created”);
// Close and Dispose OracleConnection object
con.Close();
con.Dispose();
Console.WriteLine(“Connection is placed back into the pool.”);
}