I did a DB update without using a where clause and commit without taking any backup. All the rows in the table are updated. Is there any way to rollback the changes?
The DB is a Oracle SQL one. Please help.
I did a DB update without using a where clause and commit without taking any backup. All the rows in the table are updated. Is there any way to rollback the changes?
The DB is a Oracle SQL one. Please help.
You could do it using Flashback feature.
1.Flashback by SCN
2.Flashback by TIMESTAMP
To get current_scn and systimestamp, query :
Let's see an example :
To flashback the table to the old scn, use
FLASHBACK TABLE..TO SCN
clause.I have four rows in the table.
Row movement is required.
I deleted a row now and committed the changes.
Flashback is complete
I now have my table to old state and the row is back