Flahback table to before an update

db is 10.2.0.4
os is AIX 5L
Hi.
I have run an update on a table.
I can see the update on the v$sqlarea view.
What is the best way to flahback the table to just before this update?
I can see a first_load_time column in the v$sqlarea view.
Should I flashback to this time as timestamp?
tanx

Something like this ?
SCOTT@orcl> create table test(a number(2));
Table created.
SCOTT@orcl> insert into test values(5);
1 row created.
SCOTT@orcl> insert into test values(10);
1 row created.
SCOTT@orcl> insert into test values(15);
1 row created.
SCOTT@orcl> commit;
Commit complete.
SCOTT@orcl> select to_char(sysdate,'dd-mm-yy hh24:mi:ss') time from dual;
TIME
29-06-10 10:26:18
SCOTT@orcl> insert into test values(20);
1 row created.
SCOTT@orcl> insert into test values(25);
1 row created.
SCOTT@orcl> commit;
Commit complete.
SCOTT@orcl> select to_char(sysdate,'dd-mm-yy hh24:mi:ss') time from dual;
TIME
29-06-10 10:26:37
SCOTT@orcl> select * from test
  2  as of timestamp to_timestamp('29-06-10 10:26:18','dd-mm-yy hh24:mi:ss');
         A
         5
        10
        15
SCOTT@orcl> select * from test;
         A
         5
        10
        15
        20
        25
SCOTT@orcl>But, it is not necessary that it will work after 1min, 1hr or 1 day, because it depends on how much undo i am having and workload on database; but yes we can create another table; even after commit, with the above; as of timestamp clause; within a reasonable time period something like :
create newtable as select * from test
as of timestamp to_timestamp('29-06-10 10:26:18','dd-mm-yy hh24:mi:ss');
HTH
Girish Sharma

