0% found this document useful (0 votes)
23 views

Differential and Cumulative

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Differential and Cumulative

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

===========================================================================

RMAN STANDALONE COMMANDS


===========================================================================

Backup Command
1)If u want to take a backup of a datafile:
>>>>backup datafile 5;

2)If u want to take backups of few datafile:


>>>>backup datafile 5,6,7;

3)If u want to take backup of a tablespace:


>>>>backup tablespace users;

4)If u want to take the backup of database:


>>>>backup database;

===========================================================================

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.

2)report need backup;


--->gives list of all the Datafiles&Tablespaces whose files have not been
backedup.

3)report need backup redundancy 2;


--->Backup needed for those files which does not have 2 or more backups.

4)report need backup recovery window of 3 days;


---> Report all those files which does not have 3 days older backup.

===========================================================================

List Command:
1)list backup;
-->Show you all existing backups of database.

2)list backup of tablespace users;

3)list backup of datafile 4;

4)list copy of datafile 4;

5)list backup of database;


--> Show you all existing backups of tablespace users or database or
datafile.

6)list archivelog all;

7)list backup of archivelog all;


-->Show you all existing archivelog files present in the database and know
the location,sequence,time and name of all archivelog files.
Delete Command:

1) If u want to delete a particular archivelog file, then:


>>>delete archivelog sequence 11;

2)If u want to delete few archivelog files until a sequence number:


>>>delete archivelog until sequence 5;

3)If u want to delete the backup of archivelog files, then:


>>>delete backup of archivelog all;

4) If u want to delete all the backup of a datafile, then:


>>>delete backup of datafile 5;

5)If u want to delete a backup with backup set number:


>>>delete backupset 1;

===========================================================================

EXPIRED BACKUP.

1) If u want to know, Which are expired archivelog files, then:


>>>list expired archivelog all;

2) If u want to know, which are expired backups of datafiles, then:


>>>list expired backup;

3)If u want to delete expired backups of datafile:


>>>delete expired backup;

4) If u want to delete expired backup of archivelog files, then:


>>>delete expired archivelog all;

===========================================================================
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 0 backup.

1)To take a incremental level 0 backup of ur database


Rman>backup incremental level 0 database;

2)To take a incremental level 0 backup of tablespace users


Rman>backup incremental level 0 tablespace users;

3)To take a incremental level 0 backup of datafile 4


Rman>backup incremental level 0 datafile 4;

=================================================================
All below command perform incremental level 1 backup.

4)To take incremental level 1 backup of database


Rman>backup incremental level 1 database;

5)To take incremental level 1 backup of tablespace users


Rman>backup incremental level 1 tablespace users;

6) To take incremental level 1 backup of datafile 1


Rman>backup incremental level 1 datafile 4;

============================================================
All below command perform level 1 cumulative incremental backup.

7)To take incremental level 1 cumulative backup of database:


Rman>backup incremental level 1 cumulative database;

8) )To take incremental level 1 cumulative backup of tablespace users:


Rman>backup incremental level 1 cumulative tablespace users;

9)To take incremental level 1 cumulative backup of datafile 4


Rman>backup incremental level 1 cumulative datafile 4;

============================================================

You might also like