Oracle 19c and 18c Enterprise
For more information on backing up and restoring Oracle enterprise databases, see the information found in the document Oracle Database 2-Day DBA and the section titled Performing Backup and Recovery. See also:
- Oracle 18c - www.docs.oracle.com/en/database/oracle/oracle-database/18/bradv/introduction-backup-recovery.html
- Oracle 19c - www.docs.oracle.com/en/database/oracle/oracle-database/19/bradv/introduction-backup-recovery.html
Assumption
The procedures in this section were developed based upon the assumption that the default Flash Recovery Area settings were chosen in the Database Configuration Assistant when the VoiceConsole database was created.
How to Create a Backup of the VoiceConsole Database for VoiceConsole On Prem Deployment
Log into the Database
- Open the Oracle Enterprise Manager Database Control for the VoiceConsole database.
- Log in with the SYS username and password.
- Select Connect As SYSDBA from the dropdown list.
- Click the Login button.
Configure ARCHIVELOG Mode for the VoiceConsole Database
- From the Database Instance home page, select Maintenance > Recovery Settings.
- In the Media Recovery section, check the box for ARCHIVELOG Mode if it is not already checked.
- Click
Apply to save your changes. You are now taken to the Confirmation screen. It informs you that you need to restart the database for the change
to take effect. Restarting the database makes the VoiceConsole On Prem deployment unusable for a short period of time. Perform this step only when no one is using VoiceConsole.
- Click Yes on the Confirmation screen. A page asking you to input Host and Target Database Credentials appears.
- Enter the OS username and password you used to install Oracle for the Host Credentials.
- Leave the Database Credentials user name and password blank.
- Select Start > Settings > Control Panel > Administrative Tools > Local Security Policy.
- In Local Policies, select User Rights Assignment.
- Add the OS user to Log on as a Batch Job. Now you should be able to get past the Host and Target Database Credentials page.
- In Restart Database: Confirmation page, click the Yes button. You are taken to the Restart Database: Activity Information page, informing you that the database restart may take some time.
- Wait about five minutes, and then click the Refresh button. This should take you back to the Database Login page.
- Log back in using the SYS username and password, and then choose Connect As SYSDBA from the drop-down list. After you restart the database, the VoiceConsole system can be used again.
If you receive an error like RemoteOperationException: ERROR: wrong password for user, try entering both the Host Credentials and Database Credentials. If this doesn't work, set up the OS user to be able to log on as a batch job in the server's Local Security Policy. To do this, follow these steps:
Configure the Backup Policy
- From the Database Instance home page, go to Maintenance > Backup Settings > Policy.
- Under Backup Policy, check the box beside Automatically backup the control file and server parameter file (SPFILE) with every backup and database structural change.
- Scroll to the bottom of the page, and under the Host Credentials section, enter the OS username and password.
- Click OK.
Schedule a Database Backup
- From the Database Instance home page, go to Maintenance > Schedule Backup.
- At the bottom of the Schedule Backup page, enter your OS Host Credentials.
- Under the section Oracle-Suggested Backup, click Schedule Oracle-Suggested Backup.
- Select Disk as the destination media for the backup.
- Click Next. You are now be taken to the Setup page, which explains how the Oracle-suggested backup works.
- There are no settings on this page; so click Next.
- You are now be taken to the Schedule page where you need to specify the start date, time zone, and daily backup time.
- We recommend that you schedule the daily backup for a time when database activity is low.
- Click Next. You are taken to the Review page. Here you can see some details of the backup schedule.
- Click Submit Job to complete the process.
- In the Status page, you can click View Job or click OK to return to the database home page.
Restore a Database Backup
- From the Database Instance home page, select Maintenance > Perform Recovery.
- Recover to the current time or a previous point-in-time.
- Scroll to the bottom of the page. In the Host Credentials section, enter the OS username and password.
- Click Perform Whole Database Recovery. A Confirmation page now appears, informing you that this operation temporarily shuts down the database.
- Stop the VoiceConsole service.
- On the Confirmation page, click Yes. You are taken to a Recovery Wizard page, informing you that it takes a few minutes to shut down and restart the database.
- Wait a few minutes, then click the Refresh button on this page.
- On the Database Instance page, click Perform Recovery.
- Enter your OS Host Credentials.
- Click Continue. Another Database Login window appears.
- Enter the SYS username and password.
- Select SYSDBA from the Connect As login. You are taken back to the Perform Recovery page with an information message at the top saying that the current status is MOUNTED.
- Click the Recover to the current time or a previous point-in-time radio button.
- Scroll to the bottom of the page, and under the Host Credentials section, enter the OS username and password.
- Click Perform Whole Database Recovery.
- On the Perform Whole Database Recovery: Point-in-time page, specify whether to recover all transactions to your database up to the present time (complete recovery), or only transactions up through some point in time (point-in-time recovery).
- Select Recover to the current time.
- Click the Next button.
- The next page asks if you want to restore the files to a different location. Select No.
- Click the Next button. The Review page displays the options that you chose.
- Click the Submit button. A window indicating progress appears.
- When the process is complete, the Perform Recovery: Result page appears with a message that the operation succeeded.
- Scroll to the bottom of the page, and click the Open Database button.
- Click OK on the Result page.
- Start the VoiceConsole On Prem deployment service.