Skip to content
Advertisement

How can I retrieve an updated script in the oracle database?

How can I retrieve an updated script in the oracle database? An incorrect script was run in the oracle database. I want to get this script back. how can I do that? The script is as follows.

Advertisement

Answer

If you haven’t COMMITted the data then use ROLLBACK.

Otherwise, your solution could be as simple as running the same query but subtracting 3 months:

If that won’t work and you have COMMITted the data and the database has flashback activated then you can use a flashback query to find the old data from before the UPDATE.

If all that fails, then you can look and see if the database has a recent backup you can restore from.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement