Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RMAN Basic Backup and Restore

User_QOPB0Sep 13 2020 — edited Sep 14 2020

Hi,

I have 11g installed on my Windows 10 PC and I am starting to work with RMAN. I am having trouble getting a basic backup and restore to work correctly. Hopefully someone can help me out as I think it may be something obvious.

I have a table called BACKUPTEST which contains three integers (10, 20 and 30) which has been committed to the database XE. The database is in ARCHIVELOG mode at the moment. I have connected to RMAN and used the following commands to backup the database.

connect / as target;

     connected to target database: XE (DBID=2932141296)

     using target database control file instead of recovery catalog

shutdown immediate;

startup mount;

backup database;

All of these run successfully and I can see files have been created in the C:\ drive for the backup. I have then deleted all the entries from the BACKUPTEST table and committed those changes using the system account. I then use the following commands to restore the database.

connect / as target;

     connected to target database: XE (DBID=2932141296)

     using target database control file instead of recovery catalog

shutdown immediate;

startup mount;

restore database;

recover database;

alter database open resetlogs;

After this, I query the BACKUPTEST table but the backup has not restored the table content. It is still empty after my delete statement earlier. Am I missing anything obvious? Has the backup actually ran and I need to do something else as well? Any help greatly appreciated.

This post has been answered by L. Fernigrini on Sep 13 2020
Jump to Answer
Comments
Post Details
Added on Sep 13 2020
7 comments
538 views