how to fetch deleted row [message #646204] |
Tue, 22 December 2015 01:28 |
|
rahuljadhav177@gmail.com
Messages: 7 Registered: December 2015
|
Junior Member |
|
|
Hello sir
i m using oracle 11g i have deleted some row by mistake and commit transaction.
now i want to fetch this row in a regarding table.i have tried using flashback funtion.
SELECT * FROM employees
AS OF TIMESTAMP
TO_TIMESTAMP('2004-04-04 09:30:00', 'YYYY-MM-DD HH:MI:SS')
WHERE last_name = 'Chung';
But it has some time and date limitation. i know ony date but i doesn't remember actual time of deleted row...
can i fetch this row through query is any way please suggest me.
Thank You
|
|
|
Re: how to fetch deleted row [message #646205 is a reply to message #646204] |
Tue, 22 December 2015 01:37 |
John Watson
Messages: 8931 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Are you really trying o run a flashback query that goes back eleven years? You would need an undo tablespace the size of Jupiter for that to succeed. You may find that using the Log Miner facility is more effective - if you have all the archive logfiles for that day, and the structure of the table has not been changed since then. Analyzing a whole day of redo may be difficult and slow, but it should give you what you need.
|
|
|
|
|
|
|
|
|
|
|
|
Re: how to fetch deleted row [message #646308 is a reply to message #646307] |
Thu, 24 December 2015 05:05 |
John Watson
Messages: 8931 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
rahuljadhav177@gmail.com wrote on Thu, 24 December 2015 11:04i know this way but every time restore backup is not possible for single row ...
is oracle providing feature regarding that problem......
Yes: the Flashback Data Archive (which is free in all editions from 12.x, chargeable in 11.x) is designed for exactly this purpose. But it didn't exist 11 years ago, so you can't use it.
|
|
|
|
|
|
Re: how to fetch deleted row [message #646313 is a reply to message #646310] |
Thu, 24 December 2015 05:24 |
cookiemonster
Messages: 13920 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
Stuff from yesterday will be in flashback. Older stuff will or won't be in flashback depending on the size of the flashback area.
Anything that is no longer in flashback can only be got from backups.
|
|
|