DDL ,DML on ables & Views
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 8 of 8

Thread: DDL ,DML on ables & Views

Hybrid View

  1. #1
    Join Date
    Jan 2002
    Posts
    16

    DDL ,DML on ables & Views

    Hi All ,

    Is there any way to find out the last DDL or DML statement on a view or table ? I need a date and time that the DML or DDL executed on a table or view.....

    We have number of unnecessary tables created in a schema and want to drop them from the database.....

    Thanks,
    San

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,331
    you can get last ddl from dba_objects

    last dml you would need auditing I guess

  3. #3
    Join Date
    Jan 2003
    Location
    Hull, UK
    Posts
    220
    select * from user_objects where object_name='TABLENAME'

    check out the last_ddl_time column.

    not sure of the DML stuff..

    Srini

  4. #4
    Join Date
    Jan 2002
    Posts
    16

    DDL ,DML on tables & Views

    Thanks you All .....

    I need the DML info on the tables , Putting audit on all users in the database and searching for these tables in the audit files is a cumbersome process and also resouce intensive...

    Can somebody suggest me a best mothod to do this ?

    Thanks,
    San
    san

  5. #5
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    What you're asking for is naturally going to be resource intensive.

    there was a thread about this at http://asktom.oracle.com a little while ago. You might try searching there.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  6. #6
    Join Date
    May 2000
    Location
    ATLANTA, GA, USA
    Posts
    3,136
    Use logminer.

    Tamil

  7. #7
    Join Date
    Jan 2002
    Posts
    16

    logminer

    Can I use logminer if the database is in Noarchivelog mode ? I don't think logminer can be used....

    Can I audit each table for DML's ? or do I have to audit all the users ?

    Thanks,
    San
    san

  8. #8
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

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