Get-VEORRMANDatabase

In this article

    Short Description

    Returns Oracle databases backed-up with Veeam Plug-in for Oracle RMAN.

    Applies to Veeam Backup & Replication

    Product Edition: Enterprise Plus, Veeam Universal License

    Syntax

    Get-VEORRMANDatabase [-Session] <VEORRMANRestoreSession> [[-Name] <string[]>] [-OracleHome <string[]>] [<CommonParameters>]

    Detailed Description

    This cmdlet returns Oracle databases backed-up with Veeam Plug-in for Oracle RMAN.

    Parameters

    Parameter

    Description

    Type

    Required

    Position

    Accept Pipeline Input

    Accept Wildcard Characters

    Session

    Specifies an active restore session for an Oracle database backed-up with Veeam Plug-in for Oracle RMAN. The cmdlet will return an array of Oracle databases backed-up with Veeam Plug-in for Oracle RMAN within the specified restore session.

    Accepts the VEORRMANRestoreSession object. To get this object, run the Get-VEORRMANRestoreSession cmdlet.

    True

    0

    False

    False

    Name

    Specifies an array of names for the Oracle database. The cmdlet will return Oracle databases from the restore session with the specified name.

    String[]

    False

    1

    False

    False

    OracleHome

    Specifies an array of names of an Oracle home path. The cmdlet will return Oracle databases from the restore session with the specified paths.

    String[]

    False

    Named

    False

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Docs.

    Examples

    Get-VEORRMANDatabaseExample 1. Getting Databases Within Specified Restore Session

    This example shows how to get all Oracle databases backed-up with Veeam Plug-in for Oracle RMAN within the specific restore session.

    $session = Get-VEORRMANRestoreSession

    Get-VEORRMANDatabase -Session $session[0]

    Perform the following steps:

    1. Run the Get-VEORRMANRestoreSession cmdlet. Save the result to the $session variable.

    The Get-VEORRMANRestoreSession cmdlet will return an array of active restore sessions. Mind the ordinal number of the necessary restore session (in our example, it is the first restore session in the array).

    1. Run the Get-VEORRMANDatabase cmdlet. Set the $session variable as the Session parameter value.

    Get-VEORRMANDatabaseExample 2. Getting Database with Specified Name

    This example shows how to get the RMAN Database Oracle database backed-up with Veeam Plug-in for Oracle RMAN with the specified name.

    $session = Get-VEORRMANRestoreSession

    Get-VEORRMANDatabase -Session $session[0] -Name "RMAN Database"

    Perform the following steps:

    1. Run the Get-VEORRMANRestoreSession cmdlet. Save the result to the $session variable.

    The Get-VEORRMANRestoreSession cmdlet will return an array of active restore sessions. Mind the ordinal number of the necessary restore session (in our example, it is the first restore session in the array).

    1. Run the Get-VEORRMANDatabase cmdlet. Set the $session variable as the Session parameter value. Specify the Name parameter value.

    Related Commands

    Get-VEORRMANRestoreSession