Interview RMAN
Interview RMAN
Interview RMAN
What is RMAN?
Recovery Manager (RMAN) is a utility that can manage your entire Oracle backup
and recovery activities.
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 preserved in 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 should
be backed up), because the database cant 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 with OS
level information. This command only updates repository records with the status of
the backups.
e.g. If user removes archived logs from disk with an operating system command,
the repository still indicates that the logs are on disk, when in fact they are not.
How do you identify what are the all the target databases that are being backed-up
with RMAN database?
You dont have any view to identify whether it is backed up or not. The only option is
connect to the target database and give list backup this will give you the backup
information with date and timing.
How do you identify the block corruption in RMAN database? How do you fix it?
Using v$block_corruption view you can find which blocks corrupted.
RMAN> block recover datafile <fileid> block <blockid>;
Using the above statement You recover the corrupted blocks. First check whether
the block is corrupted or not by using this command
SQL>select file# block# from v$database_block_corruption;
file# block
2 507
the above block is corrupted
conn to Rman
To recover the block use this command
RMAN>blockrecover datafile 2 block 507;
the above command recover the block 507
Now just verify it..
Rman>blockrecover corruption list;
How do you clone the database using RMAN software? Give brief steps? When do
you use crosscheck command?
Check whether backup pieces proxy copies or disk copies still exist.
Two commands available in RMAN to clone database:
1) Duplicate
2) Restore.
List some of the RMAN catalog view names which contain the catalog information?
RC_DATABASE_INCARNATION RC_BACKUP_COPY_DETAILS
RC_BACKUP_CORRUPTION
RC_BACKUP-DATAFILE_SUMMARY
How do you install the RMAN recovery catalog?
Steps to be followed:
1) Create connection string at catalog database.
2) At catalog database create one new user or use existing user and give that user a
recovery_catalog_owner privilege.
3) Login into RMAN with connection string
a) export ORACLE_SID
b) rman target catalog @connection string
4) rman> create catalog;
5) register database;
What is the difference between physical and logical backups?
In Oracle Logical Backup is which is taken using either Traditional Export/Import or
Latest Data Pump. Where as Physical backup is known when you take Physical O/s
Database related Files as Backup.
What is RAID? What is RAID0? What is RAID1? What is RAID 10?
RAID: It is a redundant array of independent disk
RAID0: Concatenation and stripping
RAID1: Mirroring
How to enable Fast Incremental Backup to backup only those data blocks that have
changed?
SQL> ALTER DATABASE enable BLOCK CHANGE TRACKING;
How do you set the flash recovery area?
SQL> ALTER SYSTEM SET db_recovery_file_dest_size = 100G;
SQL> ALTER SYSTEM SET db_recovery_file_dest = /u10/oradata/school;
What is auxiliary channel in RMAN? When do you need this?