I want to make use of the RMAN utility, available with the oracle 8i. I have installed 2 databases(prod and catdb). The initial steps of connecting to RMAN, registering db etc are complete.
I wanted to create and resolve this scenerio
1) Create a table (A) on tablespace (TSA), populate it.
2) Take the rman tablespace backup(TSA).
3) Drop the table(A)
Now, I want to get back the table(A) from the rman backup.
I want to make use of the RMAN utility, available with the oracle 8i. I have installed 2 databases(prod and catdb). The initial steps of connecting to RMAN, registering db etc are complete.
I wanted to create and resolve this scenerio
1) Create a table (A) on tablespace (TSA), populate it.
2) Take the rman tablespace backup(TSA).
3) Drop the table(A)
Now, I want to get back the table(A) from the rman backup.
How can I get it back;
Steps will be very useful.
Badrinath
Rman does not support logical backups. If you wanted to create the scenario it would be best to do a export then drop the table and perform a import. If you were to do this with Rman you would essentially have to perform a tablespace recovery or database recovery using the restore database;
recover database while inside of RMAN. Make sure you have at least one good backup before you begin.
I just did one not long ago with Rman to recovery tablespace.
I accidentally dropped one tablespace and its datafile . I use Rman to do my backup and recovery. Be sure you have a good copy of full backup, and on archivelog mode.
To use Rman to recover tablespace:
RMAN> run {
sql 'alter tablesapce tablespacename offline immediate';
allocate channel ch1 type disk;
set new name for datafile '/.../...' to '/.../...';
restore tablespace tablespacename;
switch datafile all;
recover tablespace tablespacename;
sql 'alter tablespace tablespacename online';
}
If you have any problems in doing so, please email me @youngz99@hotmail.com. I am glad to help.
You apply the log files to the point just before the table was dropped. That would be an incomplete recovery, b'cos anu changes that had taken place after this point on other tables would be lost. The best is clone the db from the backup. Do an incomplete recovery on the backup to the point the table was dropped, on the clone db. Then export that table space and import it into the production db. You are set.
Bookmarks