Pau Lo
asked on
RMAN backup queries
Are there any useful queries that would provide some assurance on oracle database backups? This gives some information but I wondered if there was a query that would list say all recent backups from the last month?:
http://docs.oracle.com/cd/B10501_01/server.920/a96566/rcmquery.htm#450996
I also wondered if theres any query to list where the backup file is being written to? Any pointers in that area?
http://docs.oracle.com/cd/B10501_01/server.920/a96566/rcmquery.htm#450996
I also wondered if theres any query to list where the backup file is being written to? Any pointers in that area?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
the output of the LIST shows the backup sets, see :
http://docs.oracle.com/cd/B19306_01/backup.102/b14192/bkup007.htm
>Also in that link above it states the "Reporting on Objects Needing a Backup" - would that be worth running? What kind of objects would these be?
"needing a backup" means that all object that have not been backed up since the expiry of previous backup (if any), or in case there was never a backup yet.
object refers to all files that RMAN can backup, which is mainly the database files, but also the config file (pfile / spfile)
http://docs.oracle.com/cd/B19306_01/backup.102/b14192/bkup007.htm
Piece Name: /oracle/work/RDBMS/backupset/2003_11_04/o1_mf_nnndf_TAG20031104T195949_ztjxfvgz_.bkp
>Also in that link above it states the "Reporting on Objects Needing a Backup" - would that be worth running? What kind of objects would these be?
"needing a backup" means that all object that have not been backed up since the expiry of previous backup (if any), or in case there was never a backup yet.
object refers to all files that RMAN can backup, which is mainly the database files, but also the config file (pfile / spfile)
ASKER
Thanks.
Is the query just
REPORT NEED BACKUP
Is the query just
REPORT NEED BACKUP
ASKER
Also is it definately
or LIST BACKUP (minus the S)
LIST BACKUPS
or LIST BACKUP (minus the S)
sorry, that was a typo.
it's LIST BACKUP (or LIST BACKUPSET)
it's LIST BACKUP (or LIST BACKUPSET)
ASKER
Last one:
Is the query just
REPORT NEED BACKUP (for the missing backups)
Is the query just
REPORT NEED BACKUP (for the missing backups)
yes, it's as short as that
ASKER
be useful to get your input into this question too:
https://www.experts-exchange.com/questions/28250209/external-database-links-in-oracle.html
https://www.experts-exchange.com/questions/28250209/external-database-links-in-oracle.html
ASKER
>in the backup set, you can see where the backup was written to.
is there a query to see where it was written to?
Also in that link above it states the "Reporting on Objects Needing a Backup" - would that be worth running? What kind of objects would these be?