This is an archive version of the document. To get the most up-to-date information, see the current version.

Get-VEORRMANRestoreSession

In this article

    Short Description

    Returns active restore sessions started to explore Oracle databases backed up with the Veeam Plug-in for Oracle RMAN.

    Applies to

    Product Edition: Enterprise Plus

    Syntax

    Get-VEORRMANRestoreSession [<CommonParameters>]

    Detailed Description

    This cmdlet returns an array of active restore sessions started to explore Oracle databases backed up with the Veeam Plug-in for Oracle RMAN.

    Get-VEORRMANRestoreSession Note:

    The cmdlet returns restore sessions initiated in the PowerShell console only. The cmdlet does not return restore sessions running in the Veeam Backup & Replication console.

    <CommonParameters>

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

    Examples

    Example 1. Getting all Running Restore Sessions

    This command gets all running restore sessions to perform operations with Oracle databases backed up with the Veeam Plug-in for Oracle RMAN. Save the result to the $session variable to be able to use this variable with other cmdlets.

    $session = Get-VESQLRestoreSession

    Example 2. Getting Specific Restore Session

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

    $session = Get-VEORRMANRestoreSession

    $session[0]

    You must 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 forth restore session in the array).

    1. Specify the necessary ordinal number of the restore session for the $session variable. In our example, it is the fourth restore session in the array.