dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleConnection Class / ServiceName Property

In This Topic
    ServiceName Property (OracleConnection)
    In This Topic
    Gets or sets an alias to an Oracle database instance (or many instances) to use in the OracleConnection.Direct mode.
    Syntax
    'Declaration
     
    Public Property ServiceName As String
    public string ServiceName {get; set;}

    Property Value

    Alias to an Oracle database instance (or many instances) to use in the OracleConnection.Direct mode. The default value is empty string.
    Remarks

    This property is used only in OracleConnection.Direct mode. When a value is assigned to this property, the OracleConnection is closed.

    When Service Name is specified and implies several database instances, dotConnect for Oracle connects to the first instance provided by Oracle listener. Note that RAC is not supported in the Direct mode, and provider works only with this one database instance.

    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