Created and Last updated IDs
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Created and Last updated IDs

  1. #1
    Join Date
    Mar 2006
    Posts
    1

    Created and Last updated IDs

    Hi,

    Does Oracle have any function which can help me keep track of whose has inserted(created) a row and whose has updated the same row latest?
    Uptill now, I am doing it via a bit of coding, but are there any functions which help me do the same?

    Suresh

  2. #2
    Join Date
    Feb 2003
    Location
    London
    Posts
    170
    You could have a date stamp field in the table and a trigger to update this field each time any data manipulation like insert or update is done.
    thomasp

  3. #3
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,684
    If you want something "out of the box", I guess the best option is to use Auditing, specifically Fine Grained Auditing (FGA):

    http://www.oracle-base.com/articles/...ained_auditing

    Then again, there is nothing wrong with the previous suggestion. I use it myself on occasion

    Cheers

    Tim...
    Tim...
    OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
    OCA PL/SQL Developer
    Oracle ACE Director
    My website: www.oracle-base.com
    My blog: www.oracle-base.com/blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width