RMAN Incremental Backup
-----------------------------
DB should be backed up in ARCHIVELOG mode for Incremental Backup.
1.
ORACLE_HOME=/u01/app/oracle/product/11.0.1/db_1
export ORACLE_HOME
ORACLE_SID=orcl1
export ORACLE_SID
PATH=$PATH:$ORACLE_HOME/bin
2.
$ sqlplus / as sysdba
SQL> Select log_mode
From v$database;
O/P -> Make sure the DB is in ARCHIVELOG mode
SQL> exit
3.
rman target=/
4.
RMAN> Backup incremental level 0 database plus archivelog delete input;
5.
RMAN> exit
6.
SQL to check the size of the Backup
$ sqlplus / as sysdba
SQL> Select a.set_count, a.start_time, a.completion_time, sum(b.blocks)
From v$backup_set a, v$backup_datafile b
Where a.set_count = b.set_countand to_char(a.start_time, 'mm/dd/yyyy hh24:mi:ss') =
(Select to_char(max(start_time), 'mm/dd/yyyy hh24:mi:ss')
From v$backup_set
Where incremental_level = 0)
group by a.set_count, a.start_time, a.completion_time;
---------
To do a incremental level 1 backup
7.
rman target=/
RMAN> Backup incremental level 1 database plus archivelog delete input;
8.
RMAN> exit
Note: To check the size of the incremental level 1 Backup use SQL in step 6 except use incremental_level = 1 in the inner Where clause.
----------------------------------------------------------
- Suresh
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment