Problems with Backing Up and Restoring
The following solutions apply to problems with backup and restore operations on Oracle Database Classic Cloud Service.
There is not enough space for my backup
The backup storage area does not have enough space for the backup operation to create the archive.
Do one of the following:
-
Delete any unwanted backups.
-
Archive one or more backups to another location.
I receive a message stating that there was an unexpected error during the duplicate command (ORA messages)
There may have been a restart of the database instance while the duplicate operation was running. A datafile may be marked ONLINE or being recovered.
Perform the following steps:
-
Review the
/var/opt/oracle/log/orec/orec.logfile, checking for the following error messages:ORA-01121: cannot rename database file string - file is in use or recoveryORA-01110: data file stringIf you see those messages, complete the remaining steps in this section. If not, see I receive a message stating that there was an unexpected error during the duplicate command (RMAN messages).
-
Connect to the node hosting the standby database as the
opcuser. -
Start a root-user command shell and then switch to the
oracleuser:$ sudo -s # su - oracle $
-
Delete the data file name specified in
stringin the error message:$ $ rm -rf filename -
Return to being the root user:
$ exit # -
Run the
duplicateoption oforec# dbaascli orec --args -duplicate -dbrole standby -
Exit the root-user command shell and disconnect from the compute node:
# exit $ exit
I receive a message stating that there was an unexpected error during the duplicate command (RMAN messages)
The orec tool may have had a problem identifying the target instance.
Perform the following steps:
-
Review the
orec.logfile, checking for the following error messages:RMAN-05501: aborting duplication of target databaseRMAN-05502: the target database must be mounted when issuing a DUPLICATEIf you see those messages, complete the remaining steps in this section. If not, see I receive a message stating that there was an unexpected error during the duplicate command (ORA messages).
-
Connect to the node hosting the standby database as the
opcuser. -
Start a root-user command shell and then switch to the
oracleuser:$ sudo -s # su - oracle $
-
Invoke SQL*Plus, connecting as the
SYSDBAuser:$ sqlplus / as sysdba -
Shut down the database instance using the
ABORToption:SQL> shutdown abort; -
Exit from SQL*Plus.
SQL> exit -
Return to being the root user:
$ exit # -
Run the
duplicateoption oforec:# dbaascli orec --args -duplicate -dbrole standby -
Exit the root-user command shell and disconnect from the compute node:
# exit $ exit
A backup fails with an ORA-19914 and ORA-28361
The ORA-19914: unable to encrypt backup and ORA-28361: master key not yet set errors indicate that the master encryption keys of a new PDB are not yet set. If you plugged in an encrypted PDB from another CDB and did not import the keys, see Exporting and Importing a Master Encryption Key for a PDB. If you created a new PDB and did not create and activate the master encryption key, see Creating and Activating a Master Encryption Key for a PDB.