Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to create a java program which tracks the database operations like insertion and updatation etc.

 
srinivas urs
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Friends,

I need to create basic java program which will not use threads or anything else, which has to track the operations (insertion, update and etc., ) on the DB tables.

Please let know if anybody knows.... it is very urgent.

Thanks in advance.

Regards,
Srinivas
 
Bert Bates
author
Sheriff
Posts: 8898
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eh oh,

Let's move this over to Java in General, but remember, we don't hand out solutions here - show us what you've already done and we'll help you go from there.

Bert
 
chris webster
Bartender
Posts: 2407
32
Linux Oracle Postgres Database Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you use log4j to log these operations when they are called from your Java DB interface?

Or you could do this via triggers on the database tables, if your RDBMS (and DBAs) will permit this. Then you can be sure these operations will be recorded, no matter where they are called from.
 
srinivas urs
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks chris... for giving the valuable info... will try
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic