Recover a Table from an RMAN Backup in an Oracle 12c

By | In Oracle | February 02nd, 2017

New in Oracle 12c is the Multitenant Architecture, as well as the ability to restore one table from an RMAN backup.  This blog post explains how to do a restore of one table in a pluggable database.

Setup the test:

1.) Create a user – tables cannot be restored in the SYS schema

2.) Create a table for that user

3.) Take a backup – a backup of the table has to exist; it can’t just be in archive logs.

4.) Drop the table

5.) Restore the table

6.) Check that the table has been restored


1.  Create a User

This user is being created in one pluggable database.

Tables cannot be restored in the SYS schema.

2. Create a Table

3. Take a Backup

You can’t restore a table that hasn’t been backed up, even if it exists in current archive logs.

4. Drop the table

Make sure you are in the right environment, drop the table, take a note of the time.

5. Restore the Table

This script will do a point in time, but you can also restore to an SCN, or to a sequence number.

6. Check that the table has been restored

Did that work for you? Please leave any comments in the section below.

Datavail Script: Terms & Conditions

By using this software script (“Script”), you are agreeing to the following terms and condition, as a legally enforceable contract, with Datavail Corporation (“Datavail”). If you do not agree with these terms, do not download or otherwise use the Script. You (which includes any entity whom you represent or for whom you use the Script) and Datavail agree as follows:

1. CONSIDERATION. As you are aware, you did not pay a fee to Datavail for the license to the Script. Consequently, your consideration for use of the Script is your agreement to these terms, including the various waivers, releases and limitations of your rights and Datavail’s liabilities, as setforth herein.

2. LICENSE. Subject to the terms herein, the Script is provided to you as a non-exclusive, revocable license to use internally and not to transfer, sub-license, copy, or create derivative works from the Script, not to use the Script in a service bureau and not to disclose the Script to any third parties. No title or other ownership of the Script (or intellectual property rights therein) is assigned to you.

3. USE AT YOUR OWN RISK; DISCLAIMER OF WARRANTIES. You agree that your use of the Script and any impacts on your software, databases, systems, networks or other property or services are solely and exclusively at your own risk. Datavail does not make any warranties, and hereby expressly disclaims any and all warranties, implied or express, including without limitation, the following: (1) performance of or results from the Script, (2) compatibility with any other software or hardware, (3) non-infringement or violation of third party’s intellectual property or other property rights, (4) fitness for a particular purpose, or (5) merchantability.

4. LIMITATION ON LIABILITY; RELEASE. DATAVAIL SHALL HAVE NO, AND YOU WAIVE ANY, LIABILITY OR DAMAGES UNDER THIS AGREEMENT. You hereby release Datavail from any claims, causes of action, losses, damages, costs and expenses resulting from your downloading or other use of the Script.

5. AGREEMENT. These terms and conditions constitute your complete and exclusive legal agreement between you and Datavail.

Contact Us
Megan Elphingstone
Senior Oracle Database Administrator
Megan has been working with Oracle databases for over 15 years, including 10 years as an Oracle Database Administrator. Megan has supported over 200 production databases - performing upgrades, infrastructure moves to the cloud, tuning, performance testing, implementing high availability solutions, including moves to ASM, Data Guard, RAC, and Golden Gate. Megan’s favorite part of being a DBA is helping customers and users solve problems and implementing solutions that are automated, stable, and reliable. When she isn’t working, Megan is biking or snowboarding with her family.

Leave a Reply

Your email address will not be published.
Required fields are marked (*).