Camp Rubrik: Oracle
  • Camp Rubrik: Oracle Databases
    • Lab environment
    • Welcome to Zaffre
      • Tools you will be leveraging
      • Data Protection Dashboard
    • Protect Oracle Database
      • Rubrik Backup Service Install
      • Add Host to RSC
      • Create SLA Domain
      • Assign SLA
      • Recovery Options
        • Live Mount to create Instant Copy of Oracle Database
        • Oracle Secondary Reporting Environment with Clone
        • Instant Recovery
    • Compliance and Reporting
    • Conclusion
Powered by GitBook
On this page
  • Shutdown database
  • Instant Recovery
  • Verify Instant Recovery
  1. Camp Rubrik: Oracle Databases
  2. Protect Oracle Database
  3. Recovery Options

Instant Recovery

PreviousOracle Secondary Reporting Environment with CloneNextCompliance and Reporting

Last updated 2 years ago

Let's discuss how Zaffre can take advantage of the Instant Recovery option, which takes the snapshot of the latest backup image with the latest transaction log and restores it to your production oracle database server. The database runs off the Rubrik storage. This makes the recovery operation instantaneous, and the services to your customers can be restored with minimum downtime.

To get started on the Instant Recover operation, first, you need to simulate database instances down by shutting down the database.

Shutdown database

Double-click the Putty shortcut on the Desktop. Select ora12c-prod.rubrik.lab as the host and click Open.

On the SSH Window, log in with the following credentials:

  • Username: oracle

  • Password: oracle

Launch SQLPLUS by entering:

# export ORACLE_SID=orcl
# sqlplus / as sysdba

On the SQL> Prompt, run the following SQL command:

SQL> @/home/oracle/move_datafiles.sql
SQL> shutdown immediate;
SQL> startup mount exclusive restrict
SQL> drop database;
SQL> exit

Head back to RSC. Click (...) ellipse, and select Refresh.

NOTE: It can take a couple of minutes for the database to completely shut down and be available for recovery.

Refresh the page after a couple of minutes. You should see Relic next to Snapshots.

Instant Recovery

Now you will initiate the instant recovery of your oracle production database. First, navigate to Inventory > All > Oracle Databases.

  • Navigate to ora12c-prod. From the side panel, select the Relic filter for Status. orcl db will now be available under the ora12c-prod host.

  • Select the most recent day with green checks in the calendar. Move the slider close to the last log time.

  • Click (...) ellipse and select Recover.

  • On the pop-up, select Instantly Recover and then click NEXT.

  • Click RECOVER.

NOTE: If you see the error message like in the image below, then wait for a minute before retrying instant recovery

Click EVENTS from the left middle panel. Verify on the Events page that the Clone operation has been completed.

NOTES:

  1. It takes about a minute for the Events page to show the instant recovery operation.

  2. It takes about five minutes for the instant recovery operation to finish.

Navigate to Live Mounts from the top menu. Select Oracle Database. Ensure that orcl is listed as a live mount.

Verify Instant Recovery

Navigate back to the SSH terminal for ora12c-prod.

Launch SQLPLUS by entering:

# export ORACLE_SID=orcl
# sqlplus / as sysdba

On the SQL> Prompt, run the following SQL command:

SQL> select name from v$datafile;

Recover the local database by running the move_datafiles.sql file.

SQL> @/home/oracle/move_datafiles_back.sql

You can now verify the location of the copied data is back to your storage.

SQL> select name from v$datafile;

Rubrik’s Instant Recovery feature extends beyond recovery use cases. The feature enables easy, accelerated secondary environments for running different queries without impacting production.

You now have all the recovery options in your armor to ensure your critical data is always available!

Congratulations on completing the migration of your Oracle database along with MS SQL database to RSC!

Putty
Access Oracle Databases
Instant Recovery
Caution message
Verify Live Mount
Data on Rubrik!
Move data
Data on Prod!