Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rollback committed data

Can committed data be rolled back in oracle? If yes then how can we do this. Please help.

like image 758
facebook Avatar asked May 06 '11 08:05

facebook


2 Answers

Oracle has several features under the umbrella term FLASHBACK, which in some circumstances allow restoring individual tables or the entire database to an earlier state, without having to do an RMan restore & recover option. The availability of these features depends on (1) which edition of the database you are using, and (2) whether a flash recovery area has been configured. The amount of time that you can flashback depends on the size of the FRA and the amount of activity in the database.

like image 109
Dave Costa Avatar answered Oct 24 '22 00:10

Dave Costa


In all RDBMS's, a committed transaction is committed.

As pointed out by @Dave Costa, ORACLE supports Flashback allows you to revert committed changes in some circumstances, without a restore from backup.

Normally, in order to undo committed data, you would have to restore an appropriate backup and then apply changes up to the point you desire.

like image 43
Mitch Wheat Avatar answered Oct 24 '22 01:10

Mitch Wheat