Publish-VEORDatabase
Short Description
Publishes backed-up Oracle databases.
Applies to
Veeam Backup & Replication
Product Edition: Community, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides parameter sets that allow you to:
- Publish backed-up Oracle databases to Windows VMs.
Publish-VEORDatabase [-Database] <VEORDatabase> [-Server <string>] [-OracleHome <string>] [-GlobalDatabaseName <string>] [-OracleSid <string>] [-WindowsCredentials <pscredential>] [-OracleHomePassword <securestring>][-ToDateTime <datetime>] [-Force] [<CommonParameters>] |
- Publish backed-up Oracle databases to Linux VMs.
Publish-VEORDatabase [-Database] <VEORDatabase> -LinuxCredentials <VEORLinuxCredential> [-Server <string>][-OracleHome <string>] [-GlobalDatabaseName <string>] [-OracleSid <string>] [-SshPort <int>] [-ToDateTime<datetime>] [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet publishes backed-up Oracle databases.
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
Database | Specifies an Oracle database. The cmdlet will publish this database. | Accepts the VEORDatabase object. To get this object, run the Get-VEORDatabase cmdlet. | True | 0 | True (ByValue) |
Server | Specifies a name of the target Oracle server. The cmdlet will publish an Oracle database to that server. | String | False | Named | False |
LinuxCredentials | Specifies Linux credentials. The cmdlet will use these credentials to connect to the Linux VM. | Accepts the VEORLinuxCredentials object. To get this object, run the New-VEORLinuxCredential cmdlet. | False | Named | False |
OracleHome | For publishing to another location. Specifies the target Oracle home path. The cmdlet will publish an Oracle database to the location specified in the Oracle home path. | String | False | Named | False |
GlobalDatabaseName | Specifies a target global database name. The cmdlet will publish an Oracle database with the specified name. | String | False | Named | False |
OracleSid | Specifies target SID for an Oracle database. The cmdlet will publish 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 publishing 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:
| SecureString | False | Named | False |
ToDateTime | Specifies a restore period. The cmdlet will publish the Oracle database to the specified period. | DateTime | 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 |
Force | Defines that the cmdlet will remove the target Oracle database with the database from backup. Note: The cmdlet will show no prompt before executing the command. | SwitchParameter | 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.
Output Object
The cmdlet returns the VEORPublishedDatabase object that contains settings of published Oracle databases.
Example 1. Publishing Oracle Database
This example shows how to publish backed-up Oracle database.
Perform the following steps:
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 first restore session in the array.
|
Example 2. Publishing Oracle Database to Linux VM
This example shows how to publish backed-up Oracle databases to Linux VM.
Perform the following steps:
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 first restore session in the array.
|
Related Commands