URGENT: Need to flashback table, how to find SNA for quite some time before the update that's happened?
Hi all
I have a new database 11G, I haven't used before flashback, but my retention time is a day... I have once the developer did a massive update to a table to corrupt.
How can I find the RCS for this time so I can try this table of flashback?
Thank you
Cayenne
Thank you.. I also found that it works:
SQL > select timestamp_to_scn (to_timestamp('20140103152000','YYYYMMDDHH24MISS')) SNA double;
SNA
----------
98344246
Although does NOT work all the time. But that's just what Oracle when you give him a timestamp to flashback to: it converts the timestamp of a SNA and then restores the data based on the SNA.
See table of Flashback in the language SQL doc
http://docs.Oracle.com/CD/B28359_01/server.111/b28286/statements_9012.htm
TIMESTAMP CLAUSE
Specify a value of timestamp corresponding to the point in time to which you want to return to the table. The
expr
must evaluate to a valid time stamp in the past. The table will flash back to a period of about 3 seconds to the specified timestamp.
This precision "3 seconds" is because of this conversion to SNA - Oracle uses its internal table.
YVERT is accurate, if you know, but you typically do not have.
Read and consider these warnings in app dev guide advanced
http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28424/adfns_flashback.htm
Guidelines for Oracle Flashback Query
- If a potential error of 3 seconds (maximum) is important for Oracle Flashback Query in your application, use a SNA instead of a timestamp. See guidelines on Oracle Flashback technology.
. . .
General guidelines for Oracle Flashback Table
. . .
- For querying the latest data at a specific time, use a SNA. If you use a timestamp, questioned real time can be up to 3 seconds before the time you specify. Oracle database uses the SNA and assigns them to the timestamps to a granularity of 3 seconds.
For example, suppose values SNA 1000 and 1005 are mapped on the timestamps 08:41 and 08:46, respectively. A query for a moment between 08:41 and 08:45:59 is mapped to the SCN 1000; an Oracle Flashback Query at 08:46 is mapped to the SNA 1005.
By reason of this time-to-SNA map, if you specify a time slightly after a DDL (such as a table creation) Oracle database operation can use a SNA which is located just before the DDL operation, causing the error ORA-1466.
. . .
Tags: Database
Similar Questions
-
How can I empty it now?
You can take:
1. right click on an empty area of the desktop
2. Select Customize from the context menu that appears
3. in the column of the tasks in the left pane, select "Change Desktop Icons"
4. under the desktop icons, click the checkbox in front of the basket to check.
5. click on apply and OK -
I've just updated to 29 of Firefox. Since the update the Norton Toolbar is no longer compatible. The Norton toolbar has worked in the last version of Firefox that I had installed. Is there a way to get back to the last version of Firefox where this toolbar is compatible and keep all the settings (favorites) in the old version I am reloading? All my passwords (99) are in the toolbar Norton Safe ID. Now I can not connect to many Web sites.
Hello jimb01, yes norton supports only the stable versions of firefox and Firefox 29 you are using the beta version of the browser. You can download the normal version of firefox 28 of https://www.mozilla.org/firefox/channel/#firefox and install it on top of your current installation...
-
BEFORE the UPDATE trigger between field in both tables
Hi Oracle Experts,
I'm a newbie in the triggers. I want to do a trigger that fires whenever changes are made to a table, updates a field in the second table. The details are as below:
SAMPLE ( SAMPLEID NUMBER(10,0) ACTIVITYID NUMBER(10,0) ACTIVITYTABLEID VARCHAR2(20 BYTE) SAMPLEDT DATE SAMPLEPTID VARCHAR2(20 BYTE) SAMPLENOTIFY VARCHAR(1 BYTE) )
SAMPLE_RESULT( SAMPLEID NUMBER(10,0) TESTID VARCHAR2(20 BYTE) PROPERTYID VARCHAR2(20 BYTE) TESTERID VARCHAR2(20 BYTE) ENTRYDT DATE RESULTNUM NUMBER(18,8) RESULT VARCHAR2(20 BYTE) RESULTTYPE VARCHAR(1 BYTE) RESULTSTATUS VARCHAR2(1 BYTE) )
The idea of relaxation:
CREATE OR REPLACE TRIGGER "DBA".AUTO_NOTIFY BEFORE UPDATE OF RESULT ON SAMPLE_RESULT FOR EACH ROW WHEN (NEW.PROPERTYID = 'Action Taken') BEGIN //my idea :new.sample.samplenotify = 'S' //but i don't know how to make a reference to another table END;
The trigger will fire every time the propertyid is pronounced, it sets the value of samplenotify in the example in table for the of '.
Is this possible?
Thank you in advance.
La: new.column_name syntax applies only to the table that the trigger is on. You will need to use an update on the other table.
CREATE OR REPLACE TRIGGER auto_notify
BEFORE the UPDATE result WE sample_result
FOR EACH LINE
WHEN (NEW. PROPERTYID = "Taken Action")
BEGIN
Example of UPDATE
SET s = samplenotify"
WHERE sampleid =: NEW.sampleid;
END auto_notify;
/
-
How to find parts for my wifi code
How to find parts for my wifi code? I bought an external usb wifi. I don't know how to find the area code for it.i have these options in its settings.
Hello
Please let us know which external USB Wifi are you referring to?
I suggest you to contact the manufacturer or look at the manual for assistance on the issue.
Let us know if you need help on the issue. We will be happy to help you.
-
How to find a specific voice memo file in the backup from my iPhone to my Mac? I know where to find the backup, but not how to recover specific files. Thank you.
You can't look "inside" a backup. Just use iTunes to sync with your iPhone, then you'll see a separate category for voice memos in the sidebar.
-
How to find software for my webcam gigawear
How to find software for my webcam gigawear I lost it
CS
Have you tried Googling it?
What diagnosis have so far?
Please provide as much detail as you can.
Before asking a technical question by e-mail or on a Web site forum, follow these steps:
Try to find an answer in the archives of the forum on what you intend to publish. (Community of Microsoft)
Try to find an answer by searching the Web
Try to find an answer by reading the manual.
Try to find an answer by reading a FAQ.
Try to find an answer by inspection or testing.Suggestions for asking for help on a site.
http://support.Microsoft.com/kb/555375
http://www.CatB.org/~ESR/FAQs/smart-questions.html
http://answers.Microsoft.com/en-us/Windows/Forum/windows_other-windows_update/what-information-to-post-in-the-Windows-Update/1467f44b-ee27-4F7D-98d7-f1c4b35b3395
-
When I read an email or document without moving my mouse, the screen turns black after only about a minute and then proceeds to my screensaver. I have to move the mouse constantly opening my active window. I can't find out how to disable this "Energy Saving" so I can read the lengthy articles without being interrupted every other minute. This was VERY irritating!
Hello
Open windows control panel, open personalization, click on the link to screensaver at the bottom right and in the next window, set the time in the area of 'Wait' for once you want before the screen saver appears, and click on apply. Or if you never get the logon screen, remove the check mark next to of "on resume, display the login page» Click on apply to save the changes.
Then open windows control panel again and click on Power Options, click Change plan settings next to your current power plan selected in the next window, set the time using the drop-down list next to "Turn wide Display" to a more acceptable level and then click on save changes.
Note: Set in the Options menu of food to be slightly longer than the time set in the Menu of the screen saver or you will never see your screen saver start.
Kind regards
DP - K
-
Hello
How to disable AutoComplete for username and password on the page to connect ACS 5.3 GUI? I have watched with in the Administration of the system GUI pages for example Sessions and can't find how to turn it off.
Y at - it a CLI command I can run?
Thank you
Stuart.
Try to update to patch 5.3.0.40.7
Resolved questions in ACS 5.3.0.40.7 rollup
CSCub40498 : the password in ACS 5.3 field has enabled auto operation.
-
How to change Apple ID of App store at the time of the update of the app I have already change the ID in establishing air & app but still old ID think to update the application
You must delete and re-download this request.
(140006)
-
Given that I have updated to IOS 9.2 my Ipad 2 Air is discharge the battery in 12 to 14 hours, even without any use. Before the update, after a day of average use of the battery was still 70-75%. How can I reinstall the IO 9.1?
Hello
The best way to save battery life is to go into the settings and turn off Apps Refresh
I now get 3 / 4 hours of battery life more.
You cannot return to a previous ios 9.1
See you soon
Brian
PS
If you still have a problem iCloud backup now
Then restore settings to get rid of any bugs.
-
How can I keep the updates that I rejected following lists?
How can I keep the updates that I reject in the following lists of available updates?
Once you * hide * them - you won't see them even * less * they are re-certificate/changed/updated. To whom it may * look like * see them again - but you can give the update more than a quick glance - because if she was re-certificate/updated / changed somehow - you might want to install this time.
--
Martin Stanley
MS - MVP
--
How to ask Questions the Smart way
http://www.CatB.org/~ESR/FAQs/smart-questions.html -
How long can I keep the updates that are added to my computer
If they can be taken how know which I should keep longer than others
Do not uninstall the updates that have been installed in your operating system.
If you do, you're interfering with the security and performance of your operating system.
This is the reason for security and performance updates are installed: enforce your operating system safely and to its ability to best...
See you soon. Mick Murphy - Microsoft partner
-
I spent 3 hours this afternoon trying to get help from the cat but nothing is fixed. I have photoshop, lightroom, and bridge. Updates to Lightroom and bridge agree. How can I reinstall the CC PS before the update? My Macbook Pro is not able to manage it, maybe... being older video card. I have a backup on my external hard drive, but it does not work correctly if I'm well obviously not doing it correctly. I'm not all that technical, but I can follow the exact instructions.
My Office CC is not any 'previous Versions' of applications so I can't take it back to 2014 version.
Please can someone help get this sorted out? I would really appreciate it.
Relocation of can be worth a try, Yes...
-
Hello! I ve a problem with the complete abo... How can I activate illustrator after regulation time? the complete abo is already saved for the last month...
[Duplicate message deleted... post the same question more than once is confusing... MOD]
[This is an open forum, not a direct line to Adobe support... you have to wait a response]
Hello
Please see: -.
https://helpx.Adobe.com/manage-account-membership/CC-reverts-to-trial.html
Maybe you are looking for
-
Update BIOS on Satellite A200-1N2
Hello I have a computer laptop satellite A200-1N2 equipped with window vista 32 I met a problem and window he corrected and showed me this msg: -. Your computer has encountered a problem which can be caused by the computer system's basis of input/out
-
HP Pavilion g7: new hard drive; can I reinstall Windows?
Go mobile g7 of a parent, I bought for her a few years; but the hard drive is a mess, (I can't understand how to wipe or format... etc... loads of shit, malware, etc., etc.) Hell with all that, if I will just get the hard drive and install. better to
-
I run windows xp pro sp3 x 86
-
age of empires II gold edition does not start message is windows has encountered a problem
Computer crash to reinstall factory disc. Have reinstalled Age of Empires II gold Edition, but it does not start, the message of windows is windows has a problem and we will contact you as soon as a solution is available.
-
HelloI did as you read information from a text file in my dynamic stamp.I try simple:Event.Value = this.importTextData ("/ c/temp/pdf.txt", 0)But this is not goog, have an idea?