Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
7Activity
0 of .
Results for:
No results containing your search query
P. 1
Backup Funda

Backup Funda

Ratings: (0)|Views: 38 |Likes:
Published by utpalbasak

More info:

Published by: utpalbasak on May 08, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

07/20/2010

pdf

text

original

 
17Querying the RMAN Repository
This chapter describes how to obtain information about RMAN from the repository. Thischapter contains these topics:
About Querying the RMAN Metadata
You can obtain information from the RMAN repository in several different ways. Thefollowing table describes the basic options.
MethodCatalogNeeded?Description
LIST
command NoUse this command to list backups, copies, and databaseincarnations. The output displays those files operated on bythe
CHANGE
,
CROSSCHECK
, and
DELETE
commands.
REPORT
command NoUse this command to find out which files need a backup,which backups are no longer needed, which files are in theschema, and so forth.
SHOW
command NoUse this command to display persistent RMAN configurationsettings.
PRINTSCRIPT
commandYesUse this command to display the names of the scripts stored inthe recovery catalog.Recoverycatalog fixedviewsYesQuery these views to access the catalog itself. Someinformation, such as the names and contents of the storedscripts, can only be obtained from the catalog views.
V$
fixedviews NoQuery these views to access the target database control file.RMAN obtains metadata for the recovery catalog from thecontrol file. Some
V$
views such as
V$DATAFILE_HEADER
,
 
MethodCatalogNeeded?Description
V$PROCESS
, and
V$SESSION
contain information not found inthe catalog views.The main source of information about RMAN is the
REPORT
and
LIST
command output.Use these commands to query the RMAN repository and determine what you have backed up as well as what you need to back up. This information is extremely helpful indeveloping an effective backup strategy.The
LIST
command displays all RMAN backups (both backup sets and proxy copies) andcopies, while the
REPORT
command performs more complex analysis. For example, youcan generate a report on which datafiles need a backup and which backup pieces areobsolete with the
REPORT
command. RMAN writes the output from the
REPORT
and
LIST
commands to either standard output or a log file.The
SHOW
command displays persistent configuration settings. For example, if youallocate automatic channels with the
CONFIGURE
command, these settings are displayed inthe
SHOW
output.
Listing RMAN Backups, Copies, and DatabaseIncarnations
The
LIST
command queries the recovery catalog or control file and produces a listing of the backups, copies, archived redo logs, and database incarnations recorded there. Youcan specify these files when running the
CHANGE
,
CROSSCHECK
, and
DELETE
commands.This section contains these topics:
About RMAN Lists
You can control how the output is displayed by using the
BY
 
BACKUP
and
BY
 
FILE
optionsand choosing between the
SUMMARY
and
VERBOSE
options.
 
The primary purpose of the
LIST
command is to determine which backups or copies areavailable. Note that only backups and copies that completed successfully are stored in therepository. For example, you can list:
Backups (backup sets and proxy copies) or image copies recorded in the RMANrepository
Backups or image copies of a specified database, tablespace, datafile, archivedredo log, or control file
Backups and image copies that have expired
Backups and image copies restricted by options such as time, path name, devicetype, tag, or recoverability
Incarnations of a specified databaseUse the RMAN repository to determine what you need to back up. In particular, ensurethat:
The
STATUS
columns of the output tables list all backups and image copies as
AVAILABLE
All datafiles, archived redo logs, and control files that you need backed up areincluded in the output
The backups and copies recorded in the repository are recent
Listing Backups by Backup
By default, RMAN lists backups by backup, which means that it serially lists each backup set or proxy copy and then identifies the files included in the backup. By default,RMAN lists backups and copies in
verbose mode
, which means that it provides extensive,multiline information.
To list backups by backup:
1.After connecting to the target database and recovery catalog (if you use one),execute
LIST
 
BACKUP
. Specify the desired objects with the
listObjList
clause.For example, you can enter:
2.LIST BACKUP; # lists backup sets, backup pieces, and proxy copies3.
Optionally, specify the
EXPIRED
keyword to identify those backups that were notfound during a crosscheck:
LIST EXPIRED BACKUP;
2.Examine the output (refer to
for anexplanation of the various column headings in the
LIST
output). Sample outputfollows:
 
3.LIST BACKUP;

Activity (7)

You've already reviewed this. Edit your review.
1 hundred reads
sunny_dba liked this
shiva liked this
junaid9900 liked this
krsnagnani liked this
Mathish liked this
Mathish liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->