Difficulty: Easy
Correct Answer: Online backups are taken while the database remains open and accessible to users, whereas offline backups are taken after the database has been shut down cleanly.
Explanation:
Introduction / Context:
Oracle supports both online and offline backup methods to accommodate different availability requirements. Understanding the difference between these two backup types is a fundamental skill for database administrators and is often tested in interviews and certification exams. This question focuses on the essential distinction: whether the database is open and accessible to users during the backup or shut down and unavailable.
Given Data / Assumptions:
Concept / Approach:
An offline or cold backup is taken after the database has been shut down in a consistent state. No users are connected and no transactions are running. Administrators can safely copy data files, control files, and other components using operating system commands or RMAN. An online or hot backup is taken while the database is open and users continue to perform transactions. This typically requires archivelog mode so that changes are captured in archived redo logs and the backup can be made consistent during recovery. A correct answer must mention that online backups occur with the database open, while offline backups occur with the database shut down.
Step-by-Step Solution:
Step 1: Recall that offline or cold backups require shutting down the database cleanly before copying files.
Step 2: Recall that online or hot backups are taken while the database is open, using RMAN or similar tools, and rely on archived redo logs for consistency.
Step 3: Examine Option A, which states that online backups are taken while the database remains open and offline backups are taken after a clean shutdown. This aligns exactly with the definitions.
Step 4: Examine Option B, which talks about storage media such as paper and tape; this does not define online versus offline.
Step 5: Examine Option C, which incorrectly suggests ignoring control files or data files, which would create unusable backups.
Step 6: Examine Option D, which suggests a limit on how often online backups can be taken; this is not true.
Step 7: Examine Option E, which claims there is no difference; this contradicts standard Oracle terminology.
Step 8: Conclude that Option A is the only correct description.
Verification / Alternative check:
Oracle backup and recovery guides describe the steps for taking cold backups: shut down the database, copy files, and then restart. They also describe the steps for hot backups, which involve placing tablespaces into backup mode or using RMAN while the database remains open. Examples clearly show users still connected during online backups. There is no mention of restricting online backup frequency or storing backups on paper, which confirms that Options B, C, D, and E are incorrect.
Why Other Options Are Wrong:
Common Pitfalls:
A common pitfall is misunderstanding that online backups require archivelog mode; without it, recovery may not be possible. Another mistake is to assume that cold backups are always safer, without considering the downtime impact. Administrators should design backup strategies that meet recovery time objectives and recovery point objectives, often combining scheduled online backups with occasional offline backups when maintenance is planned.
Final Answer:
The correct distinction is Option A: Online backups are taken while the database remains open and accessible to users, whereas offline backups are taken after the database has been shut down cleanly.
Discussion & Comments