hi,
I am using connection string like this:
"direct=True;Min Pool Size=5;Validate Connection=true;Connection Timeout=5;Default Command Timeout=90;Connection Lifetime=1800;user id=xxx;password=xxx;server=xxx;sid=xxx;Port=1521;persist security info=True"
I’ve heard this format is depreciated(sid in particular). what is the new format?
thank you
direct mode connection string
Re: direct mode connection string
hi. anyone cares to answer this question please?
Re: direct mode connection string
devart folks, please anwser my question.
is using SID in connection string obsolete? what format of connection stgring I should use for diurect connect?
my oracle experts tell me oracle will cut the support for SID, and they will use service name instead.
so how does the connection string look like withoud SID, but with service name?
thank you
is using SID in connection string obsolete? what format of connection stgring I should use for diurect connect?
my oracle experts tell me oracle will cut the support for SID, and they will use service name instead.
so how does the connection string look like withoud SID, but with service name?
thank you
Re: direct mode connection string
If your Oracle server requires SID to connect, use SID.
If it requires Service Name, use the Service Name.
Both options are possible and acceptable.
See also ConnectionString Property
Service Name Alias to an Oracle database instance (or many instances) to use in the OracleConnection.Direct mode. The default value is empty string. When Service Name is specified and implies several database instances, dotConnect for Oracle connects to the first instance provided by Oracle listener. Note that the Direct mode has limited support for RAC, it supports RAC with Connect Time Connection Failover (CTCF) only.
SID Unique name for an Oracle database instance to use in the OracleConnection.Direct mode. The default value is empty string.
The connection string could look like this:
If it requires Service Name, use the Service Name.
Both options are possible and acceptable.
See also ConnectionString Property
Service Name Alias to an Oracle database instance (or many instances) to use in the OracleConnection.Direct mode. The default value is empty string. When Service Name is specified and implies several database instances, dotConnect for Oracle connects to the first instance provided by Oracle listener. Note that the Direct mode has limited support for RAC, it supports RAC with Connect Time Connection Failover (CTCF) only.
SID Unique name for an Oracle database instance to use in the OracleConnection.Direct mode. The default value is empty string.
The connection string could look like this:
Code: Select all
direct=True;user id=xxx;password=xxx;server=xxx;Service Name=xxx;Port=1521;