dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleDataSourceEnumerator Class / GetDataSources Method / GetDataSources(String) Method
Name of the Oracle home to read TNS aliases from.

In This Topic
GetDataSources(String) Method
In This Topic
Retrieves a DataTable containing information about all TNS aliases described in the specified Oracle home.
Syntax
'Declaration
 
Public Overloads Function GetDataSources( _
   ByVal homeName As String _
) As DataTable
 

Parameters

homeName
Name of the Oracle home to read TNS aliases from.

Return Value

A DataTable containing information about all TNS aliases described in the specified Oracle home.
Remarks
This method returns a DataTable with the following columns:
Column Description
InstanceName Description
ServerName The name of the Oracle server.
ServiceName The Oracle service name (SID)
Protocol The protocol to use for connection.
Port The port to connect to.
See Also