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
    public DataTable GetDataSources( 
       string homeName
    )

    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.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also