| | |
last modified date of a table
Please support our Oracle advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Hello pilpil,
Thanks for reply.
but I am not getting any records when selecting from all_tab_modifications or user_tab_modifications.
I tried connecting to both sys and system user. In system user I have created one table TEST and inserted some rows.
SQL> select * from all_tab_modifications where table_name = 'TEST';
no rows selected
Please respond soon!
Thanks,
BMantri
Thanks for reply.
but I am not getting any records when selecting from all_tab_modifications or user_tab_modifications.
I tried connecting to both sys and system user. In system user I have created one table TEST and inserted some rows.
SQL> select * from all_tab_modifications where table_name = 'TEST';
no rows selected
Please respond soon!
Thanks,
BMantri
•
•
Join Date: Nov 2007
Posts: 51
Reputation:
Solved Threads: 9
If the table has been modified recently and is 10g, you can try
select scn_to_timestamp(max(ora_rowscn))
from test;
Think I've seen things say it's only up to 5 days you can use this.
If you need to and can modify the database, you could always create your own version of the user_tab_modifications by putting an INSERT/UPDATE/DELETE trigger on the tables you want to track and create a small table which holds the same sort of data as the user_tab_modifications does.
Nige
select scn_to_timestamp(max(ora_rowscn))
from test;
Think I've seen things say it's only up to 5 days you can use this.
If you need to and can modify the database, you could always create your own version of the user_tab_modifications by putting an INSERT/UPDATE/DELETE trigger on the tables you want to track and create a small table which holds the same sort of data as the user_tab_modifications does.
Nige
Hello Nige,
Thanks a lot for your valuable suggestion. It is working with some of my tables but for others it is giving the following error.
SQL> select scn_to_timestamp(max(ora_rowscn)) from SLB_FILE_ATTACHMENTS
2 ;
select scn_to_timestamp(max(ora_rowscn)) from SLB_FILE_ATTACHMENTS
*
ERROR at line 1:
ORA-08181: specified number is not a valid system change number
ORA-06512: at "SYS.SCN_TO_TIMESTAMP", line 1
Do you have any idea about this error and how can I find the last modified date for this kind of tables?
Please help me to fix this issue.
Many many Thanks,
BMantri
Thanks a lot for your valuable suggestion. It is working with some of my tables but for others it is giving the following error.
SQL> select scn_to_timestamp(max(ora_rowscn)) from SLB_FILE_ATTACHMENTS
2 ;
select scn_to_timestamp(max(ora_rowscn)) from SLB_FILE_ATTACHMENTS
*
ERROR at line 1:
ORA-08181: specified number is not a valid system change number
ORA-06512: at "SYS.SCN_TO_TIMESTAMP", line 1
Do you have any idea about this error and how can I find the last modified date for this kind of tables?
Please help me to fix this issue.
Many many Thanks,
BMantri
•
•
Join Date: Oct 2009
Posts: 1
Reputation:
Solved Threads: 0
0
#6 Oct 12th, 2009
Last edited by peter_budo; Oct 13th, 2009 at 5:07 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)
![]() |
Similar Threads
- Open In New Window Php (PHP)
- Convert date to timestamp format (VB.NET)
- Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource (PHP)
- how do i get around this (Visual Basic 4 / 5 / 6)
- Help.. my hard drive suddenly run out of space (Viruses, Spyware and other Nasties)
- I need to trace or view that the stored proc is saving the data. (VB.NET)
- Need help with directory displayer code (PHP)
- very important please (C++)
- [B]What changes need to be made to the above database definition in order to solve al (Visual Basic 4 / 5 / 6)
- PHP newbie, project feasibility (PHP)
Other Threads in the Oracle Forum
- Previous Thread: Help cursor/procedure
- Next Thread: which language google made in
| Thread Tools | Search this Thread |
Tag cloud for Oracle
2009predictions acquisition amazon.com bartz bernanke cia citrix cloudcomputing crm database dell economy editor enterprise enterprise2.0 enterprisesoftware erp federalreserve forbes hp ibm intellipedia internet larryellison layoffs linux loughridge mediawiki michaeljackson microsoft neverland nortel notebooks oil operatingsystem oracle palm rimm saas salesforce sap seagate socialcomputing sql sun sybase technologystocks virtualiron virtualization vmware wiki wikipedia xen yahoo zoho





