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 Id=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

转载于:https://www.cnblogs.com/zhumk/archive/2004/12/29/83529.html

Oracle ODP.NET数据库访问连接字符串相关推荐

  1. excel宏字符串连接mysql_Excel 访问Sql 数据库的连接字符串

    原标题:Excel 访问Sql 数据库的连接字符串 SQL Server数据库的OLE DB连接方法和sql连接字符串 Excel使用OLE DB或OleDbConnection (.NET)方式 ( ...

  2. ODBC、OLE连接各种数据库的连接字符串

    简介 我们在使用数据库的时候,首先需要打开这个数据库. 我们可以找到集中类型的数据库,每个都使用不同的连接方式. 下面列举了一下主要的数据库的连接字符串 A:使用ODBC方式 1:dBASE连接字符串 ...

  3. 使用OLE DB方式连接常用数据库的连接字符串的设置

    使用OLE DB方式连接常用数据库的连接字符串的设置 SQL Server 使用 OLE DB 所设置的连接字符串: 标准连接方式 Provider=sqloledb;Data Source=data ...

  4. 各种数据库的连接字符串

    各种数据库的连接字符串 ADO.NET连接字符串大全 ADO.NET连接字符串 名称 ADO.NET连接字符串 说明 ADO.NET连接字符串:SQL Server,SQL Server 2005,A ...

  5. php server 连接字符串,sqlServer 数据库常用连接字符串

    sqlServer 数据库常用连接字符串 用户名和密码验证的方式去连接到数据库服务器 add name="conStr" connectionString="Data S ...

  6. SharePoint服务器连接配置数据库的连接字符串保存位置

    摘自:http://kaneboy.blog.51cto.com/1308893/280585 经常有人问我这个问题,SharePoint服务器将连接配置数据库的连接字符串保存在什么地方?虽然其他Sh ...

  7. 公共数据库访问连接类

    公共数据库访问连接类 顾名思义,公共数据库访问连接类有三个特点: 1.公共的,所以在该类中的所有方法都是静态的,因此直接调用类名即可,无须再实例化. 2.数据库访问,要访问数据库 3.连接类,所以有一 ...

  8. SqlServer数据库常用连接字符串

    sqlServer 数据库常用连接字符串 用户名和密码验证的方式去连接到数据库服务器 Windows验证的方式去连接到数据库服务器 <add name="conStr" co ...

  9. duri oracle 连接字符串_C#连接Oracle数据库的连接字符串

    Oracle XE 标准连接 Oracle XE(或者"Oracle Database 10g Express Edition")是一个简单免费发布的版本. 以下是语法格式: Dr ...

最新文章

  1. 分布式系统理论基础1: 一致性、2PC和3PC
  2. 二进制转换 html,javascript 处理回传的二进制图像并显示在html上
  3. java 管程通信_Java多线程07_线程通信之管程法与信号灯法
  4. java结构控制break和continue
  5. Retrofit2的再封装实战—多线程下载与断点续传(三)
  6. Steve Pavlina:如何ASAP找到人生目标?
  7. CnOpenData中国高等学校名单数据
  8. QString中去除空格
  9. 深度学习论文阅读图像分类篇(六):SENet《Squeeze-and-Excitation Networks》
  10. 长春理工大学成人高考大专报名条件
  11. 【爱情叙记】--刚闹完别扭
  12. PCB设计中数字地、模拟地、数字电源、模拟电源的处理方式
  13. 网站只有首页能打开,其他页面404
  14. Android高级工程师技能知识储备,android实战项目源码
  15. BIOS 报警声 / 声音提示
  16. 前苏联奥数题之12个乒乓球问题解答
  17. Gopher Meetup :久等了,武汉!
  18. WebBrowser中打开新页面
  19. 使用注解作为AOP的切入点(@Pointcut)
  20. Web 的现状 :网页性能提升指南

热门文章

  1. Linux怎么处理binray文件,Linux下如何反汇编arm raw binary文件
  2. php apache win7,win7安装apache+php
  3. python获取最近N天工作日列表、节假日列表
  4. 《LeetcodeHot100非困难题补录》
  5. IDA使用方法-----1
  6. idea代码样式模板_阿里p3c(代码规范,eclipse插件、模版,idea插件)
  7. python用电度数设计_无所不能的Python之配电设计自动化系统
  8. mysql mydumper_MySQL 之mydumper安装详解
  9. UVA 473——Raucous Rockers
  10. [C++]vector创建二维数组