title: Simple ways to note/log the last date/time when a database was updated, accessed, modified etc
body: <p>I made Java/JDBC code which performs simple/basic operations on a database. 
  I want to add code which helps me to keep a track of when a particular database was accessed, updated, modified etc by this program. 
  I am thinking of creating another database inside my DBMS where these details or logs will be stored for each database involved.<br>
  Is this the best way to do it ? Are there any other ways (preferably simple) to do this ? </p>
  
  <p>EDIT-</p>
  
  <pre><code>For now, I am using MySQL. But, I also want my code to work with at least 
  Oracle SQL and MS-SQL as well.
  </code></pre>