When table last updated

Can i know how to find out/sql query when was the last time oracle table is updated

If you are interested in the timing of the most recently committed INSERTs and UPDATEs, you can find out the SCN of the most recently modified row in the table using this query
SELECT max(ORA_ROWSCN)
FROM <TABLE>Once you have the most recent SCN, you can try to find out what time it corresponds to.
For “recent” SCNs, you can try SCN_TO_TIMESTAMP function.
If SCN_TO_TIMESTAMP does not work for your SCN, you can try to approximate the time using V$ARCHIVED_LOG or other methods.
Again, this procedure would not detect DELETEd records.
Iordan Iotzov
http://iiotzov.wordpress.com/

Similar Messages

  • How can I find out when was a particular table last updated?

    How can I find out when was a particular table last updated? I need to find out the usage of this table - when was it last updated, etc. Thanks in advance. The version I am using is Oracle 9i.

    If you don't have any application level logging, and auditing is not enabled, there's not much hope.
    You could, if you have archive logs available, go trawling through archive logs via logminer, but that's likely to prove painful and not very fruitful, unless you're very meticulous and patient...
    -Mark

  • Query for the table last updated

    hi,
    how to know the time and date a table last updated?
    Regards
    Raj

    Raj,
    Query DBA_OBJECTS, here is an example:
    SQL> SELECT OBJECT_NAME, LAST_DDL_TIM, TIMESTAMP
    FROM DBA_OBJECTS
    WHERE OBJECT_NAME = 'FND_USER'
    AND OBJECT_TYPE = 'TABLE';

  • OA Framework Attachment Table Last Updated Column Format

    Hi,
    Tired multiple ways to get date time stamp for column Last Updated in Attachment table,
    In standard display ,it shows as DD-Mon-YYYY ,requirement is to display Last Updated Column as DD-Mon-YYYY HH:MI:SS.
    Can we have default sort on the title on the table.
    Please advise.
    Thanks,Sarath.

    Thanks Kali for the reply.
    Let us consider notification list seeded page, which lists the notifications. This notification table has a column called "Sent" which shows the date (and not the time) when this notification was sent. I also want to see time part in this. Type of the column is MessageStyledText. I can't change type from Date to DateTime as you suggested, via personaliztion. Can I?
    If I can't change it via personalization, should I do it via controller extension?
    regards, Yora

  • Table - Last Updated Timestamp

    Hi,
    I have one use case, for this I want to know Last updated Timestamp for all the Tables in one schema.
    Can you please help me to get the SQL Query for this?
    Regards,
    Muthu

    Hi Muthuraman,
    Try this SQL. You can try filtering STATEMENT_STRING with any operation as per your requirement. Here my sql will get all the INSERT queries to "MY_SCHEMA"."MY_TABLE" and their execution time. Similarly you can try with UPDATE, DELETE, DROP, etc.
    SELECT STATEMENT_STRING, LAST_EXECUTION_TIMESTAMP FROM M_SQL_PLAN_CACHE
    WHERE STATEMENT_STRING LIKE 'INSERT INTO "MY_SCHEMA"."MY_TABLE"%'
    ORDER BY LAST_EXECUTION_TIMESTAMP;
    Regards,
    Chandra

  • When was last update to MacPro line?

    My MacBook is almost 3 years old and am contemplating a new laptop. I would rather buy a new model than one that will soon be replaced with a better version. How long has it been since the MacPro line was last updated? Just trying to figure out if I have a long wait until new models might be released.

    The rumor site contains considerably more information. For example, the Mac Pro was las updated March 3, 2009 (386 days ago). The site tells you that Apple has released 11 updates to the product, the average interval between updates is 236 days. The longest interval between updates was 14 months, and the shortest interval was 5 months.
    The site also covers other Apple products. For example, the poster asked about the Mac Pro in the MacBook Pro forums, so it's unclear whether he's looking for Mac Pro or MacBook Pro information -- both of which are presented on that site.

  • Dynamic update  of cursor records when table gets updated

    Hi,
    I am having a table with 4 columns as mentioned below
    For a particular prod the value greater less than 5 should be rounded to 5 and value greater than 5 should be rounded to 10. And the rounded quantity should be adjusted with in a product starting with orderby of rank with in a prod else leave it
    Table1
    Col1     prod     value1     rank
    1     A     2     1          
    2     A     6     2
    3     A     5     3
    4     B     6     1
    5     B     3     2
    6     B     7     3
    7     C     4     1
    8     C     2     2
    9     C     1     3
    10     C     7     4
    Output
    Col1     prod     value1     rank
    1     A     5     1          
    2     A     5     2
    3     A     3     3
    4     B     10     1
    5     B     0     2
    6     B     6     3
    7     C     5     1
    8     C     5     2
    9     C     0     3
    10     C     4     4
    I have taken all the records in to a cursor. Once after rounding the request of 1st rank and adjusting the values of next rank is done. Trying to round the value for 2nd rank as done for 1st rank. Its not taking the recently updated value(i,e adjusted value in rounding of 1st rank).
    This is becoz of using a cursor having a value which is of old value.
    Is there any way to handle such scenario's where cursor records gets dynamically updated when a table record is updated.
    Any help really appreciated.
    Thanks in Advance

    Hi,
    Below is the scenario. Which I am looking for.
    ITEM_ID(A)
    ITEM_ID Value Date
    A          3     D1     
    A          5     D2
    A          3     D3     
    A          5     D4
    A          3     D5     
    A          5     D6
    Rounding for Item A has to be done for the rows less then D2 and rounding value is
    x and value adjustment to be done from very next row.
    --For record D1 rounding to be done and value adjustment is to be done from D2 to till the end untill the adjustment value is 0.
    --For record D2 (updated value has to be taken from rounding which updated in D1 row rounding) and the adjustment has to be done from very next row D3 to till the end or adjustment value is o.
    --For D3 row onwards no rounding has to be done.
    ITEM_ID(B)
    B          7     D1     
    B          8     D2
    B          9     D3     
    B          5     D4
    B          4     D5     
    B          3     D6
    Rounding for Item has to be done for the rows less then D3 and rounding value is
    y and value adjustment to be done from very next row.
    --For record D1 rounding to be done and value adjustment is to be done from D2 to till the end untill the adjustment value is 0.
    --For record D2 (updated value has to be taken from rounding which updated in D1 row rounding) and the adjustment has to be done from very next row D3 to till the end or adjustment value is o.
    --For record D3 (updated value has to be taken from rounding which updated in D2 row rounding) and the adjustment has to be done from very next row D4 to till the end or adjustment value is o.
    --For D4 row onwards no rounding has to be done.
    Thanks in Advance
    Edited by: unique on Apr 16, 2010 11:20 PM

  • Update form when table is updated

    Hi experts,
    I am quite new to apex and i have come across an issue. I have created a table with 10 columns and from that created a form/report.i have to update my table by adding new columns but i can't get my report updated.
    i have manually included the field in my sql query but tat didnt seem to work.
    is there anywhere i should change to get my form and report updated.your advice would be very appreciated. thanks
    kevin

    Hi,
    Normally, the report would just update automatically to include new columns - usually these are placed at the end of the list of columns. If you edit your report region and click on the Report Attributes tab, do you see your new columns there? If so, is the Show checkbox ticked for them? If it isn't, tick it. If you click on the Edit icon next to a missing column, what "Display As" is set - is it "Standard Report Column"?
    Or, are you using an Interactive Report? If so, you would need to run the page, click the Action icon and then select "Select Columns" and make sure that every column is listed on the right.
    Andy

  • Problem: insert id, when table is updated

    Hello,
    I have a Problem:
    I have an external table which is permanently updatet and I access this table by a database link.
    My problem is, that this table hasn't got an ID column,but I need one to build an interesting Application. So my idea is, to create a view in which you can see the main table through the database link and an column with an ID....
    But this ID must be updatet permanently when a new row is insertet into the main table!
    I hope you understand what I mean....
    And I hope you can help me!
    Thanks,
    Tim

    You can use Sequence for this.
    SQL> CREATE SEQUENCE SEQ_1 INCREMENT BY 1
      2  /
    Sequence created.And use a trigger before insert.
    CREATE OR REPLACE TRIGGER TRG_TAB1_BRI
    BEFORE INSERT
    ON TABLE_1 -- Your table
    FOR EACH ROW
    BEGIN
        SELECT SEQ_1.NEXTVAL
        INTO :NEW.ID  -- Your ID Column
        FROM DUAL;
    END;Sarma.

  • When will firefox let me add back my google tool bar which i lost when i last updated firefox

    the question is self explanatory

    Google decided that they will no longer produce the Google Toolbar for Firefox beyond Firefox 4.
    *http://googletoolbarhelp.blogspot.com/2011/07/update-on-google-toolbar-for-firefox.html
    *http://www.google.com/support/toolbar/bin/answer.py?answer=1342452&topic=15356%29
    Alternatives:
    *http://kb.mozillazine.org/Using_Google_Toolbar_features_without_toolbars
    *https://addons.mozilla.org/en-US/firefox/addon/googlebar-lite/
    *https://addons.mozilla.org/en-US/firefox/addon/gbookmarks-google-bookmarks-fo/
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • When firefox last updated, it would no longer open. I have tried several times to do clean install. Removed folders, emoved registry files associated with firefox. I did a system restore, which seemed worse. Now back to original problem. This error mess

    After uninstalling program, I have also deleted all folders in program flolder associated with mozilla firefox; However the last time none had been put there. Also went into registry and deleted firefox named files. Now just going in circles.
    == This happened ==
    Every time Firefox opened
    == update downloaded a few days ago and computer restarted.

    A possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that, maybe after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox.
    See [[Firewalls]] and http://kb.mozillazine.org/Firewalls

  • Last update does not work with Ford Sync with Applink

    Spotify has been working all right with the Ford Sync with applink in my car (C-MAX, late 2014). However, with the last update of the Spotify app from Play Store, just a few days ago, it has stopped working, because it is not detected by the car. Even when manually searching for applink enabled applications, it can't be found. It' really a pity, because it had worked perfectly until now, and it is a really impressive feature which I would definitely like to use again.
    My phone is a Samsung Galaxy S3 mini, with Android 4.3 and the latest version of the Spotify app (2.2.0.636). I am a premium user from Spain.
     

    Our current situation is that my wife's phone connects via the AppLink to Spotify and shows track listings but doesn't allow shuffling or playlists to be displayed, she controls it via the phone if she wants to change playlists. My phone has connected once since I first posted to Spotify which came up with "Spotify powered by Ford" on my phone screen and allowed me to do absolutely everything you desired via the Spotify AppLink and "froze" all interactions directly with the phone, absolutely everything!!! Now it is back to not even detecting Spotify so have to connect via BT Audio. It has been like this for several months now however the most recent update (last week?) means that I now get track info up on the display! Twice however the display showed the first track only and once that finished and the next began, the display still showed the original track. Ironically at the same time, our 2010 Focus also began showing the correct track info on the display, this is the first time in the whole 5 years we've owned the car that my phone has displayed track info on the Focus, my wife's phone has always done it! I have found out that although we both have Samsung S3s that we got via carphone warehouse on the same day, hers is always one software update behind mine so never has the most recent OS. Strangely though, when I last updated my OS she also had notification to upgrade, she did, and she still is one behind me! I think there is something far more sinister in all of this but at least I get my tunes in the car, if not in the most desired way.
    My overall opinion is that it is a great system if you have the right OS/phone it works great (I know someone with a 2015 model having the same issue with their i-Phone) however the continuing upgrading of OS and App means that the system isn't always compatible and never will be until they allow auto-upgrading via the Bluetooth connection and therefore phone internet connection in the UK. Apparently the US models all allow you to download the most recent software for the radio onto a USB stick and just plug it in to upgrade. Annoying.

  • Last update condition...

    Hi All
    I need to select the records who's last update date less than ( sysdate-90/1440)
    {Query}
    SQL> select present.object_type, present.object_id
    2 from (select cb2.object_type, cb2.object_id, incident_status_name,
    3 incident_severity_name
    4 from cs_brm_3d_service_request_v cb2,
    5 cs_incidents_all cia,
    6 jtf_rs_groups_vl jrgv
    7 where cb2.record_status = 'present'
    8 and (cb2.incident_id = cia.incident_id)
    9 and cb2.incident_severity_name = 'emergency'
    10 and cb2.incident_type_name = 'rts customer service request'
    11 --and cb2.incident_status_name = 'open'
    12 and cia.status_flag = 'o'
    13 and cia.owner_group_id = jrgv.group_id
    14 and jrgv.group_name in ('rts', 'rtm', 'rtn')
    15 and cb2.close_date is null
    16 and ( cb2.last_update_date <= (sysdate - 90 / 1440)
    17 or exists (
    18 select 1
    19 from jtf_tasks_b jtb
    20 where jtb.source_object_id = cb2.incident_id
    21 and jtb.last_update_date <= (sysdate - 90 / 1440)
    22 and jtb.last_update_date =
    23 (select max (last_update_date)
    24 from jtf_tasks_b
    25 where source_object_id = cb2.incident_id))
    26 or exists (
    27 select 1
    28 from fnd_attached_documents fad
    29 where pk1_value = cb2.incident_id
    30 and fad.last_update_date <= (sysdate - 90 / 1440)
    31 and fad.last_update_date =
    32 (select max (last_update_date)
    33 from fnd_attached_documents
    34 where pk1_value = cb2.incident_id))
    35 or exists (
    36 select *
    37 from jtf_ih_activities jih
    38 where jih.doc_id = cb2.incident_id
    39 and jih.last_update_date <= (sysdate - 90 / 1440)
    40 and jih.last_update_date =
    41 (select max (last_update_date)
    42 from jtf_ih_activities
    43 where doc_id = cb2.incident_id))
    44 )) present;
    {end Query}
    here tables jtb,fad, jih are may or may not have records..
    Could you please suggest me how can i do this..
    Thanks
    Ravula

    Hi Frank, thanks for your quick response..
    I need to check jtb,fad,jih tables last update also, these tables may or mayn't have records..
    16 and ( cb2.last_update_date <= (sysdate - 90 / 1440)
    17 or exists (
    18 select 1
    19 from jtf_tasks_b jtb
    20 where jtb.source_object_id = cb2.incident_id
    21 and jtb.last_update_date <= (sysdate - 90 / 1440)
    22 and jtb.last_update_date =
    23 (select max (last_update_date)
    24 from jtf_tasks_b
    25 where source_object_id = cb2.incident_id))
    26 or exists (
    27 select 1
    28 from fnd_attached_documents fad
    29 where pk1_value = cb2.incident_id
    30 and fad.last_update_date <= (sysdate - 90 / 1440)
    31 and fad.last_update_date =
    32 (select max (last_update_date)
    33 from fnd_attached_documents
    34 where pk1_value = cb2.incident_id))
    35 or exists (
    36 select *
    37 from jtf_ih_activities jih
    38 where jih.doc_id = cb2.incident_id
    39 and jih.last_update_date <= (sysdate - 90 / 1440)
    40 and jih.last_update_date =
    41 (select max (last_update_date)
    42 from jtf_ih_activities
    43 where doc_id = cb2.incident_id))
    Thanks
    Ravula

  • How to find out when a table was last updated?

    Is there a way to find out when a table was last updated/inserted/deleted? Thanks!

    There may be an easier way but if you are trying to get info on something that has already happened look at your redo logs and archived logs. It would be hard but in V$LOGMNR_CONTENTS you could find the max time for a given object. Note to use this you need to set up log miner. Since you did not give a version try the Oracle 9i DBA Guide pg 9-1.

  • Sql statement for retrieving the last update time of a table

    Hello all,
    Can somebody give me an example of sql statement for retrieving the last update time of an oracle table.
    Thank you
    Il

    Thanks for the fast replies. It works great when I test it as a sql statement but when trying to populate a datalist with it it raises the following exception:
    Exception Details: System.ArgumentException: SCN_TO_TIMESTAMP(MAX(ORA_ROWSCN is neither a DataColumn nor a DataRelation for table DefaultView
    Part of the Datalist Code:
    ItemTemplate>
    Line 12:             SCN_TO_TIMESTAMP(MAX(ORA_ROWSCN)):
    Line 13:             <asp:Label ID="SCN_TO_TIMESTAMP_MAX_ORA_ROWSCN__Label" runat="server" Text='<%# Eval("[SCN_TO_TIMESTAMP(MAX(ORA_ROWSCN))]") %>'>
    Line 14:             </asp:Label><br/>
    Line 15:             <br/>
    {code}
    Why is this happening? Any ideas?
    Il                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Adobe Acrobat 8 standard - crash when print pdf with watermark

    it is the EXACT same issue as this: http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402928&sliceId=1 the problem is, the steps indicated here to fix the problem in solution 1, do not apply to STANDARD, even though it says it does. Solutio

  • Music app will not open on ipad 3 after syncing

    music app will not open on ipad 3 after syncing

  • I cant open Itunes

    When i try to start itunes this message pops up The Itunes application could not be opened.You do not have enough access privileges for this operation. I tried to reinstall but it still pops up. I have windows 7 x64. What should i do?

  • Iphone and Scientific Notation

    I have a problem with my new iphone's calculator. When I go to the scientific calculator it does not go into scientific notation mode. I could have sworn that when I was at the apple store a month ago that the same calculator on the floor that I chec

  • Rotation doesn't preview in CC

    Hi All, I cant seem to get the rotate CSS transform to preview in DreamWeaver. It shows in IE11 but not many browsers seem to support rotate yet. cheers Roen