c#,oracle的连接字符串
来源:互联网 发布:网络歌手冷漠的老婆 编辑:程序博客网 时间:2024/04/25 09:11
c#,oracle的连接字符串
【转】http://blog.163.com/cuisweet/blog/static/1210644020061033105143/
System.Data.OracleClient OracleConnection.ConnectionString 属性 下表为 ConnectionString 内的值列出了有效的名称。 可识别的值为 true(极力建议使用)、false、yes 和 no。
OracleConnection,并在连接字符串中设置它的一些属性。
< )); myConnection->DataSource myConnection->ServerVersion, {1}?, {0}/nDataSource: S?ServerVersion: MessageBox::Show(String::Format( myConnection->Open(); OracleConnection(myConnString); myConnection OracleConnection* Security='yes"' Source="Oracle8i;Integrated" myConnString String* { CreateOracleConnection() void public: myConnection.Close();}<>所以说,<>System.Data.OracleClient),
是无法以sys用户登录的。
这只有使用Oracle ODP.NET(可以去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
// C#
...
OracleConnection con = new OracleConnection();
con.ConnectionString = "User lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Courier-Oblique; mso-bidi-font-family: Courier-Oblique; mso-font-kerning: 0pt">scott;Password=tiger;Data Source=oracle;
Pooling=true;Enlist=true;Min Pool Size=10;Connection Lifetime=120;
Connection Timeout=60;Incr Pool Size=5; Decr Pool Size=2";
con.Open();
...
以下网站提供连接字符串大全:
www.ConnectionStrings.com
- c#,oracle的连接字符串
- c#.net连接远程oracle数据库的连接字符串
- oracle的连接字符串
- ORACLE连接字符串的写法
- Oracle字符串连接的方法
- Oracle字符串连接的方法
- Oracle字符串连接的使用方法
- Oracle字符串连接的使用方法
- oracle中字符串的连接
- Oracle字符串连接的方法
- Oracle字符串连接的方法
- Oracle字符串连接的方法
- Oracle字符串连接的方法
- C#的oracle连接字符串
- Oracle字符串连接的方法
- Oracle字符串连接的使用方法
- Oracle字符串连接的方法
- Java连接Oracle数据库的连接字符串
- 关于 Oracle 的数据导入导出及 Sql Loader (sqlldr) 的用法
- Eclipse中PHP环境的搭建
- 游戏开发者年会2009
- 深入了解路由器与交换机的功能和区别
- 精通 JavaScript中的正则表达式
- c#,oracle的连接字符串
- Oracle数据库名、实例名和sid的区别
- ANSI编码和Unicode编码的不同
- c# 操作xml的方法
- event.keyCode键码值表
- Oracle删除重复记录的方法
- 用C#的两种取得硬盘剩余空间方法
- 软考网络工程师考试大纲
- [转载]如何处理含有特殊字符的数据库查询语句