| 名稱 | 默認值 | 說明 |
| 數據源或服務器 | 要連接的oracle實例的名稱或網絡地址 | |
| 集成安全性 | 'false' | 該連接是否為安全的連接。 可識別的值為 true(極力建議使用)、false、yes 和 no。 |
| 密碼 | oracle 帳戶的登錄密碼(建議不要使用。為了保持較高的安全級別,極力建議您改用集成安全性關鍵字。) | |
| 持續安全信息 | 'false' | 當設置為 false 或 no(強烈建議)時,如果連接是打開的或者一直處于打開狀態的 state,那么安全敏感的信息(如密碼)就不會作為連接的一部分返回。重置連接字符串將重置包括密碼在內的所有連接字符串值。 |
| unicode | 指定用于 oracle 的.net framework 數據提供程序是否使用 utf16 模式 api 調用。除了未在 oracle 9i 客戶端軟件中使用分布式事務的情況以外,該關鍵字在其他情況下都會被忽略。當不使用 oracle 9i 客戶端軟件與 oracle 9i 服務器通信時,如果 unicode 設置為 true,可能發生不可預知的結果。 | |
| 用戶 id | oracle 登錄帳戶(建議不要使用。為了保持較高的安全級別,極力建議您改用集成安全性關鍵字。) |
}
所以說,用.net新提供的managed provider來訪問oracle數據(system.data.oracleclient),是無法以sys用戶登錄的。這只有使用oracle odp.net(可以去oracle官方網站下載)
oracle odp.net數據庫訪問連接字符串
connection string attribute | 默認值 | 描述 |
connection lifetime | 0 | maximum life time (in seconds) of the connection 當數據庫連接被返回到連接池中時,它的創建時間將與當前時間比較,如果超過了 connection lifetime 規定的時間,它將被釋放掉。 為 0 時將被視為最大連接時間。 |
connection timeout | 15 | maximum time (in seconds) to wait for a free connection from the pool |
data source | empty string | oracle net service name that identifies the database to connect to |
dba privilege | empty string | administrative privileges: sysdba or sysoper |
decr pool size | 1 | controls the number of connections that are closed when an excessive amount of established connections are unused |
enlist | true | enables or disables serviced components to automatically enlist in distributed transactions 當此值為 true 時,池中現存的所有數據庫連接將被加入到它的創建線程的 transaction context 中。如果不存在這個 transaction context 則無任何變化。 |
incr pool size | 5 | controls the number of connections that are established when all the connections in the pool are used |
max pool size | 100 | maximum number of connections in a pool |
min pool size | 1 | minimum number of connections in a pool |
password | empty string | password for the user specified by user id |
persist security info | false | enables or disables the retrieval of password in the connection string |
pooling | true | enables or disables connection pooling |
proxy user id | empty string | user name of the proxy user |
proxy password | empty string | password of the proxy user |
user id | empty string | oracle user name |
新聞熱點
疑難解答