Click or drag to resize
Galactic API

OracleUtilityBuildConnectionString Method (String, String, String, Boolean, Boolean, String)

Builds a connection string using TNS.

Namespace:  Galactic.Sql.Oracle
Assembly:  Galactic.Sql.Oracle (in Galactic.Sql.Oracle.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public static string BuildConnectionString(
	string addressName,
	string accountName,
	string password,
	bool trustedConnection,
	bool loadBalancing,
	string dbaPrivilege
)

Parameters

addressName
Type: SystemString
The address name of the database to connect to, as defined in the tnsnames.ora file.
accountName
Type: SystemString
The name of the account to use when connecting to the database server.
password
Type: SystemString
The password for the account.
trustedConnection
Type: SystemBoolean
Whether to use integrated security to create a trusted connection with the database server. An accountName and password are not required for a trusted connection, the Windows account running the application will be used.
loadBalancing
Type: SystemBoolean
Whether connection should be optimized for RAC databases.
dbaPrivilege
Type: SystemString
The database system level privilege to make the connection with. DBAPrivilege defines all valid values. Use NONE for non-system connections

Return Value

Type: String
The built connection string, or null if the string could not be built.
See Also