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

Restore-VEORIRDatabase

Short Description

Performs instant restore of a backed-up Oracle database.

Applies to

Veeam Backup & Replication

Product Edition: Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Restore-VEORIRDatabase [-Database] <VEORDatabase> -SwitchOverOptions <VEORIRSwitchOverOption> [-Server <string>] [-OracleHome <string>] [-GlobalDatabaseName <string>] [-OracleSid <string>] [-WindowsCredentials <pscredential>] [-OracleHomePassword <securestring>] [-LinuxCredentials <VEORLinuxCredential>] [-SshPort <int>] [-ToPointInTimeUTC <datetime>] [-File <VEORDatabaseFile[]>] [-TargetPath <string[]>] [-Force]  [<CommonParameters>]

Detailed Description

This cmdlet performs instant restore of a backed-up Oracle database. You can restore the database to the original location or to another location. For details, see the Instant Recovery section of the Veeam Explorers Guide.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Database

Specifies an Oracle database. The cmdlet will restore this database.

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

True

0

True (ByValue)

SwitchOverOptions

Specifies a switchover option: automated, manual or scheduled.

Accepts the VEORIRSwitchOverOption object. To get this object, run the New-VEORIRSwitchOverOptions cmdlet.

True

Named

True (ByValue)

Server

For restore to another location.

Specifies a name of the target Oracle server. The cmdlet will restore the database to the specified server.

String

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.

String

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.

String

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.

String

False

Named

False

WindowsCredentials

Specifies Windows credentials. The cmdlet will use these credentials to connect to the Windows VM.

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

False

Named

False

OracleHomePassword

For restoring Oracle Database 12c or later on Windows server.

Specifies Oracle home credentials. The cmdlet will use these credentials for starting Oracle Services on the VM guest OS.

Note: This parameter is required in case you use the following types of Oracle home User:

  • Existing Windows user
  • New Windows user

SecureString

False

Named

False

LinuxCredentials

Specifies Linux credentials. The cmdlet will use these credentials to connect to the Linux VM.

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

False

Named

False

ToPointInTimeUtc

Specifies a restore period. The cmdlet will restore the Oracle database to the specified period.

DateTime

False

Named

False

File

Specifies an array of Oracle database files.

Accepts the VEORDatabaseFile[] object. To get this object, run the Get-VEORDatabaseFile cmdlet.

False

Named

False

TargetPath

Specifies the target path array. The cmdlet will restore the Oracle database files to the locations, specified in the array.

Note: For every Oracle database file you must assign the specific file path.

String[]

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.

SwitchParameter

False

Named

False

SshPort

Specifies the SSH port number. The cmdlet will use that port to connect to the Linux VM.

Default: 22

Int32

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 Docs.

Examples

Restore-VEORIRDatabaseExample 1. Performing Instant Restore of Oracle Database to Original Location and Configuring Scheduled Switchover

Restore-VEORIRDatabaseExample 2. Performing Instant Recovery of Oracle Database to Specific Server and Switching Over Manually

Related Commands