Oracle DB Restore
To restore an Oracle database
- application/json
Request Body
taskInfo object
associations object[]
clientName string requiredSource Client Name
instanceName string requiredSource Instance Name
appName stringOracle
subTasks object[]
subTask object
subTaskType string requiredRESTORE
operationType string requiredRESTORE
options object
restoreOptions object
browseOption object
mediaOption object
To use a specific Media option
mediaAgent object
Select specific MediaAgent for restore job. Provide MediaAgentId or MediaAgentName
mediaAgentId integerMedia Agent ID
mediaAgentName stringMedia Agent Name
destination object
destClient object required
Destination Client
clientName string requiredDestination Client Name
destinationInstance object required
instanceName string requiredDestination Instance Name
appName stringDefault value:
OracleOracle
clientName string requiredDestination client Name
destPath string[]The destination path for restore to disk operation
oracleOpt object
restoreSPFile boolean requiredSet this True to restore SPFILE
restoreControlFile boolean requiredSet this True to restore Control File
ctrlBackupPiece stringEnter controlfile backuppiece to be used for restore. Leave it empty to auto pick relavent piece.
restoreData boolean requiredSet this to true to restore entire database i.e all tablespaces/datafiles.
restoreFrom string requiredPossible values: [
0 - Latest Backup,1 - Point in Time]Select point in time for restore database. Fill restoreTime value.
restoreTime object
if restoreFrom=1, provide a timestamp for restore database.
time integerepoch timestamp value for PIT restore. It will be converted to Oracle RMAN syntax for restore database.
recover boolean requiredSet this to true to recover database by applying archive logs for given poin-in-time.
recoverFrom string requiredPossible values: [
0 - Current Time,1 - Point in Time,2 - SCN,3 - Most Recent Backup]Select recovery critieria. Use '0 - Current Time' only for in-place restores. For '3 - Most Recent Backup', no need to provide recoverSCN or recoverTime values.
recoverSCN integer requiredIf using "2 - SCN" for recoverFrom, provide SCN value here.
recoverTime object required
If using "1 - Point in Time" for recoverFrom field, provide timestamp
time integer requiredepoch timestamp value. It will be converted to Oracle RMAN syntax for recover database.
noCatalog boolean requiredSet to false to skip RMAN catalog usage during restore or if source never had recovery catalog.. Otherwise, RMAN restore will use source catalog configured in Commvault.
restoreStream integerDefault value:
1Number of RMAN channels or streams to allocate for restore
switchDatabaseMode boolean requiredSet to true to change destination database mode automatically for restore
openDatabase booleanDefault value:
trueSet to true to open the database post restore, applicable for pdbs too
resetLogs integerDefault value:
1Set 1 to run "open resetlogs" after restore during open. When controlfile is restored along with database OR a PIT recovery is done, open resetlogs is required.
restoreWallet booleanSet to true to restore Oracle wallet for cross machine restores Applies to encrypted Oracle databases
sourceWalletIdentifier object
If restoreWallet is set to true, supply source wallet password.
savedCredential object
provide CredentialVault entity ID created for source database wallet password
credentialId integerCredential ID of type 'Database Encryption Key'
destinationWalletIdentifier object
if restoreWallet is true, provide destination database wallet password
savedCredential object
provide CredentialVault entity ID created for destination database wallet password
credentialId integerCredential ID of type 'Database Encryption Key'
redirectAllItemsSelected booleanSet to true if you want to redirect all datafiles to a single path. Enter the destination path in renamePathForAllTablespaces field.
renamePathForAllTablespaces stringPath to Redirect all datafiles / Redirect all PDBs for PDB Clone. Example: +DATA, /u01/oracle/oradata/PRD/datafiles
redirectItemsPresent booleanSet to true if datafile level redirect is required. Provide values in redirectItems, redirectItemsValue.
redirectItems string[]List of files are to be redirected
redirectItemsValue string[]List of redirect file paths
logFileGroup booleanSet to true to redirect redo logs
duplicateToLogFile booleanSet to true to create redo logs
duplicateToLogFilesList stringList of redo log volumes to be created
duplicateToLogFilesListValue string[]List of redo log files to be created
redirectTempFilesSelected booleanSet to true to redirect temp datafiles
redirectTempFilesValue stringPath to which redirect temp file must be redirected
crossmachineRestoreOptions object
Opions Restore to same SID cross machine
doNidForCrossMachineRestore booleanDefault value:
trueset to true to change DBID via nid command post restore
setDBId booleanDefault value:
trueSet to true to search controlfile autobackup with source DBID for cross machine restores.
archiveLog booleanSet to true to restore archivelogs instead of recover. 'recover' and 'restoreLog' are mutually exclusive. Enter log range by SCN/Seq#/Time in archiveLogBy and logTarget values.
logTarget stringTarget path to restore archivelogs on destination client.
archiveLogBy stringPossible values: [
BYLSN,BYTIME]Select archive log restore criteria. For BYTIME option, it requires useStartLog,logTime/fromTime for start range AND/OR set useEndLog,logTime/toTime to use end range. For BYLSN option, it requires useStartLSNNum,startLSNNum AND/OR useEndLSNNum,endLSNNum values to use LSn ranges.
useStartLog booleanset to true to supply logTime/fromTime for archive log range
useEndLog booleanset to true to supply logTime/toTime for archive log range
logTime object
If archiveLogBy is set to BYTIME, enter fromTime and toTime of archive log range to be restored.
fromTime integerEnter epoch timestamp for archivelog range fromTime
toTime integerEnter epoch timestamp for archivelog range toTime
useStartLSNNum booleanset to true to supply startLSNNum
startLSNNum integerprovide start log sequence number for range
useEndLSNNum booleanset to true to supply endLSNNum
endLSNNum integerprovide end log sequence number for range
duplicate booleanSet to true for RMAN duplicate operation
duplicateTo booleanSet to true for duplicateTo
duplicateNoFileNamecheck booleanSet to true for cross machine restores
duplicateStandby booleanSet to true to create standby database
duplicateToName stringRMAN duplicate operation destination instance name
duplicateStandbySID stringDefault value:
dupduplicateStandbyDoRecover booleanDefault value:
falsepartialRestore booleanSet to true for database partial restores (PDB,Tablespace, Datafile)
stagingPath stringEnter staging path for Partial database restore job/ Table level restore job/ PDB Clone
cleanupAuxiliary booleanSet to true to cleanup auxiliary
sourcePaths string[]Source Paths for oracle table restore / PDB Clone
auxiliaryInstance booleanSet to true for user created auxiliary for table level restores
tableViewRestore booleanSet to true for table level restore
databaseName stringName of user-created auxiliary instance to clone subset of database for exporting tables
importToWhere stringPossible values: [
IMPORT_TO_SOURCE,IMPORT_TO_ANOTHER,DO_NOT_IMPORT]Select relevant option to import tables to source database/a different database/create dumps only
importDatabase stringEnter destination database name if IMPORT_TO_ANOTHER is selected
dropTable booleanSet to true to drop table if it exists at the destination during table restores
oracleTableRstOptions object
Oracle table level restore options
includeTriggers booleanDefault value:
trueincludeConstraints booleanDefault value:
trueincludeIndexes booleanDefault value:
trueincludeGrants booleanDefault value:
trueincludeStoredProcedures booleanDefault value:
trueimportDbClient object
This section is relevant only for table restores
clientId stringClientId of destination client to import tables
clientName stringClient name of destination client to import tables
displayName stringDisplay name of destination client to import tables
oracleObjectRenameInfoList object[]PDB Clone Options
filename stringSet to the staging path for pdb clone
commonOptions object
indexFreeRestore booleanSet to true for restore to disk
restoreToDisk booleanSet to true for Restore to disk
fileOption object
sourceItem string[]Files to be restored. Set it to the database SID for full database restore.
commonOpts object
notifyUserOnJobCompletion booleanDefault value:
true
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- taskId integer
- jobIds string[]
{
"taskId": 0,
"jobIds": [
"string"
]
}
{
"taskId": 1939,
"jobIds": [
"29408"
]
}
Bad Request
- application/json
- application/xml
- Schema
- Example
Schema
- string
Request body is empty or format is invalid
- Schema
- Example (from schema)
Schema
- object
<root/>
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "Access Denied",
"errorCode": 5
}