01.09.2016 Views

Beginning Oracle Database 11g Administration From Novice to Professional

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 12<br />

Backups<br />

As <strong>to</strong> our Conduct in the Affair of Extinguishing Fires, tho’ we do not want Hands or<br />

Good- Will, yet we seem <strong>to</strong> want Order and Method, and therefore I believe I cannot<br />

do better than <strong>to</strong> offer for our Imitation, the Example of a City in a Neighbouring<br />

Province. There is, as I am well inform’d, a Club or Society of active Men belonging<br />

<strong>to</strong> each Fire Engine; whose Business is <strong>to</strong> attend all Fires with it whenever they happen;<br />

and <strong>to</strong> work it once a Quarter, and see it kept in order.<br />

—Benjamin Franklin, in an anonymous letter <strong>to</strong> the<br />

Pennsylvania Gazette (of which he was the edi<strong>to</strong>r), following<br />

a disastrous fire in Philadelphia in the 18th century<br />

American national hero Benjamin Franklin often wrote anonymous letters <strong>to</strong> the Pennsylvania<br />

Gazette, a prominent newspaper that he himself owned and edited. In one such<br />

letter he coined the famous phrase “an ounce of prevention is worth a pound of cure”<br />

and, in addition <strong>to</strong> making several suggestions for the prevention of fires, he suggested<br />

that Philadelphia imitate his native Bos<strong>to</strong>n in establishing fire stations and employing<br />

firefighters; not only should all efforts be made <strong>to</strong> prevent fires but the city should be<br />

adequately prepared <strong>to</strong> handle the next inevitable fire.<br />

Backups are <strong>to</strong> a database what fire stations and fire fighters are <strong>to</strong> a city; we may<br />

protect the database against damage the best we can, but we must be prepared if the<br />

database ever gets damaged, through user or opera<strong>to</strong>r error or hardware failure, and<br />

needs <strong>to</strong> be repaired. A backup is a snapshot of a database or a part of a database; if the<br />

database is damaged, the damaged parts can be repaired using the backups. Archived<br />

logs can be used in conjunction with backups <strong>to</strong> replay transactions that changed data<br />

after the backup was performed. This chapter describes how <strong>to</strong> create various kinds of<br />

backups; the next chapter describes how <strong>to</strong> use them <strong>to</strong> repair databases. The impatient<br />

reader may note that a backup can be created with two simple words: <br />

but, as the leading mind of the European renaissance, Leonardo da Vinci, said: “Those<br />

who are in love with practice without knowledge are like the sailor who gets in<strong>to</strong> a ship<br />

without rudder or compass and who never can be certain whether he is going. Practice<br />

must always be founded on sound theory.”<br />

255

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!