Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Rman Reporting Opertions - LIST & REPORT
1. ======================================
RMAN Reporting Operations
List Command
======================================
LIST: List will display info about backups and datafile copies listed in repository.
1. By Backup
Command: List backup of database by backup;
List of backup sets and data files in backup sets.
2. By File
Command: List backup by file;
List of datafile backups, archived log backups, control file backups, spfile backups
3. Summary
Command: List backup summary
It will display all backups summary
(or)
Command: List backup of database summary;
It will display only database level 0 and level 1 backups summary
4. Expired
Command: List expired backup
It will display all the archived logs in backup sets.
5. Recoverable
Command: List backup recoverable;
It displays the datafile backups or copies which are in "Available" state that can be restore and
recoverable.
2. Please find below for other LIST commands:
======================================================================
1. LIST INCARNATION;
2. LIST INCARNATION OF DATABASE;
3. LIST INCARNATION OF DATABASE vis;
4. LIST DB_UNIQUE_NAME ALL;
5. LIST DB_UNIQUE_NAME OF DATABASE;
6. LIST BACKUP;
7. LIST BACKUP SUMMARY;
8. LIST BACKUP BY FILE;
9. LIST BACKUP OF DATABASE;
10. LIST BACKUP OF DATABASE BY BACKUP;
11. LIST BACKUP OF TABLESPACE test SUMMARY;
12. LIST BACKUP OF DATAFILE 65;
13. LIST BACKUP OF DATAFILE 11 SUMMARY;
14. LIST BACKUP OF CONTROLFILE;
15. LIST BACKUP OF ARCHIVELOG FROM SEQUENCE 2222;
16. LIST BACKUP OF ARCHIVELOG FROM TIME ‘sysdate-1’;
17. LIST BACKUP OF ARCHIVELOG ALL COMPLETED BEFORE ‘sysdate-2’;
18. LIST BACKUP RECOVERABLE;
19. LIST EXPIRED BACKUP;
20. LIST EXPIRED BACKUP OF ARCHIVELOG ALL SUMMARY;
21. LIST COPY;
22. LIST COPY OF DATABASE ARCHIVELOG ALL;
23. LIST COPY OF TABLESPACE appl_idx;
24. LIST COPY OF DATAFILE 11, 60, 98;
25. LIST COPY OF CONTROLFILE;
26. LIST EXPIRED COPY;
27. LIST BACKUPSET SUMMARY;
28 .LIST BACKUPSET 109;
29. LIST BACKUPSET OF DATAFILE 1;
30. LIST ARCHIVELOG;
31. LIST ARCHIVELOG ALL LIKE ‘%5515%’;
32. LIST CONTROLFILECOPY “/tmp/cntrlfile.copy”;
33. LIST SCRIPT NAMES;
34. LIST ALL SCRIPT NAMES;
35. LIST GLOBAL SCRIPT NAMES;
36. LIST FAILURE; — 11g R1
37. LIST FAILURE 420 DETAIL; — 11g R1
38. LIST FAILURE ALL; — 11g R1
39. LIST RESTORE POINT ALL;
3. List Command Examples:
Command: LIST BACKUP OF DATABASE;
This command list the backups of database
Command: LIST COPY OF DATAFILE 1, 2, 3;
Command list the data files copy
Command: LIST BACKUP OF ARCHIVELOG FROM SEQUENCE 1437;
This will list the archivelogs from the sequence no:1437
Command: LIST CONTROLFILECOPY “/tmp/cf.cpy”;
This command will list the controlfile copy
Command: LIST BACKUPSET OF DATAFILE 1;
This will list the backupset of datafile 1
Command: LIST BACKUP OF DATABASE BY BACKUP;
Organizes the output by backup set. This is the default mode of presentation.
Command: LIST BACKUP BY FILE;
Lists the backups according to which file was backed up
Command: LIST BACKUP SUMMARY;
Displays reduced output. By default, the output is VERBOSE.
Command: LIST EXPIRED COPY;
Displays files inaccessible based on the CROSSCHECK command.
Command: LIST BACKUP RECOVERABLE;
Specifies datafile backups or copies that are available and that can be restored and recovered in
the current database incarnation. LIST BACKUP,LIST COPY,LIST COPY OF
CONTROLFILE,LIST COPY OF DATAFILE 1
4. ======================================
Report Command
======================================
The REPORT command performs more complex analysis than LIST
1. Need Backup
Command: report need backup database
Here which files need to be taken backup under the current retention policy
2. Obsolete
Command: report obsolete
Here it will report the list of backups that are obsolete under the current retention policy
3. Schema
Command: report schema
Here it will display the current/diffent time of tablespaces and datafile information of the
database
4. Unrecoverable
Command: report unrecoverable
======================================================================
List Command Examples:
Command: REPORT NEED BACKUP DATABASE;
Shows which files need backing up under current retention policy. Use optional
REDUNDANCY and RECOVERY WINDOW parameters to specify different criteria.
Command: REPORT OBSOLETE;
Lists backups that are obsolete under the configured retention policy. Use optional
REDUNDANCY and RECOVERY WINDOW parameters to specify criteria.
Command: REPORT UNRECOVERABLE;
Lists all datafiles for which an unrecoverable operation has been performed against an object in
the datafile since the last backup of the datafile.
5. Command: REPORT SCHEMA;
Reports the tablespaces and datafiles in the database at the current time (default) or a different
time.
Command: REPORT NEED BACKUP;
The following command use to report the file need to be backup
Command: REPORT NEED BACKUP DAYS=5;
This command report the files need backup for the given days
Command: REPORT NEED BACKUP REDUNDANCY=3;
This command report the backup need files based on redundancy
Command: REPORT NEED BACKUP RECOVERY WINDOW OF 7 DAYS;
This command report the backup need based on given retention policy
Command: REPORT NEED BACKUP INCREMENTAL 1;
This will report which files needs incremental level 1 backup
Command: REPORT SCHEMA AT TIME ‘sysdate-20/1440’;
This will report which files needs backup as per given time
================================================
THANK YOU
======================================
Written by:
Syed Sadath Ullah
M.Tech;Ocp
Oracle Database Administrator
Email: oraclecloud777@gmail.com
======================================