8 Reporting On Rman
8 Reporting On Rman
SQL> startup
############################################
SQL> CREATE PLUGGABLE DATABASE pdbtest ADMIN USER admpdb identified by "oracle"
DEFAULT TABLESPACE USERS
DATAFILE '/u01/app/oracle/oradata/testpdb01.dbf'
SIZE 25M AUTOEXTEND ON;
--backup pdbtest
$ rman target sys/oracle@primary catalog rcatown/rcatown@rcatpdb
RMAN> REPORT NEED BACKUP RECOVERY WINDOW OF 2 DAYS DATABASE DEVICE TYPE DISK;
--to update the status of backups in the repository compared to their status on
disk
RMAN> CROSSCHECK BACKUP DEVICE TYPE DISK;
--to identify which backups are obsolete because they are no longer needed for
recovery
RMAN> REPORT OBSOLETE;
--to check which backups are obsolete under different recovery window-based or
redundancy-based retention policies
RMAN> REPORT OBSOLETE RECOVERY WINDOW OF 3 DAYS;
--Reporting in CDBs
--to display all the data files in the CDB that need backup
RMAN> REPORT NEED BACKUP;
--Reporting in PDBs
--when connected to CDB
RMAN> LIST BACKUP OF PLUGGABLE DATABASE pdb1;
--to view information about the backup type, status, and start and end time.
SQL> COL STATUS FORMAT a9
COL hrs FORMAT 999.99
--to query the catalog for information about the current incarnation of a database
SQL> CONNECT / AS SYSBACKUP
--connect to the recovery catalog database as the owner of the recovery catalog
$ sqlplus rcatown/rcatown@rcatpdb