網址收藏-各種數據庫的連接字符串-http://www.connectionstrings.com/

http://www.connectionstrings.com/ 

這是俺所關注的內容:

Using Connection Pooling
The connection pooling service will create a new pool if it can't find any existing pool that exactly match the new connections connection string properties. If there is a matching pool a connection will be recycled from that pool.

   
Data Source=myOracleDB;User Id=myUsername;Password=myPassword;Min Pool Size=10;Connection Lifetime=120;Connection Timeout=60;Incr Pool Size=5;Decr Pool Size=2;

實際中有看到這種寫法的:
.NET與ORACLE的連接方式
(OracleConnection(.NET))採用共享池鏈接,連接字符串。(寫在web.config)
<add key="strConn" value="User ID=fjdms;Data Source=fjdms_lyj;Password=XXXX;Max Pool Size=1000;pooling=true;" />

從ORACLE網站上看到的連接字符串《通過 Visual Studio 調試 Oracle PL/SQL 》:http://www.oracle.com/technology/global/cn/obe/odt/debugging/debugging.htm

string constr = "User Id=hr; Password=hr; Data Source=ORCL; enlist=false; pooling=false";

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章