﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals / Oracle Forum / Oracle Interview Questions / Oracle Backup and Recovery Interview Questions </title><generator>InstantForum.NET v4.1.4</generator><description>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals</description><link>http://www.franklinfaces.com/</link><webMaster>no-reply@FranklinFaces.com</webMaster><lastBuildDate>Sat, 31 Jul 2010 07:27:37 GMT</lastBuildDate><ttl>20</ttl><item><title>RMAN Interview Questions</title><link>http://www.franklinfaces.com/Topic47-78-1.aspx</link><description>&lt;FONT color=#113311&gt;&lt;P&gt;&lt;STRONG&gt;1. What is RMAN ?&lt;BR&gt;&lt;/STRONG&gt;&lt;FONT color=#3333dd&gt;Recovery Manager (RMAN) is a utility that can manage your entire Oracle backup and recovery activities.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Which Files must be backed up? &lt;BR&gt;&lt;/STRONG&gt;&lt;FONT color=#3333dd&gt;Database Files (with RMAN) &lt;BR&gt;Control Files (with RMAN) &lt;BR&gt;Offline Redolog Files (with RMAN) &lt;BR&gt;INIT.ORA (manually) &lt;BR&gt;Password Files (manually)&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color=#113311&gt;&lt;STRONG&gt;2.   When you take a hot backup putting Tablespace in begin backup mode, Oracle records SCN # from header of a database file.  What happens when you issue hot backup database in RMAN at block level backup? How does RMAN mark the record that the block has been backed up ?  How does RMAN know what blocks were backed up so that it doesn't have to scan them again?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;In 11g, there is Oracle Block Change Tracking feature.  &lt;/FONT&gt;&lt;FONT color=#3333dd face=Arial&gt;Once enabled; this new 10g feature records the modified since last backup and stores the log of it in a block change tracking file. During backups RMAN uses the log file to identify the specific blocks that must be backed up. This improves RMAN's performance as it does not have to scan whole datafiles to detect changed blocks.&lt;BR&gt;Logging of changed blocks is performed by the CTRW process which is also responsible for writing data to the block change tracking file. RMAN uses SCNs on the block level and the archived redo logs to resolve any inconsistencies in the datafiles from a hot backup. What RMAN does not require is to put the tablespace in BACKUP mode, thus freezing the SCN in the header. Rather, RMAN keeps this information in either your control files or in the RMAN repository (i.e., Recovery Catalog).  &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd face=Arial&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color=#113333&gt;3.  What are the Architectural components of RMAN?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#000000&gt;&lt;FONT color=#3333dd&gt;1.RMAN executable&lt;BR&gt;2.Server processes&lt;BR&gt;3.Channels&lt;BR&gt;4.Target database&lt;BR&gt;5.Recovery catalog database (optional)&lt;BR&gt;6.Media management layer (optional)&lt;BR&gt;7.Backups, backup sets, and backup pieces&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#113333&gt;&lt;B&gt;4.  What are Channels?&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#113333&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#3333dd&gt;A channel is an RMAN server process started when there is a need to communicate with an I/O device, such as a disk or a tape. A channel is what reads and writes RMAN backup files. It is through the allocation of channels that you govern I/O characteristics such as: &lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT color=#3333dd&gt;Type of I/O device being read or written to, either a disk or an sbt_tape&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color=#3333dd&gt;Number of processes simultaneously accessing an I/O device &lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color=#3333dd&gt;Maximum size of files created on I/O devices &lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color=#3333dd&gt;Maximum rate at which database files are read&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color=#3333dd&gt;Maximum number of files open at a time&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color=#113333&gt;5.  Why is the catalog optional?&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;Because RMAN manages backup and recovery operations, it requires a place to store necessary information about the database. RMAN always stores this information in the target database control file. You can also store RMAN metadata in a recovery catalog schema contained in a separate database. The recovery catalog&lt;BR&gt;schema must be stored in a database other than the target database.&lt;/FONT&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color=#113333&gt;6.  What does complete RMAN backup consist of ?&lt;/FONT&gt;&lt;BR&gt;&lt;/STRONG&gt;&lt;FONT color=#3333dd&gt;A backup of all or part of your database. This results from issuing an RMAN backup command. A backup consists of one or more backup sets.&lt;/FONT&gt; &lt;BR&gt;&lt;BR&gt;&lt;B&gt;&lt;FONT color=#113333&gt;7.  What is a Backup set?&lt;/FONT&gt;&lt;BR&gt;&lt;/B&gt;&lt;FONT color=#3333dd&gt;A logical grouping of backup files -- the backup pieces -- that are created when you issue an RMAN backup command. A backup set is RMAN's name for a collection of files associated with a backup. A backup set is composed of one or more backup pieces.&lt;/FONT&gt; &lt;BR&gt;&lt;BR&gt;&lt;B&gt;&lt;FONT color=#113333&gt;8.  What is a Backup piece?&lt;/FONT&gt;&lt;BR&gt;&lt;/B&gt;&lt;FONT color=#3333dd&gt;A physical binary file created by RMAN during a backup. Backup pieces are written to your backup medium, whether to disk or tape. They contain blocks from the target database's datafiles, archived redo log files, and control files. When RMAN constructs a backup piece from datafiles, there are a several rules that it follows: &lt;/FONT&gt;&lt;/P&gt;&lt;LI&gt;&lt;FONT color=#3333dd&gt;A datafile cannot span backup sets&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color=#3333dd&gt;A datafile can span backup pieces as long as it stays within one backup set&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color=#3333dd&gt;Datafiles and control files can coexist in the same backup sets&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color=#3333dd&gt;Archived redo log files are never in the same backup set as datafiles or control files RMAN is the only tool that can operate on backup pieces. If you need to restore a file from an RMAN backup, you must use RMAN to do it. There's no way for you to manually reconstruct database files from the backup pieces. You must use RMAN to restore files from a backup piece.&lt;/FONT&gt; &lt;/LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color=#113333&gt;9.  What are the benefits of using RMAN? &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;1. Incremental backups that only copy data blocks that have changed since the last backup. &lt;BR&gt;2. Tablespaces are not put in backup mode, thus there is noextra redo log generation during online backups. &lt;BR&gt;3. Detection of corrupt blocks during backups. &lt;BR&gt;4. Parallelization of I/O operations. &lt;BR&gt;5. Automatic logging of all backup and recovery operations. &lt;BR&gt;6. Built-in reporting and listing commands. &lt;/FONT&gt;</description><pubDate>Fri, 16 Jan 2009 16:59:44 GMT</pubDate><dc:creator>Admin</dc:creator></item></channel></rss>