P. 1
Oracle 11g 2 Day DBA Hands-On

Oracle 11g 2 Day DBA Hands-On


|Views: 6,608|Likes:
Published by Essien56
This is a 2-Day Oracle 11g Database Administrator's (DBA) Step-by-Step Guide
This is a 2-Day Oracle 11g Database Administrator's (DBA) Step-by-Step Guide

More info:

Published by: Essien56 on Jan 02, 2009
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less




Complete the following tasks to perform a flashback table operation:

A Enable Row Movement
B. Simulate User Error
C. Perform Flashback Table

Enable Row Movement

You must enable row movement on a table in order to perform a flashback table operation on the
table. In this section you enable row movement on the HR.EMPLOYEES table.

1. Click the Schema tab.

2. Select Tables in the Database Objects section.


3. The Tables page appears. Enter HR in the Schema field and REGIONS in the Object Name field.

Click Go.

4. The REGIONS table is displayed in the Results section. Click Edit.


5. The Edit Table page appears. Click the Options tab.


6. Select Yes from the Enable Row Movement list. Click Apply.


7. You receive a message indicating your table has been successfully modified. Click the Tables



Simulate User Error

In this section you simulate user error by changing data in the REGIONS table. Perform the

1. View data in the REGIONS table by opening a terminal window and executing the following


sqlplus hr/oracle
col region_name format a30
select * from regions;

2. Simulate user error by executing the following SQL command to change the value in the
region_name column in all rows:

update regions set region_name = 'ORACLE';


3. View your change by executing the following command again:

select * from regions;

In the Performing Flashback Table section, you will flashback the table to the point in time
before you updated the table.

Performing Flashback Table

In this section you will flashback to the HR.REGIONS table.

1. Verify that REGIONS is still selected in the list of tables on the Tables page in Enterprise Manager.
Select Flashback Table from the Actions drop-down menu. Click Go.


2. The Perform Object Level Recovery: Point-in-time page appears. Select Flashback to a timestamp
and enter a date and time of a few minutes ago. Click Next.


3. The Perform Object Level Recovery: Flashback Tables window appears. Click Next.


4. The Perform Object Level Recovery: Review page appears. Review the information on the page and

click Submit.

5. You receive a confirmation that the table has been flashed back. Click OK.


6. Return to your SQL*Plus session and execute the following command to view the results of the
flashback table operation:

select * from regions;

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->