patrick118
Technical User
Backup database
At the moment we are using oracle 8i and we are going to move to 10g.
In oracle 8i we used the export utility to make backups and to be sure we made a cold backup of the entire database to disk and backup up that again to tape. We don’t use archivelogs. Works ok for us and we can use this same system under Oracle 10g.
But if you are using oracle 10g you have to make advantage of all the things it offers and the biggest one is RMAN. Only I don’t completely see how to make sure I have it all in a disaster recovery and would like for you to give me some pointers.
My Oracle 10g backup strategy.
Make sure the database runs in archivelog.
I made sure I always backup the controlfile and I want the backupsets to be compressed.
Every day I run the follwing RMAN script
Run
{
backup database;
backup (archivelog all);
}
I then backup the entire flash recovery area to tape.
When I get an error or something I just restore/recover it from a backupset. No problem
If the server completely burns out I would do the following.
I get a new server and install the same oracle version. I place back the flash recovery area from tape. Then what? My repository was in the controlfile.
So I do the following
RMAN> connect target /
RMAN> set dbid number from the burned out database;
RMAN> restore confrolfile from autobackup;
RMAN> alter database mount;
RMAN> restore database;
RMAN> recover database;
RMAN> alter database open resetlogs;
Is this an ok idea?
At the moment we are using oracle 8i and we are going to move to 10g.
In oracle 8i we used the export utility to make backups and to be sure we made a cold backup of the entire database to disk and backup up that again to tape. We don’t use archivelogs. Works ok for us and we can use this same system under Oracle 10g.
But if you are using oracle 10g you have to make advantage of all the things it offers and the biggest one is RMAN. Only I don’t completely see how to make sure I have it all in a disaster recovery and would like for you to give me some pointers.
My Oracle 10g backup strategy.
Make sure the database runs in archivelog.
I made sure I always backup the controlfile and I want the backupsets to be compressed.
Every day I run the follwing RMAN script
Run
{
backup database;
backup (archivelog all);
}
I then backup the entire flash recovery area to tape.
When I get an error or something I just restore/recover it from a backupset. No problem
If the server completely burns out I would do the following.
I get a new server and install the same oracle version. I place back the flash recovery area from tape. Then what? My repository was in the controlfile.
So I do the following
RMAN> connect target /
RMAN> set dbid number from the burned out database;
RMAN> restore confrolfile from autobackup;
RMAN> alter database mount;
RMAN> restore database;
RMAN> recover database;
RMAN> alter database open resetlogs;
Is this an ok idea?