Home » RDBMS Server » Server Administration » Schema Undo (12.2)
|
|
|
|
|
|
|
|
|
|
Re: Schema Undo [message #678566 is a reply to message #678565] |
Sun, 15 December 2019 09:22   |
 |
deepakdot
Messages: 93 Registered: July 2015
|
Member |
|
|
My Mistake .. Where I say "can not" , actually it is "should not" . I think I did not put it clear . Here it is:
Lets say, I am adding lot of DML to 50 Tables. There are 30 tables where data is modified thru scripts only directly in back end. So we can restore these 30 Tables , from RMAN Backup, as you mentioned, tables can be restored from the backup files. we will be good here.
Other 20 Tables is a concern. While we modify the data for these 20 tables, same time there is very high chance that these tables also would have modified online thru other channels. So in this scenario if we need to revert back the changes, we SHOULD NOT restore these tables from Backup, because we will also the data which is updated thru online also. we should revert the data what we have updated manually in back end, not the Transnational data which is modified online. So we are thinking to provide UNDO scripts which will revert back the data what we have modified manually.
Hope I made it clear.
|
|
|
Re: Schema Undo [message #678573 is a reply to message #678566] |
Mon, 16 December 2019 08:23   |
 |
JPBoileau
Messages: 88 Registered: September 2017
|
Member |
|
|
That is exactly what we do. I have apply and undo scripts. During the apply, if we modify or delete current data, we create a backup table that contains the rows that will be modified/deleted.
If the apply needs to be undone, we delete any added rows, we revert any updated rows, and we insert any deleted rows.
Yes, it's a fair bit of work, but you're in control of the DB.
JP
[Updated on: Mon, 16 December 2019 08:26] Report message to a moderator
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri May 02 20:43:35 CDT 2025
|