Creating a Database Deployment Using a Cloud Backup
You can create an Oracle Database Classic Cloud Service database deployment whose database is instantiated from a cloud backup of an Oracle Database Classic Cloud Service database or an on-premises Oracle database.
In brief, you create a Database Classic Cloud Service database deployment hosting a single-instance database and then you replace the newly created database using another database’s cloud backup. This technique is called “instantiate from backup” and the database from which the cloud backup was made is called the “source database”.
You can use a cloud backup from a source database at version 18, 12.2.0.1, 12.1.0.2 or 11.2.0.4 to replace a newly created cloud database of the same version. You can use a cloud backup from a version 12.1.0.2 on-premises source database to replace a newly created version 18 or 12.2.0.1 cloud database. You can also use a cloud backup from a version 12.2.0.1 on-premises source database to replace a newly created version 18 cloud database on the Oracle Database Cloud Service; this feature is not supported on Oracle Database Exadata Cloud Service. Thus, you can instantiate from backup and upgrade your database in one operation.
Requirements and Results
The source database must meet the following requirements:
-
The latest PSU (patch set update) must be applied to the source database.
-
If the database is at version 12.1.0.2 or later, it must be multitenant (CDB). Database Classic Cloud Service does not support non-CDB databases that are at version 12.1.0.2 or later.
-
The database from which the backup was made uses File System or ASM as its storage method for data files.
If the source database is an on-premises database, it must meet these additional requirements:
-
The on-premises database host must be a Linux X64 (OEL 6 or OEL 7) system.
-
The database backup must contain archivelogs. Otherwise, it is not possible to recover the database.
-
The database character sets of your on-premises database and the Oracle Database Classic Cloud Service database that you intend to replace must be compatible.
-
Non-Oracle software on the on-premises database host must meet the following minimum release requirements:
-
Java: Release 7 or higher. Java must be in the default path.
-
Python: Above Release 2.6 and below Release 3.0.
-
After completing the instantiate-from-backup tasks, you will have a Database Classic Cloud Service database deployment with the following characteristics:
-
A single-instance database with the SID you specified when creating the deployment, but containing the data from the backup. Additionally, the database ID will be different from the original database’s database ID.
-
Data files in
/u02/app/oracle/oradata/SID
. -
Redo logs in
/u04/app/oracle/redo
. -
Fast recovery area (FRA) at
/u03/app/oracle/fast_recovery_area
. -
Memory parameters set based on the Compute Shape (OCPUs and RAM) you specified when creating the deployment.
-
Oracle Net Listener configured with services for the database (and PDBs if the Oracle database is version 12c or later).
-
If the newly created database is at version 18 or 12.2.0.1, and the source database backup was created using Transparent Data Encryption (TDE), then all tablespaces in the newly created database will be encrypted using TDE, except
SYSAUX
,SYSTEM
, and any tablespace whose name contains the stringUNDO
.
Procedure
You perform an instantiate-from-backup operation by following these steps:
-
Ensure that you have a suitable backup of the source database.
-
If the source database is an Oracle Database Classic Cloud Service database, ensure that the database deployment has been backed up to cloud storage. For more information, see About Backing Up Database Deployments on Database Classic Cloud Service.
-
If the source database is an on-premises Oracle database, ensure that the database is suitable for instantiation in the cloud and then create a cloud backup. For instructions, see Creating a Cloud Backup of an On-Premises Database.
-
-
Create a Database Classic Cloud Service database deployment and replace the newly created database using the backup. Choose one of the following methods:
-
If the source database is smaller than the maximum storage you can allocate when creating a deployment, you can use the Create Instance wizard to perform an instantiate-from-backup operation as it creates a database deployment. For information on the maximum storage you can allocate when creating a deployment, see Database Storage. For instructions on using the wizard to perform an instantiate-from-backup operation, see Creating a Customized Database Deployment, specifically the step about completing the Initialize Data From Backup section on the wizard’s Instance Details page.
-
For source databases of any size, perform an instantiate-from-backup operation by following these steps:
-
Create a Database Classic Cloud Service database deployment hosting a single-instance database. Because you will be replacing the database using a cloud backup, some constraints apply to the choices you make when creating the database deployment:
-
Software Release. Choose the Oracle Database release corresponding to the source database.
-
Software Edition. Choose at the minimum a software edition that supports the options used by the source database.
-
Database Type. Choose Single Instance.
-
DB Name (SID) (on the Instance Details page). You can specify any SID you want, but if you want to use the same SID as the database from which the existing backup was made, you must make sure the SID you provide matches exactly, including the case of letters. For example, if the existing backup’s database SID is
Orcl
, you must useOrcl
, notorcl
orORCL
. -
Usable Database Storage (GB) (on the Instance Details page). Specify at the minimum the amount of storage needed to accommodate the source database. If the source database is bigger than you can specify when creating the database deployment, create the deployment at maximium size and then scale up the data and local backup storage as required by following the instructions in Scaling Up the Storage for a Database Deployment.
-
Enable Oracle GoldenGate and Include “Demos” PDB (both on the Instance Details page). Do not choose either of these options, as the database is going to be replaced.
-
Backup Destination (on the Instance Details page). Choose the option you want, even None. The instantiate-from-backup technique works even if the deployment is not being backed up.
-
Create Instance from Existing Backup (on the Instance Details page). Choose No. You will be replacing the database after the deployment is created.
-
-
If necessary, scale up the deployment’s storage to accommodate the source database.
For instructions, see Scaling a Database Deployment.
-
Replace the database on the deployment using a backup:
-
You can perform this step by using the Oracle Database Classic Cloud Service console. For instructions, see Replacing the Database by Using the Oracle Database Classic Cloud Service Console.
-
You can perform this step by using the
dbaasapi
utility on the deployment’s compute node to performibkup
actions to start and then monitor the replacement. For instructions, see Replacing the Database by Using ibkup Actions.
-
-
-
Note:
After performing an instantiate-from-backup operation, Oracle Application Express, DBaaS Monitor and ORDS (Oracle REST Data Services) may not be accessible. To restore accessibility, see Application Express, DBaaS Monitor and ORDS inaccessible after creating a database deployment using a cloud backup in Known Issues for Oracle Database Classic Cloud Service.
Creating a Cloud Backup of an On-Premises Database
Use the ibackup
utility to create a backup of an on-premises Oracle Database, which can then be used to replace an Oracle Database Classic Cloud Service database.
The ibackup
utility enables you to:
-
Perform a pre-check of the on-premises database to ensure that you can generate a backup that is suitable for replacing a cloud database.
-
Generate an Oracle Database backup, as well as additional files, that you can use to replace the database on a Database Classic Cloud Service database deployment as part of an instantiate-from-backup operation.
Prerequisites
Ensure that the on-premises database you intend to back up, as well as the Database Classic Cloud Service database you intend to replace, meet the requirements described in Requirements and Results.
Procedure
Perform these tasks:
-
Download a zip file containing the
ibackup
utility to the on-premises database host. Usewget
on the on-premises database host to download theOracleCloud_ibackup_Setup.zip
file from Oracle Cloud Infrastructure Object Storage Classic:$ wget https://storage.us2.oraclecloud.com/v1/dbcsswlibp-usoracle29538/ibackup/OracleCloud_ibackup_Setup.zip
-
On the on-premises database host:
-
Log in as the
oracle
user. -
Unzip the
ibackup.zip
orOracleCloud_ibackup_Setup.zip
file. Files are extracted into theibackup
directory. -
Switch to the
root
user and run the following command to set the ownership of the files in theibackup
directory:# chown -R oracle:oinstall ibackup
-
Return to being the
oracle
user and navigate to theibackup
directory:$ cd ibackup
-
Edit the
backup.cfg
file as follows:-
Set the encryption mode for the database backup. Set
TDE=y
if the database uses Transparent Data Encryption (TDE). SetTDE=n
to use RMAN key encryption. -
Set the value for
target_db
to12.2.0.1
,12.1.0.2
, or11.2.0.4
, depending on the version of the Database Classic Cloud Service database deployment where you intend to instantiate the backup. -
Set the value for
oss_user
toStorageadmin
. -
Set the value for
oss_url
tohttps://storage.oraclecorp.com/v1/Storage-dbcsdev/IBKUP
. -
If you enter a password value for
oss_passwd
, the password will be obfuscated the first time you run theibackup
tool. If you do not enter a password value, you will be prompted for the password when you run the tool. -
If
TDE=n
, set therman_key
value to the RMAN encryption key. Otherwise, leave this value blank.
-
-
-
Run a pre-check on the source on-premises database. The pre-check does not generate a backup file.
$ ./ibackup -d dbname
In the above command,
dbname
is the name of the source database. Examine the pre-check results. -
Generate a backup:
$ ./ibackup -d dbname -b -i
Optionally, you can use the
—f
option to ignore fix-up log failures when generating a backup:$ ./ibackup -d dbname -b -i -f
In addition to the Oracle Database backup, the following files are also generated in the
/var/opt/oracle/ibackup/ibkup
directory:-
tde_wallet.zip
— The TDE wallet directory. This file is generated only if TDE was enabled in the on-premises database. Copy this file to a secure and accessible location. This file is required to import the Oracle backup in an instantiate-from-backup operation. -
TDE_README.txt
— Instructions on how to unzip thetde_wallet.zip
file. This is important because the instantiate-from-backup operation expects a defined structure for the TDE wallet directory. -
Import.json
— Template file to import the backup usingibkup
actions with thedbaasapi
utility. -
oss_file.cfg
— Oracle Cloud Infrastructure Object Storage Classic information used to save the backup.
Use these files when replacing the database on a Database Classic Cloud Service database deployment as part of an instantiate-from-backup operation.
-
Replacing the Database by Using the Oracle Database Classic Cloud Service Console
You can use the Oracle Database Classic Cloud Service console to replace the database for a Database Classic Cloud Service database deployment using an instantiate-from-backup operation.
Before You Begin
If you wish to replace your database using a backup from another currently operational Database Classic Cloud Service database deployment in the same identity domain, then you must specify the source database deployment by selecting from a list of the available deployments.
Caution:
If the database you want to replace was created from a backup, then you must first use thedbaasapi ibkup restore
to make the cloud database ready to accept the data from the target backup. See Use ibkup restore.
If you wish to replace your database using any other backup, you are prompted for the following information:
-
The database ID of the backed-up database.
-
The decryption method for the backup, which is the password associated with the backup for backups that use password encryption, or a zip file containing the source database’s wallet directory and contents for backups that use Transparent Data Encryption (TDE).
-
The name of the Oracle Cloud Infrastructure Object Storage Classic container where the backup is stored.
-
The user name and password of an Oracle Cloud user who has read access to the container.
Procedure
-
Open the Instances page of the Oracle Database Classic Cloud Service console.
For detailed instructions, see Accessing the Oracle Database Classic Cloud Service Console.
-
Click the database deployment whose database you wish to replace.
The Oracle Database Classic Cloud Service Overview page is displayed.
-
From the action menu () next to the database deployment name, choose Replace Database using Backup.
The Replace Database using Backup window is displayed.
-
Specify attributes in the Replace Database using Backup window:
On-Premises Backup? — use this option to indicate the origin of the source database backup.
If you select this option you are indicating that the source database backup is not from another currently operational Database Classic Cloud Service database deployment in the same identify domain. In this case, the following fields and options are displayed:
-
Database ID — enter the database id of the database from which the existing backup was created. You can get this value by querying the backup source database as follows:
SQL> SELECT dbid FROM v$database;
-
Decryption Method — provide the information necessary to decrypt the existing backup:
-
For a backup that uses Transparent Database Encryption (TDE), select Upload Wallet File then click Browse and specify a zip file containing the source database’s TDE wallet directory, and the contents of that directory.
Note:
If the source database is from another Database Classic Cloud Service database deployment, its TDE wallet directory is/u01/app/oracle/admin/dbname/tde_wallet
. -
For a backup that uses password encryption, select Paste RMAN Key Value and paste the password (key value) used to encrypt the backup.
Note:
For database deployments using Oracle Database 12c Release 2 (12.2), or later, only backups using TDE are supported. -
-
Cloud Storage Container — enter the name of the Oracle Cloud Infrastructure Object Storage Classic container where the existing backup is stored; use this format:
instance-id_domain/container
where
instance
is the name of the Oracle Cloud Infrastructure Object Storage Classic instance,id_domain
is the id of the identity domain, andcontainer
is the name of the container. -
Username — enter the user name of an Oracle Cloud user who has read access to the container specified in Cloud Storage Container.
-
Password — enter the password of the user specified in Username.
-
Administration Password and Confirm Password — enter and then re-enter a password for the Oracle Database SYS and SYSTEM users in the newly replaced database.
If you deselect On-Premises Backup? you are indicating that the source database backup is from another currently operational Database Classic Cloud Service database deployment in the same identity domain. In this case, the following fields are displayed:
-
Source Instance Name — specify the database deployment whose database backup you want to use.
-
Backup Tag — a list of backups available for the specified database deployment. The latest backup is selected by default, but you can choose an earlier backup.
-
Administration Password and Confirm Password — enter and then re-enter a password for the Oracle Database SYS and SYSTEM users in the newly replaced database.
-
-
Click Replace Database and confirm that you want to replace the database when prompted.
The database deployment is put into Maintenance status and the operation begins. The process is fully automated and takes some time to complete. You should not access or manipulate the database deployment until the process is completed.
Replacing the Database by Using ibkup Actions
You can perform an instantiate-from-backup operation to replace the database on a Database Classic Cloud Service database deployment by using ibkup
actions with the dbaasapi
utility.
The dbaasapi
utility operates by reading a json file containing instructions and other information and writing its results to a json file specified in the input file. In essence, it is a command-line utility that operates like a REST API endpoint, accepting a json "request body" and producing a json "response body". The dbaasapi
utility checks that the operation being requested does not conflict with any operation already in progress and then runs the operation asynchronously: that is, it starts the requested operation and then returns terminal control to you.
Caution:
If the database you want to replace was created using ibkup, then you must first useibkup restore
to make the cloud database ready to accept the data from the new database. See .
Here are the tasks you perform to replace the database by using ibkup
actions:
-
Copy the TDE wallet from the source database to the Database Classic Cloud Service deployment, if necessary.
-
Create
dbaasapi
input files foribkup begin
andibkup status
actions. -
Run the
ibkup status
action to monitor progress of theibkup
operation. -
Upon completion of the
ibkup
operation, confirm that the source database now resides on the Database Classic Cloud Service deployment.
Copy the Source Database TDE Wallet
If the cloud backup you are using was created using Transparent Data Encryption (TDE) or dual-mode encryption, you need to copy the TDE wallet from the source database to the database deployment.
Note:
If the source database is from another Database Classic Cloud Service database deployment, its backup was created using Transparent Data Encryption (TDE) because all cloud backups from Database Classic Cloud Service use TDE as the backup encryption mode.
Here are high-level instructions:
-
Zip (or tar) up the source database's
tde_wallet
directory. (If the source database is from another Database Classic Cloud Service database deployment, itstde_wallet
directory is/u01/app/oracle/admin/dbname/tde_wallet
.) -
On the database deployment you created, make a directory where you'll store the various files you'll create and use in the coming steps. For example:
# mkdir –p /home/oracle/ibkup
-
Use a secure copy utility like scp or WinSCP to copy the zip file to this directory.
-
Unzip (or untar) the file into the
tde_wallet
subdirectory.
Create dbaasapi
Input Files
-
Use a secure shell utility like ssh or PuTTY to connect as the
opc
user to the compute node that is associated with your target database deployment. For instructions, see Connecting to a Compute Node Through Secure Shell (SSH). -
The
dbaasapi
utility must be run as theroot
user. Start a root-user shell:$ sudo -s #
-
Navigate to the directory where you previously stored the source database TDE wallet.
# cd /home/oracle/ibkup
If you did not copy the source database TDE wallet, create a directory to store your request and response files and then navigate to it.
-
Create a
begin-request.json
file to pass todbaasapi
to perform theibkup begin
action.Here is an example that uses a password-encrypted backup:
# cat begin-request.json { "object": "db", "action": "begin", "operation": "ibkup", "params": { "dbname": "crmdb", "dbid": "1428538966", "oss_url": "https://mystore.storage.oraclecloud.com/v1/Storage-mystore/IBKUP", "oss_user": "storageadmin", "oss_passwd": "pa55word", "decrypt_key": "backup", "passwd": "Welcome-1", "dbsize": "30GB" }, "outputfile": "/home/oracle/ibkup/begin-response.json", "FLAGS": "" }
The json object for the
ibkup begin
action supports the following parameters. All parameters are required except those identified as optional.Parameter Description object
The value
"db"
.action
The value
"begin"
.operation
The value
"ibkup"
.params
An object containing parameters that provide details for the
ibkup begin
action. This object has the following parameters:-
dbname
: The name of the target database that you are replacing. You can get this value by querying the target database:SQL> SELECT name FROM v$database;
-
dbid
: The database id of the source database. You can get this value by querying the source database:SQL> SELECT dbid FROM v$database;
-
oss_url
: The URL of the container where the source database's backup is stored. -
oss_user
: The user name of an Oracle Cloud user who has read privileges for the container where the source database's backup is stored. -
oss_passwd
: The password of theoss_user
user. -
rman_handle
: (Optional) The RMAN handle of a targeted backup that contains controlfile and spfile backups. Theibkup begin
action will use the controlfile and spfile in this backup.Use the
rman_tag
parameter to specify the RMAN tag of a backup supported by this controlfile and spfile. If you do not specify an RMAN tag, the latest backup supported by this controlfile and spfile will be used.Oracle recommends that you provide both a handle and a tag to use a specific backup or provide neither a handle nor a tag to use the latest backup.
You can view RMAN handles and tags by using the RMAN
LIST BACKUP
command. -
rman_tag
: (Optional) The RMAN tag of a targeted full backup. Theibkup begin
action will use this backup.Use the
rman_handle
parameter to specify the RMAN handle of a backup containing controlfile and spfile backups that support this RMAN tag. If you do not specify an RMAN handle, the latest controlfile and spfile will be used. If they do not support the specified RMAN tag, a “datafile not found” error will occur.Oracle recommends that you provide both a handle and a tag to use a specific backup or provide neither a handle nor a tag to use the latest backup.
You can view RMAN handles and tags by using the RMAN
LIST BACKUP
command. -
decrypt_key
: (Optional) The key (password) used to encrypt the backup.Provide this parameter if you created the backup using password encryption or dual-mode encryption.
Note: you cannot use this option when replacing the database on a database deployment using Oracle Database 12c Release 2 (12.2) or later, because only backups using TDE are supported for such deployments.
-
decrypt_wallet
: (Optional) The fully qualified path of the wallet directory you copied from the source database to the DBCS deployment you created; for example:/home/oracle/ibkup/tde_wallet
.Provide this parameter if you created the backup using Transparent Data Encryption (TDE) or dual-mode encryption.
-
passwd
: The administrator (SYS and SYSTEM) password to use for the target database after the replacement operation concludes. -
dbsize
: The size of the source database.
outputfile
The fully qualified name of the output file for
dbaasapi
to use; for example:"/home/oracle/ibkup/begin-response.json"
.FLAGS
The value
""
(an empty string). -
-
Create a
status-request.json
file to pass todbaasapi
to perform theibkup status
action. Here is an example:# vim status-request.json { "object": "db", "action": "status", "operation": "ibkup", "id": "TBD", "params": { "dbname": "crmdb" }, "outputfile": "/home/oracle/ibkup/status-response.json", "FLAGS": "" }
In this example, the value of the
id
parameter is"TBD"
because theibkup begin
action whose status this action will check has not been run yet.The json object for the
ibkup status
action supports the following parameters. All parameters are required.Parameter Description object
The value
"db"
.action
The value
"status"
.operation
The value
"ibkup"
.id
The ID number of the action you want status for.
params
An object containing parameters that provide details for the
ibkup status
action. This object has the following parameters:-
dbname
: The name of the database on the target database that is being replaced.
outputfile
The fully qualified name of the output file for
dbaasapi
to use; for example:"/home/oracle/ibkup/status-response.json"
.FLAGS
The value
""
(an empty string). -
Run the ibkup begin
Action
-
Use
dbaasapi
to run theibkup begin
action:# /var/opt/oracle/dbaasapi/dbaasapi -i begin-request.json
Note:
The
begin
action deletes the input json file because it contains sensitive password information. If you are testing and want to save the file for debugging purposes, make a copy of it before you run theibkup begin
action; for example:# cp begin-request.json begin-request.json.keep
-
View the output file to confirm that the action has started and note the
id
of the action; for example:# cat /home/oracle/ibkup/begin-response.json { "msg" : "", "object" : "db", "status" : "Starting", "errmsg" : "", "outputfile" : "", "action" : "begin", "id" : "19", "operation" : "ibkup", "logfile" : "/var/opt/oracle/log/crmdb/dbaasapi/db/ibkup/19.log" }
The key parameters in this response are as follows:
Parameter Description status
The status of the operation; one of:
"Error"
,"Starting"
,"InProgress"
or"Success"
.action
The value
"begin"
, which is theibkup
action you requested.id
The ID number assigned to this action. Use this number in subsequent
ibkup status
actions to check the status of the overallibkup
operation.operation
The value
"ibkup"
, which is the operation you requested.logfile
The log file for the ibkup operation.
You can poll this log file to monitor progress of the operation. However, you should run the
ibkup status
action to monitor progress because this provides additional status information along with a definitive indication of when the operation is finished.
Run the ibkup status
Action to Monitor Progress
-
Update the
status-request.json
input file withid
value of theibkup
operation that you have started. Edit thestatus-request.json
file, replacing theid
parameter value of"TBD"
with the ID number reported in thebegin-response.json
file. -
Use
dbaasapi
to run theibkup status
action and view the response; for example:# /var/opt/oracle/dbaasapi/dbaasapi -i status-request.json # cat status-response.json { "msg" : " -> 15 03 * * 6 oracle /var/opt/oracle/cleandb/cleandblogs.pl\\n\\n#### Completed OCDE Successfully ####", "object" : "db", "status" : "Success", "errmsg" : "", "outputfile" : "", "action" : "begin", "id" : "19", "operation" : "ibkup", "logfile" : "/var/opt/oracle/log/crmdb/dbaasapi/db/ibkup/19.log" }
-
Rerun the
ibkup status
action regularly until the response indicates that the operation is finished.
Confirm Successful Completion
-
Connect as the
oracle
user to the compute node that is associated with your target database deployment.See Connecting to a Compute Node Through Secure Shell (SSH).
-
Connect as SYSDBA to the database:
$ sqlplus / as sysdba
-
Check the database status:
SQL> select status from v$instance; STATUS ------------ OPEN
-
Check the name and id of the database; for example:
SQL> select name, dbid from v$database; NAME DBID --------- ---------- CRMDB 4023093732
-
If the Oracle Database version is 12c or later, view information about its PDBs; for example:
SQL> select name,open_mode,restricted from v$pdbs; NAME OPEN_MODE RES ---------------------- ---------- --- PDB$SEED READ ONLY NO PDBDBNOASM READ WRITE NO
-
Exit SQL*Plus:
SQL> exit $
-
Check that services provided by Oracle Net Listener include those from the source database; for example:
$ lsnrctl status Services Summary... Service "crmdb.localdomain" has 1 instance(s). Instance "crmdb", status READY, has 1 handler(s) for this service... Service "dbnoasm.localdomain" has 1 instance(s). Instance "crmdb", status READY, has 1 handler(s) for this service... Service "dbnoasm.localdomainXDB" has 1 instance(s). Instance "crmdb", status READY, has 1 handler(s) for this service... Service "pdbdbnoasm.localdomain" has 1 instance(s). Instance "crmdb", status READY, has 1 handler(s) for this service... The command completed successfully
-
Disconnect from the compute node:
$ exit
Use ibkup restore
The restore
action takes an input file of the same format as the begin
action, except that the value of the action
parameter must be "restore"
.
If a begin
operation fails, you can use the restore
action to reset the database deployment's environment so that you can attempt the begin
operation again, after determining the cause of the failure and correcting the problem.
If you successfully used ibkup to create a cloud database, but now want to replace the database from a different backup, you must use the restore
action before using the begin
action.
After you use the restore
action, you need to reboot the database deployment's compute node to ensure that the environment is completely reset. For instructions, see Rebooting a Compute Node.
The restore
action does as follows:
-
Validates the format and completeness of the input file.
-
Creates the output file, which includes an ID number for use in subsequent
status
actions. -
Releases terminal control.
-
Terminates any
begin
action that is in progress. -
Kills all processes related to the
begin
action. If it cannot kill one or more processes, it exits with an error status. -
Restores the database deployment environment to its state before the first
begin
action.
restore
action, which is used before retrying a failed begin
action or before replacing an existing database created with ibkup using a different backup.
-
Create a JSON file for the
restore
action as shown below:{ "object": "db", "action": "restore", "operation": "ibkup", "params": { "dbname": "<target_dbname>" }, "outputfile": "<response_file>", "FLAGS": "" }
You can also add a
status
action to monitor therestore
process. - Save the file as
restore.json
. - Run the ibkup action:
dbaasapi -i restore.json
- After the restore completes, you must reboot the VMs before attempting the
begin
action.
More About ibkup
Actions
The preceding instantiate-from-backup tasks showed the use of two ibkup
actions; begin
and status
. Here is more information about what these two actions do, along with information about two other ibkup
actions; prereqs
and restore
.
-
The
begin
action:-
Validates the format and completeness of the input file.
-
Creates the output file, which includes an ID number for use in subsequent
status
actions. -
Releases terminal control.
-
Performs the same value-validation checks that the
prereqs
action performs. -
Takes a backup of the current database deployment environment, should the need arise to restore the environment after a failed
ibkup
operation. -
Replaces the current database using the backup of the source database.
-
-
The
status
action:-
Validates the format and completeness of the input file.
-
Retrieves the current status of operation whose ID number was provided in the input file.
-
Creates the output file, which contains the retrieved status information.
-
-
The
prereqs
action takes an input file of the same format as thebegin
andrestore
actions, except that the value of theaction
parameter must be"prereqs"
.You can use the
prereqs
action to test whether the input file you intend to use for either thebegin
action or therestore
action is valid and that the backup specified in the file is available.The
prereqs
action does as follows:-
Validates the format and completeness of the input file.
-
Creates the output file, which includes an ID number for use in subsequent
status
actions. -
Releases terminal control.
-
Checks that the values provided in the input file would be valid if used in the input file for a
begin
orrestore
action. It confirms access to the backup, including use of the decryption key and wallet as necessary, and that the backup's database ID matches the provideddbid
.
-