Flashback a table to point in time in Oracle

Flashback of a table need if you update or delete some date accidentally.

  1. Check the flashback is enabled.
SQL> select flashback_on from v$database;
FLASHBACK_ON
----------------------
NO

2. Enable the Row movement for table which need recovery.

ALTER TABLE HR.EMP ENABLE ROW MOVEMENT;

3. Flashback the table according to timestamp.

FLASHBACK TABLE HR.EMP TO TIMESTAMP
TO_TIMESTAMP('2021-02-25 09:00:00', `YYYY-MM-DD HH24:MI:SS');

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.