Restore-VEORIRDatabase
Short Description
Performs instant recovery of a backed-up Oracle database.
Product: Veeam Backup & Replication
Product Edition: Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Restore-VEORIRDatabase [-Database] <VEORDatabase> [-Server <String>] [-OracleHome <String>] [-GlobalDatabaseName <String>] [-OracleSid <String>] [-WindowsCredentials <PSCredential>] [-OracleHomePassword <SecureString>] [-LinuxCredentials <VEORLinuxCredential>] [-SshPort <Int32>] [-ToPointInTimeUTC <DateTime>] [-File <VEORDatabaseFile[]>] [-TargetPath <String[]>] -SwitchOverOptions <VEORIRSchedule> [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet performs instant recovery of a backed-up Oracle database. You can recover the database to the original location or to another location. For details, see the Instant Recovery section of the Veeam Explorers User Guide.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Database |
Specifies an Oracle database that the cmdlet will restore.
Accepts the |
True |
0 |
True (ByValue) |
|
|
File |
Specifies an array of Oracle database files.
Accepts the |
False |
Named |
False |
|
|
Force |
Defines that the cmdlet will overwrite the existing Oracle database with the database from the backup. Note: The cmdlet will show no prompt before executing the command. |
|
False |
Named |
False |
|
GlobalDatabaseName |
For restore to another location. Specifies the global database name. The cmdlet will restore an Oracle database with the specified name. Note: Do not provide this parameter if you want to restore to the original location. |
|
False |
Named |
False |
|
LinuxCredentials |
For restore to a Linux machine. Specifies Linux credentials that the cmdlet will use to connect to a Linux machine.
Accepts the |
False |
Named |
False |
|
|
OracleHome |
For restore to another location. Specifies the target Oracle home path. The cmdlet will restore an Oracle database to the location specified in the Oracle home path. Note: Do not provide this parameter if you want to restore to the original location. |
|
False |
Named |
False |
|
OracleHomePassword |
For restoring Oracle Database 12c or later on Windows server. Specifies Oracle home credentials that the cmdlet will use for starting Oracle Services on the guest OS. Note: This parameter is required in case you use the following types of Oracle home User:
|
|
False |
Named |
False |
|
OracleSid |
For restore to another location. Specifies a new SID for an Oracle database. The cmdlet will restore the database with the specified SID. Note: Do not provide this parameter if you want to restore to the original location. |
|
False |
Named |
False |
|
Server |
For restore to another server. Specifies DNS name or IP address of the target server to which the database will be restored. Note: Do not provide this parameter if you want to restore to the original server. |
|
False |
Named |
False |
|
SshPort |
For restore to a Linux machine. Specifies the SSH port number that the cmdlet will use to connect to the Linux machine. Default: 22 |
|
False |
Named |
False |
|
SwitchOverOptions |
Specifies a switchover option:
Accepts the |
True |
Named |
True (ByValue) |
|
|
TargetPath |
Specifies the target path array. The cmdlet will restore the Oracle database files to the locations specified in the array. Note: You must assign a specific file path for each Oracle database file. |
|
False |
Named |
False |
|
ToPointInTimeUTC |
Specifies a point in time in the UTC format within the restore interval of an Oracle database. The cmdlet will restore the database to the state of the specified point in time. |
|
False |
Named |
False |
|
WindowsCredentials |
For restore to a Windows machine. Specifies Windows credentials that the cmdlet will use to connect to a Windows machine.
Accepts the |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Output Object
The cmdlet returns the VEORIRDatabase object that contains the Oracle database published within the instant recovery session.
Examples
Example 1. Performing Instant Recovery of Oracle Database to Original Location with Scheduled Switchover
|
This example shows how to perform instant recovery of the
Perform the following steps:
|
Example 2. Performing Instant Recovery of Oracle Database to Specific Server with Manual Switchover
|
This example shows how to perform instant recovery of the
Perform the following steps:
|
Related Commands
New-VEORIRSwitchOverOptionsCreates a switchover option that you can use in the instant recovery session of an Oracle database.Get-VEORDatabaseReturns backed-up Oracle databases.Get-CredentialNew-VEORLinuxCredentialCreates a Linux credential record to connect to a Linux machine.Read-HostSwitch-VEORIRDatabasePerforms switchover of an Oracle database published within an instant recovery session.