954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to select tables that have been updated from last one week

I am facing problem in database.

i want to select tables which have been updated from last one week..

shapam
Newbie Poster
22 posts since Sep 2010
Reputation Points: 10
Solved Threads: 1
 

This is definately a very late reply but just incase some one googled and gets here.

Incase you(Shapam) are still in need of this,
First of, if you are tracking this yourself, you need to have an audit trail table. This table basically keeps records of all activities performed on various tables of your db. You should have a column that records the dates the changes were made.

This means that, you would need to write a query that inserts into the audit trail table everytime changes are made to all tables. Then you could always query the audit trail table.

Also Google Oracle auditing.

seslie
Junior Poster in Training
86 posts since Mar 2010
Reputation Points: 58
Solved Threads: 8
 

thanks for ur reply but this prob already had solved...

shapam
Newbie Poster
22 posts since Sep 2010
Reputation Points: 10
Solved Threads: 1
 

I am facing problem in database.

i want to select tables which have been updated from last one week..

you can also use dba_objects table to get last DDL time. But to get tables based on transaction you should go for audit settings.

try this link

itzarun
Light Poster
38 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

Hello Shapam,
That's good to know, please could you post how you got the problem solved, so I and others can benefit from it? Thanks and also mark as solved once you do.

seslie
Junior Poster in Training
86 posts since Mar 2010
Reputation Points: 58
Solved Threads: 8
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: