Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How do roll back my database to a previous time

Posted on 2008-10-01
4
Medium Priority
?
734 Views
Last Modified: 2013-12-19
I am adding entries into my database soon, this does not happen often at my place of work. I would like to make sure that in the event that the data entry does not go to plan I can rollback my database to a previous state (now).

Do I have to do anything beforehand to make this possible? How do I preform a rollback if it is necessary?

I am using oracle 8.1 and windows 2000 server.
0
Comment
Question by:Nopax
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22614478
you could put all the changes into 1 transaction, and commit/rollback once the change should be commited or rolled back.
however, no other session will be able to see that (new) data until committed, so you cannot check the results of that new data.

you would need to either
* prepare the scripts to undo those changes (ie create a UPDATE for an UPDATE, a INSERT for a DELETE you do, and a DELETE for a INSERT you do),
or
* create copies of the tables, and get the data back (complex scripts again, and what about the other users/transactions?)
or
* perform an export of the table data, to be imported back (however, what about the other users/transactions?)
...
0
 

Author Comment

by:Nopax
ID: 22614564
I can make sure that there are no user connected. There are only 3 people that connect to it and they are all in the same room. Down time is not a big concern at all.
0
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 750 total points
ID: 22614765
you could do the following:
* stop the oracle database
* copy all the relevant database files
* start the oracle database

in case of rollback:
* stop the oracle database
* copy back all the relevant database files
* start the oracle database
0
 

Author Comment

by:Nopax
ID: 22614945
Oh, I wasn't sure that would work. But if that is possible it is certainly the solution for me.

Thanks
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  â€¦
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question