What is happening in the background when the database is in hot backup mode?
When you place a tablespace in backup mode for hot backups, Oracle does two things. First, Oracle freezes the datafile header, or more specifically, it freezes the SCN in the datafile header. Many people think that Oracle will not write to a datafile that is in backup mode. This is incorrect. Oracle will continue to write to that datafile, but Oracle will not update the SCN in the datafile header until that datafile is taken out of backup mode. Second, Oracle needs to make sure that any inconsistencies that occur when yor OS routines backup an active datafile. Oracle does this by logging information in the online redo logs, and thus the archived redo logs, that it needs to resolve these inconsistencies. Oracle takes an extra measure of not only logging the changes row, but logs the entire block that was changed to the online redo logs. For this reason, you may notice an increase in online redo log activity while you are performing your hot backups.
For More Information
- Dozens more answers to tough Oracle questions from Brian Peasland are available.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our applications, PL/SQL, database administration and data warehousing gurus are waiting to answer your toughest questions.
Dig Deeper on Oracle database design and architecture
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.