--- title: "Set-VEORIRDatabase" description: "Changes switchover settings of an instant recovery session for an Oracle database. Product: Veeam Backup & Replication Product Edition: Enterprise, Enterprise Plus, Veeam Universal License This cmdlet allows you to change the switchover option for a " canonical: "https://helpcenter.veeam.com/docs/vbr/explorers_powershell/set-veorirdatabase.html" breadcrumb: "Veeam Explorers PowerShell Reference > Veeam Explorers PowerShell Reference > Veeam Explorer for Oracle > Set-VEORIRDatabase" dateModified: "2026-08-20" --- # Set-VEORIRDatabase ## Short Description Changes switchover settings of an instant recovery session for an Oracle database. **Product**: Veeam Backup & Replication **Product Edition**: Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Set-VEORIRDatabase [-Database] [-SwitchOverOptions ] [] ``` ## Detailed Description This cmdlet allows you to change the switchover option for a specified Oracle database. ::: important You can only modify the switchover settings until the moment switchover is automatically triggered (if the `Auto` or `Scheduled` switchover options are selected). ::: ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Database

Specifies an Oracle database published within an instant recovery session.

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

VEORIRDatabase

True

0

True (ByValue)

SwitchOverOptions

Specified a switchover option for the necessary Oracle database.

Accepts the VEORIRSchedule object. To create this object, run the New-VEORIRSwitchOverOptions cmdlet.

VEORIRSchedule

False

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the [About Common Parameters](http://go.microsoft.com/fwlink/p/?LinkID=113216) section of Microsoft Learn. ## Examples ::: example ### Setting Scheduled Switchover of Oracle Database This example shows how to set the scheduled switchover for the `orcl` database. The cmdlet will perform the switchover at `13:00:00` on `2026-11-24`. ``` $time = Get-Date -Date "2026-12-4 13:00:00" $TimeUtc = $time.ToUniversalTime() $ScheduledSwitch = New-VEORIRSwitchOverOptions -Scheduled -SwitchingTimeUtc $TimeUtc $IRDatabase = Get-VEORIRDatabase -DatabaseName "orcl" Set-VEORIRDatabase -Database $IRDatabase -SwitchOverOptions $ScheduledSwitch ``` Perform the following steps: 1. Run the [`Get-Date`](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-date) cmdlet and specify the date and time when the switchover must be performed. Save the result to the `$time` variable. 2. Use the `ToUniversalTime()` method to convert the date and time to the UTC format. 3. Run the [`New-VEORIRSwitchOverOptions`](new-veorirswitchoveroptions.md) cmdlet. Provide the `Scheduled` parameter. Set the `$TimeUtc` variable as the `SwitchingTimeUtc` parameter value. Save the result to the `$ScheduledSwitch` variable. 4. Run the [`Get-VEORIRDatabase`](get-veorirdatabase.md) cmdlet. Specify the `DatabaseName` parameter value. Save the result to the `$IRDatabase` variable. 5. Run the `Set-VEORIRDatabase` cmdlet. Specify the following options: - Set the `$IRDatabase` variable as the `Database` parameter value. - Specify the `$ScheduledSwitch` variable as the `SwitchOverOptions` parameter value. ::: ## Related Commands - [``Get-Date``](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-date) - [`New-VEORIRSwitchOverOptions`](new-veorirswitchoveroptions.md) - [`Get-VEORIRDatabase`](get-veorirdatabase.md)