[Installing Oracle DataBase Server 11.2.0.3 on Oracle Linux 6.3]: Final Backup (Hot Backup)


$ cd /u03/orabackups


$ vi rmanscript.rman


RUN {
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET;
BACKUP FULL DATABASE TAG "FULL_DATABASE" PLUS ARCHIVELOG TAG "FULL_DATABASE_ARCHIVELOGS";
}

Check the syntax of the created script file

$ rman CHECKSYNTAX @rmanscript.rman

Execute the backup script

$ rman target / @rmanscript.rman

View the list of backups:

RMAN> rman target /


RMAN> list backup of database summary;


List of Backups
===============
Key     TY LV S Device Type Completion Time     #Pieces #Copies Compressed Tag
------- -- -- - ----------- ------------------- ------- ------- ---------- ---
1       B  F  A DISK        10.06.2012 22:05:45 1       1       NO         TAG20120610T220429
6       B  F  A DISK        10.06.2012 22:12:46 1       1       NO         TAG20120610T221132
10      B  F  A DISK        10.06.2012 23:21:10 1       1       YES        FULL_DATABASE

The following command tells RMAN to mark all backups except the last one as obsolete.

RMAN> CONFIGURE RETENTION POLICY TO REDUNDANCY 1;

Now ask RMAN to delete obsolete backups (without confirmation).

RMAN> delete noprompt obsolete;


RMAN> list backup of database summary;


List of Backups
===============
Key     TY LV S Device Type Completion Time     #Pieces #Copies Compressed Tag
------- -- -- - ----------- ------------------- ------- ------- ---------- ---
10      B  F  A DISK        10.06.2012 23:21:10 1       1       YES        FULL_DATABASE


RMAN>  quit





I recommend going directly to the latest version of the document, which uses newer software versions

Link to the Oracle installation document.