Similar Messages

  • Taking  USOBX  tables backup before Su25 update

    Hi All,
    Can anyone help me out how to take backup of tables in mycase USOBX * TABLES before updating through SU25.

    >
    Auke Visser wrote:
    > You should not upload these tables. the download should only be used as comparison. any mistakes you find will have to be manually reapplied via SU24, and i doubt there will be much to reapply.
    In the majority of situations I agree.  In the unlikely event of it getting hosed then it would be an option, but it would have to be completely wrecked to even consider it.  D/L the tables "just in case" is a reasonable step to take when doing stuff like this & it keeps your options open.

  • Calling a stored procedure before row update without using triggers

    I have got two tables Main Table(Table1) and History Table(Table2), whenever an update is done on Table1 i want to insert the old row before update to Table2, so that i have history available for that record.
    My doubt is
    how to refer to old value (values b4 update) in a stored procedure?
    how to call a stored procedure b4 every row update(on the database side as we do with tiggers)?
    I want to write a stored procedure where in i will insert the old row values ( value b4 update ) to Table2.
    Any Help would be great....

    sample code calling procedure before insert:
    DriverManager.registerDriver(new someDriver);
    Connection conn = DriverManager.getConnection(driver,uname,pword);
    CallableStatement cs = conn.prepareCall("{call procedureName(?,?)}");
              cs.setString(1,userName);
              cs.registerOutParameter(2,Types.VARCHAR);
              cs.execute();
              success = cs.getString(2);
              PreparedStatement pstmt = conn.prepareStatement("insert into sometable values(?,?)");
              pstmt.setString(1,userName);
              pstmt.setString(2,password);
              pstmt.executeUpdate();     
              conn.commit();      
              cs.close();
           conn.close();

  • How can i say yes to automatic updates when they stop my wireless dlink to Virgin home broadband from getting on the internet and then i have to do a system restore to the day before the update to get it back to normal?!? Frustrated

    how can i say yes to automatic updates when they stop my wireless dlink to Virgin home broadband from getting on the internet and then i have to do a system restore to the day before the update to get it back to normal?!? Frustrated
    == This happened ==
    Not sure how often
    == automatic updates go on my computer, say if i click yes to update when shutting down

    You have 10.6 on that machine, I suggest you stick with it for performance, third party hardware and software reasons as long as possible.
    Consider 10.8 (not 10.7) when it's released, because 10.7 and 10.8 will require a new investment in software and newer third party hardware as it requires newer drivers the old machines won't have. (forced upgrade because of software, really nice of them)
    http://roaringapps.com/apps:table
    Far as your Safari problem do these things until it's resolved:
    1: Software Update fully under the Apple menu.
    2: Check the status of your plug-ins and update (works for all browsers) also install Firefox and see if your problems continue. You should always have at least two browsers on the machine just in case one fails.
    https://www.mozilla.org/en-US/plugincheck/
    Flash install instructions/problem resolution here if you need it.
    How to install Flash, fix problems
    3: Install Safari again from Apple's web site
    https://www.apple.com/safari/
    4: Run through this list of fixes, stopping with #16 and report back before doing #17
    Step by Step to fix your Mac

  • After downloading the update ios7 my moms phone has been locked with a four digit security code that she didn't have before the update. So she is locked out of her phone. How do I get rid of the four digit code

    HOw do I unlock the phone if there was never a lock code on there before the update?

    Yep.  Same here.  There's a NEW feature in iOS7 for Find my iPhone.  It requires a passcode.  My wife never had a passcode and doesn't have her computer to restore the backup.
    Spent an hour on the phone with customer service last night trying to restore the phone to factory settings but it didn't allow us access.
    Right now we have a 9-month old brick sitting on the table.
    Who in their right mind decided to release this feature that requires a passcode without checking first to see if the user has a passcode?
    I was not really polite to the support staff last night on the call but the person was very professional.  Kudos to how he handled my call but this is just stupid.  So Microsoft-like, so un-Apple-like.
    This feature with this iOS rollout is a big failure and my wife, who didn't want an iPhone until she got (and loved it) but is now out looking for an Android device.  Apple has lost a customer that they had only recently won over.
    #epicfail

  • Table PA0045 is getting updated but data is not getting displayed in Infty

    Hi,
             When i save entries for any employee in Infty 0045 , the table pa0045 is getting updated with the record.
              But FOR FEW USERS, who created the record, the data is not getting displayed in one tab of the tabstrip bur rest tabs are filled with data. Its the case with few users only .
    Regards,
    Jyoti

    Check if there is proper data to be shown in the tabstrip.
    EX.. Loan Amount Granted in the Tabstrip Basicdata ...

  • Base table is not getting updated

    Hi friends,
    am trying to update the attribute18 from the per_vacancies table by adding 1 to it
    when am running the concurrent program it is not updating the table
    what might be the reason
    this is my code
    CREATE OR REPLACE PACKAGE BODY apps.update_vacancy_pkg
    IS
    PROCEDURE update_vacancy_prc (p_err_buf OUT VARCHAR2, p_ret_code OUT NUMBER)
    IS
    l_object_version_number per_vacancies.object_version_number%TYPE;
    l_vacancy_id per_vacancies.vacancy_id%TYPE;
    l_inv_pos_grade_warning BOOLEAN;
    l_inv_job_grade_warning BOOLEAN;
    l_validate NUMBER := 0;
    l_assignment_changed NUMBER;
    l_return_status VARCHAR2 (240);
    l_openings VARCHAR2 (240);
    l_err_msg VARCHAR2 (200);
    l_vac_id per_vacancies.vacancy_id%TYPE;
    l_attr VARCHAR2 (100);
    l_attr1 VARCHAR2 (100);
    l_attr2 VARCHAR2 (100);
    l_attr3 VARCHAR2 (100);
    l_attr4 VARCHAR2 (100);
    BEGIN
    BEGIN
    SELECT object_version_number, attribute7, vacancy_id
    INTO l_object_version_number, l_openings, l_vac_id
    FROM per_vacancies
    WHERE vacancy_id IN (SELECT MAX (vacancy_id)
    FROM per_vacancies);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_vac_id := 0;
    l_openings := 0;
    END;
    BEGIN
    SELECT MAX (attribute18)
    INTO l_attr
    FROM per_vacancies;
    SELECT (REGEXP_SUBSTR (l_attr, '.*C'))
    INTO l_attr1
    FROM DUAL;
    SELECT REGEXP_REPLACE (l_attr, '^.*C(.+)$', '\1')
    INTO l_attr2
    FROM DUAL;
    SELECT TO_NUMBER (l_attr2) + 1
    INTO l_attr3
    FROM DUAL;
    SELECT l_attr1 || l_attr3
    INTO l_attr4
    FROM DUAL;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_attr4 := 0;
    END;
    l_object_version_number := 0;
    l_assignment_changed := 0;
    l_return_status := 0;
    per_vacancy_swi.update_vacancy
    (p_validate => l_validate,
    p_effective_date => SYSDATE,
    p_vacancy_id => l_vac_id,
    p_object_version_number => l_object_version_number,
    p_number_of_openings => l_openings,
    p_budget_measurement_value => l_openings,
    p_attribute18 => l_attr4,
    p_assignment_changed => l_assignment_changed,
    p_return_status => l_return_status
    COMMIT;
    fnd_file.put_line (fnd_file.LOG, 'Executed Vacancy' || l_vac_id);
    fnd_file.put_line (fnd_file.LOG,
    'Assignment chaged = ' || l_assignment_changed
    fnd_file.put_line (fnd_file.LOG, 'Return Status = ' || l_return_status);
    fnd_file.put_line (fnd_file.LOG, 'l_attr4= ' || l_attr4);
    END;
    END;
    it is hsowing in the log file with 1 added to the attribute18
    but the table is not getting updated
    can some one of you suggest a solution pls
    thanks
    Edited by: 776317 on Apr 27, 2011 9:15 PM
    Edited by: 776317 on Apr 27, 2011 10:01 PM

    but how come the seeded api has this
    PROCEDURE update_vacancy
    (p_validate in number default hr_api.g_false_num
    ,p_effective_date in date
    ,p_vacancy_id in number
    ,p_attribute17 in varchar2 default hr_api.g_varchar2
    ,p_attribute18 in varchar2 default hr_api.g_varchar2
    .);Enable trace/debug, this may give you an idea about the data which is not saved.
    Thanks,
    Hussein

  • HT4623 Please  help!  i have just update my iphone 4s with 7.4 update and my phone is now asking for a password which i dont have.  I have tried my keypad lock i used before the update and also my itunes password and neither work, how do i rectify this ??

    Please  help!  i have just update my iphone 4s with 7.4 update and my phone is now asking for a password which i dont have.  I have tried my keypad lock i used before the update and also my itunes password and neither work, how do i rectify this ???

    Did you buy this iPhone new from an authorized seller?

  • Hi, I bought an Ipod touch in Dubai. When I upated to iOs 6, everytime I would download an app it will says that it's not available in the emirates store. i should change to US store. but before i updated to iOs 6 i have been successfuly downloading apps.

    Hi, I bought an Ipod touch in Dubai. When I upated to iOs 6, everytime I would download an app it will says that it's not available in the emirates store and  I should change to the US store. But before i updated to iOs 6 i have been successfuly downloading apps. Please help because now I cannot really use it.

    How to Change Your App Store Account Location | eHow.com
    Your account, including payment method also has to be associated with the USA when you are in the USA.

  • The new updated version of iMovie 10 won't let me open my previous files I created before the update today. I have a wedding that I'm trying to finish and deliver and now I can't because that file version won't open. I keep getting an error message

    Hello,
    Please help me figure this out. I'm very unhappy at the moment. I'm fustrated and don't have any idea how to revert to the original version before the update was done on iMovie 10. I NEVER hated APPLE until NOW!! I love APPLE products and apps so please help me stay in that mindset. So I worked on some movie projects when I got my macbook pro 6 months ago. I update reguarly. I saw the update prompt and honestly, I did not think I would have ANY issuess with opening my previous files that I created only a few months ago with this updated version.The new updated version of iMovie 10 won't let me open my previous files I created before the update today. I have a wedding that I'm trying to finish and deliver and now I can't because that file version won't open. I keep getting an error message and the iMovie app closes. Last night I saw the file and tried to open it but no luck. Error message came up again. I reboot and turned off my laptop for the evening and tried again just now but nothing!! I need that video. My job depends on it! I worked so hard on this wedding video and now it's lost and won't open. I work another job and don't have much time. I really don't want to start all over again. Please help me. Thanks so much for your assistance.
    Fustrated APPLE customer
    Jolly A. Rupp

    I also have Jolly's problem. I found the iMovie 9.0.9 folder and tried to launch the older version of iMove. It would not launch. I removed all of the iMovie preferences from the Preferences folder, removed iMove 10 from the applications folder, and restarted my Mac. iMove 9.0.9 still won't launch and I can't access my videos created with the older version of iMovie. Is there a way to uninstall iMovie 10 and reinstall iMovie 9.0.9?
    I am running Yosemitie on a  iMac.
    Paul

  • I updated to iOS 7 and now some of my apps won't display in landscape mode and they did before the update. Any ideas on how to fix it?

    I updated to iOS 7 and now some of my apps won't display in landscape mode and they did before the update. Any ideas on how to fix it?

    This could be from having restrictions enabled. Icons completely disappear when "restricted"

  • I updated Firefox and now it will not open at all. The hourglass shows that it's working but then nothing. I went to add/remove and removed mozilla and reinstalled it and still the same thing. It worked fine before I updated.

    I updated Firefox and now it will not open at all. The hourglass shows that it's working but then nothing. I went to add/remove and removed mozilla and reinstalled it and still the same thing. It worked fine before I updated. Now I can't even remove the program at all. Why is this happening?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • HT5622 The Game Center used to work with my Apple ID before I updated to iOS 7.4, I used to play multiple player with EA Real Racing 3 game but it doesn't work at all and every time I tried to go to the Game Center it's just blank, even to the settings no

    The Game Center used to work with my Apple ID before I updated to iOS 7.4, I used to play multiple player with EA Real Racing 3 game but it doesn't work at all and every time I tried to go to the Game Center it's just blank, even to the settings nothing!

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Go to Settings>Game Center and sign out and sign back in
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             

  • Before I updated to ios5 there was a "number" on the task bar next to bookmarks showing all the windows I like to keep open. Now I can't find the setting to go back to that feature. Help!! I just want to be able to click on the number to get to my windows

    Before I updated to ios5  there was a number lit up on the task bar (next to bookmarks) which were all the windows I like to keep open. Now, after updating I can't find that feature in settings. I don't like all the different tabs along the top. Can anyone help me please?? I just want to click on the number and have all of my open windows there!

    I don't think that is an option. iOS 5 new features is tabbed browsing, it replaced the old window interface.

  • How to dynamically change the table name for a update statement

    Hi All,
    I need to update a coulumn xyz in either of tables abc and efg based on some condition.
    I wrote a cursor which has union of two queries(one querying abc and other efg)
    Now based on some inparameter only one will be executed at a time.
    And based on some condition a coulumn xyz needs to be updated which is in either of the table.
    As the update condition is same
    Update abc/efg set xyz=data where condition
    I am looking to initialize a variable like v_tname based on some condition and update like
    update v_tname .........
    (Exactly that may not be like so, But looking a technique like this)
    Please help

    If there is only two tables you'll need to update then you are better off using static SQL and implementing something like this instead:
    DECLARE
            update_condition        BOOLEAN;
    BEGIN
            -- initialize update_condition
            update_condition := <some_boolean_check>;
            IF update_condition
            THEN
                    UPDATE abc
                    SET    xyz = some_val
                    WHERE  some_col = some_other_val;
            ELSE
                    UPDATE fgh
                    SET    xyz = some_val
                    WHERE  some_col = some_other_val;   
            END IF;
    END;
    /Hope this helps!

Maybe you are looking for

  • Deadlock

    Dear all, Can anyone help me to resolve deadlock. we are repeatly getting deadlock error in alert log. i know oracle handles it automaticallly to resolve deadlock. is their any way to avoid the same. how to resolve ora-60 . deadlock ? Regards

  • "Error occuredduring submit process, unknown failure"

    I have adobe 9.1.3 and have tried downloading a locked document from my school. However I just got this message and my school says it is something to do with adobe. I did not purchase the product so I can not get any support. I need help!! Thanks

  • Gigabyte Doubling in Tiger?

    I do not know if this is a latest-version iLife '05 problem, a G5 problem, or a Tiger problem. I recently bought a G5 2,7GB DP Power Mac and tried to burn a 110-minute 24.21GB B&W iMovie file to a Disk Image. Selecting "Best Quality" in the preferenc

  • Owner wont remove the icloud password

    I get hold of owner  she said its my problem.. she wont delete the icloud acct on ipad I got it from pawn shop  she sold to pawnshop  then I found the owner  she said she wont give me pw or  remove her icloud on ipad I could  not get on at all .. wha

  • Selecting with a set of codes

    Dear Oracle Gurus I have a table which has details about stage details of appn no the fields are as follows appno, Stge_code, proc_code an application will have Stage code as 1, 2, 3 and process code as 1,2,3 i,e Stage 1 will have 1, 2, 3 process sta