Get-VEORDatabase
Short Description
Returns backed-up Oracle databases.
Applies to Veeam Backup & Replication
Product Edition: Enterprise, Enterprise Plus
Syntax
Get-VEORDatabase [-Session] <VEORRestoreSession> [[-Name] <string[]>] [<CommonParameters>] |
Detailed Description
This cmdlet returns an array of backed-up Oracle databases. After you get backed-up Oracle databases, you can restore these databases.
Run the Restore-VEORDatabase cmdlet to restore Oracle databases.
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input | Accept Wildcard Characters |
Session | Specifies an active restore session. The cmdlet will return an array of Oracle databases within the specified restore session. | Accepts the VEORRestoreSession object. To get this object, run the Get-VEORRestoreSession-cmdlet. | True | 0 | True (ByValue) | False |
Name | Specifies a name of an Oracle database. The cmdlet will return the Oracle database with the specified name. | String[] | False | 1 | False | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Return Type
The cmdlet returns the VEORDatabase[] object that contains an array of backed-up Oracle databases.
Examples
- Getting Oracle Databases Within Specified Restore Session
- Getting Oracle Databases With Specified Name
Example 1. Getting Oracle Databases Within Specified Restore Session
This example shows how to get all Oracle databases added to an Oracle restore session.
$session = Get-VEORRestoreSession Get-VEORDatabase -Session $session[0] |
You must perform the following steps:
- Run the Get-VEORRestoreSession cmdlet. Save the result to the $session variable.
The Get-VEORRestoreSession cmdlet will return an array of active restore sessions. Mind the ordinal number of the necessary restore session (in our example, it is the second restore session in the array).
- Run the Get-VEORDatabase cmdlet. Set the $session variable as the Session parameter value..
Example 2. Getting Oracle Databases With Specified Name
This example shows how to get the specific Oracle database added to an Oracle restore session.
$session = Get-VEORRestoreSession Get-VEORDatabase -Session $session[0] -Name "Oracle Database" |
You must perform the following steps:
- Run the Get-VEORRestoreSession cmdlet. Save the result to the $session variable.
The Get-VEORRestoreSession cmdlet will return an array of active restore sessions. Mind the ordinal number of the necessary restore session (in our example, it is the second restore session in the array).
- Run the Get-VEORDatabase cmdlet. Set the $session variable as the Session parameter value. Specify the Name parameter value.
Related Commands