Closed cwsheng closed 2 years ago
ODP.NET Version:3.21.61
Instead of declaring a new OracleCredential every time you open a new connection
OracleCredential oraCredential = new OracleCredential(strUserID, secPwd);
reuse the existing oraCredential object once it's created. Most apps will create just one OracleCredential object per DB user. Right now, you end up creating a new OracleCredential object every time you open a connection. ODP.NET will create a NEW pool for every Open(), which is not what you intend.
After verification, this is correct
TestCode:
View number of sessions