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 13 RECOVERY 285<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Flashback Transaction<br />

The SQL statements required <strong>to</strong> reverse changes can be au<strong>to</strong>matically generated from<br />

the undo segments. For example, an statement can be reversed with a <br />

statement, and vice versa. All one needs <strong>to</strong> do is <strong>to</strong> select the necessary SQL statements<br />

from the view—a DBA- level privilege called <br />

is required. The transaction identifier () in the following example is the<br />

one obtained in the previous section:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Flashback Table<br />

All changes made <strong>to</strong> a table can be removed by using the command if the<br />

information in the undo segments has not yet been overwritten by newer transactions.<br />

For example, suppose that we inadvertently increased the salary of all employees, as in<br />

the following example:

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

Saved successfully!

Ooh no, something went wrong!