Differential and Cumulative
Differential and Cumulative
Backup Command
1)If u want to take a backup of a datafile:
>>>>backup datafile 5;
===========================================================================
Report Command:
1)report schema;
----> gives list of all existing tablespaces,sizes and datafiles of the
tablespace in short this command give u the structure of the database and
this command can be used incase where we r only allowed to use rman and
have no access database.
===========================================================================
List Command:
1)list backup;
-->Show you all existing backups of database.
===========================================================================
EXPIRED BACKUP.
===========================================================================
RMAN JOB COMMANDS
===========================================================================
run
{
allocate channel c1 type disk
format '/u01/app/db_%d_%p_%s.bk'
backupdatafile '/u01/app/oracle/oradata/test/system01.dbf';
release channel c1;
}
-------------------------------------------------------------------------
run
{
allocate channel c1 type disk
format '/u01/app/db_%d_%p_%s.bk'
backupdatafile 1;
release channel c1;
}
--------------------------------------------------------------------------
run
{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
backup
format '/u01/app/db_%d_%p_%s.bk'
(datafile 1,2 channel c1 )
(datafile 3,4 channel c2 )
(datafile 5 channel c3 );
release channel c1;
release channel c2;
release channel c3;
}
%d-dbname,%s-set no,%p-piece no
===========================================================================
DIFFERENTIAL AND CUMULATIVE BACKUPS
===========================================================================
=================================================================
All below command perform incremental level 1 backup.
============================================================
All below command perform level 1 cumulative incremental backup.
============================================================