Solved

How do you retrieve deleted data after a commit?

Posted on 2002-07-16
3
3,316 Views
Last Modified: 2008-02-26
2 data records were deleted in sql and a commit was executed. These records need to be retrieved. How can I
restore them?

First time using experts exchange, please bear with me.
We are using oracle 8i, I have very little experience with
oracle administration and would need a detail step by step walk through if possible.
0
Comment
Question by:grasshopper_usa
3 Comments
 
LVL 3

Accepted Solution

by:
mnicoras earned 50 total points
Comment Utility
Hi,

in oracle 8i = using log miner

in oracle 9i = using flashback query

in oralce 8 and bellow = the worsest procedure I can imagine for a DBA...

choose one and more details can come!

best regards,
Marius Nicoras
0
 
LVL 4

Expert Comment

by:asimkovsky
Comment Utility
Do you have a backup of the database? Does that backup contain the two rows you need?

If you do, you can clone the database to a new server, recover it to a point in time before the deletion occurred (like one SCN just prior to the COMMIT statement for the delete), then copy those two rows from the clone back to the original database.

Andrew
0
 

Expert Comment

by:dsimpson
Comment Utility
The following document provides 15 database recovery scenarios - including this situation (scroll down to Scenario #8):

http://www.dotcomsolutionsinc.net/products/installgen/win_901_32bit_files/installgen_win901_39_.html#recovery_scenarios

To summarize, if you have a database export available, then re-importing the data would generally be the quickest method.

David Simpson
www.dotcomsolutionsinc.net
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now