-
Query to check when the table was updated
Hello All,
Is there a query that I can run against a table to see when it was updated last? Updation is either adding a new row or column or updating a row.
Thanks,
Kiran
-
no, not unless you store it yourself
-
there's one
FYI:
In Oracle 10gr2, you can do this
SELECT max(SCN_TO_TIMESTAMP(ORA_ROWSCN))
FROM my_table;
I haven't tried that myself.
Thanks,
Kiran
-
Originally Posted by kkkumar
FYI:
In Oracle 10gr2, you can do this
SELECT max(SCN_TO_TIMESTAMP(ORA_ROWSCN))
FROM my_table;
I haven't tried that myself.
For this to work (i.e. to help the original poster to find out the latest modified row), the table should be created with row-level dependency tracking, that is with ROWDEPENDENCIES parameter specified when the table is *created*. Otherwise, the above query will only help you detect which *block* (not row!) was changed during the last transaction.
Jurij Modic
ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|