使用ODP.Net 可以实现.Net 程序以SYSDBA 身份访问数据库

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

转载于:https://www.cnblogs.com/SharkXu/archive/2012/02/26/ODP_NET_SYSDBA.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值