Sunteți pe pagina 1din 2

1) You want to identify all backup files or copies that are outside the recovery

window of 2 days. Which RMAN command should you execute?


A.
B.
C.
D.

REPORT
REPORT
REPORT
REPORT

OBSOLETE
OBSOLETE
OBSOLETE
OBSOLETE

2 DAYS;
SINCE 2 DAYS;
RECOVERY 2 DAYS;
RECOVERY WINDOW OF 2 DAYS;

Answer:
D. REPORT OBSOLETE RECOVERY WINDOW OF 2 DAYS;
2) Which operation should you perform before using the RMAN> RESTORE CONTROLFILE
FROM AUTOBACKUP; command?
A.
B.
C.
D.

Start the database in the MOUNT stage.


Back up the control file to trace.
Set the DBID.
Issue the RECOVER DATABASE command.

Answer:
C. Set the DBID.
What is RMAN?
Recovery Manager (RMAN) is a utility that can manage your entire Oracle backup a
nd recoveryactivities.
What is the difference between using recovery catalog and control file?
When new incarnation happens, the old backup information in control file will be
lost. It will be preservedin recovery catalog.In recovery catalog we can store
scripts.Recovery catalog is central and can have information of many databases.
Can we use same target database as catalog?
No, The recovery catalog should not reside in the target database (database shou
ld be backed up),because the database can t be recovered in the mounted state.
How do you know that how much RMAN task has been completed?
By querying v$rman_status or v$session_longops
From where list & report commands will get input?
Both the commands command quering v$ and recovery catalog views. V$BACKUP_FILES
or many of the recovery catalog views such asRC_DATAFILE_COPY or RC_ARCHIVED_LOG
.
Command to delete archive logs older than 7days?
RMAN> delete archivelog all completed before sysdate-7;
How many times does oracle ask before dropping a catalog?
The default is two times one for the actual command, the other for confirmation.
How to view the current defaults for the database.
RMAN> show all;
What is the use of crosscheck command in RMAN?
Crosscheck will be useful to check whether the catalog information is intact wit
h OS level information.This command only updates repository records with the sta
tus of the backups.e.g. If user removes archived logs from disk with an operatin
g system command, the repository stillindicates that the logs are on disk, when
in fact they are not.

What are the differences between crosscheck and validate commands?


Validatecommand is to examine a backup set and report whether it can be restored
. RMAN scans allof the backup pieces in the specified backup sets and looks at t
he checksum to verify that the contentsare intact so that backup can be successf
ully restored if necessary.
Crosscheckcommand is to verify the status of backups and copies recorded in the
RMAN repositoryagainst media such as disk or tape. The crosscheck command only p
rocesses files created on thesame device type as the channel running crosscheck.
Which one is good, differential (incremental) backup or cumulative (incremental)
backup?
A differential backup, which backs up all blocks changed after the most recent
incremental backup atlevel 1 or 0RMAN> BACKUP INCREMENTAL LEVEL 1 DATABASE; A cu
mulative backup, which backs up all blocks changed after the most recent increme
ntal backup atlevel 0RMAN> BACKUP INCREMENTAL LEVEL 1 CUMULATIVE DATABASE;Cumula
tive backups are preferable to differential backups when recovery time is more i
mportant thandisk space, because during recovery each differential backup must b
e applied in succession. Usecumulative incremental backups instead of differenti
al, if enough disk space is available to storecumulative incremental backups.Thi
s is command for taking Level 0 backup.RMAN> BACKUP INCREMENTAL LEVEL 0 DATABASE
;
What is the difference between backup set and backup piece?
Backup set is logical and backup piece is physical.
RMAN command to backup for creating standby database?
RMAN> duplicate target database
You loss one datafile and DB is running in ARCHIVELOG mode. You have full databa
se backupof 1 week/day old and don t have backup of this (newly created) datafile.
How do yourestore/recover file?
Create data file and recover datafile.SQL> alter database create datafile /u01/ap
p/oracle/oradata/xyz.dbf size 2G;RMAN> recover datafile file_id;
What is obsolete backup & expired backup?
A status of expired means that the backup piece or backup set is not found in the
backup destination. A status of obsolete means the backup piece is still availabl
e, but it is no longer needed. The backuppiece is no longer needed since RMAN ha
s been configured to no longer need this piece after so manydays have elapsed, o
r so many backups have been performed.
What is the difference between hot backup & RMAN backup?
For hot backup, we have to put database in begin backup mode, then take backup.R
MAN won t put database in backup mode.
How to put manual/user-managed backup in RMAN (recovery catalog)?
By using catalog command.RMAN> CATALOG START WITH /tmp/backup.ctl ;

S-ar putea să vă placă și