Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

updated information about DB

 
Santosh Maskar
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i need to find the updated table from the Database

for eg
my database have a list of tables, and out of these some are frequently updated , how i can find the list of table that was updated busing JDBC can any one know how to track the updated table


after than i need to take a backup of only updated table.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no way in SQL to do this I know of. However if you want to back up a DB, archiving only the changes since the last back up rather than the whole thing, most DBs have their own tools to do this. Check your DB docs.
 
Nicolas Stern
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

This is certainly different among different db systems. On Oracle, the last update time on a table is not maintained in the dictionnary

One way could be to maintain a timestamp in your records, e.g. using a trigger.

Or you can proceed to a log analysis, using a logminer tool.

HTH - Nic
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic