DBAsupport.com Forums - Powered by vBulletin
Results 1 to 7 of 7

Thread: Quick question

  1. #1
    Join Date
    Dec 2001
    Posts
    337

    Quick question

    Hi,

    Does anyone know off-hand what view can be used to find when a particular object was last accessed?

    Thanks
    Chucks_k

  2. #2
    Join Date
    Jun 2001
    Location
    Dublin, Ireland
    Posts
    66
    For DDL you can use

    select last_ddl_time from dba_objects where object_name = 'OBJECT'

  3. #3
    Join Date
    Jan 2001
    Posts
    2,828
    For DDL you can use

    select last_ddl_time from dba_objects where object_name = 'OBJECT'

    hmm well that was not the question he asked..

    If you wanna find out when was the table last acessed

    You can do

    a)Auditing

    b)user alter table table_name monitoring

    and then look at user_tab_modifications

    regards
    Hrishy

  4. #4
    Join Date
    Dec 2001
    Posts
    337
    Hi,

    Thanks for those tips. Is there any other way u can find out when the last DML was performed on an object, apart from the methods described above?

    Thanks once again,
    Chucks_k

  5. #5
    Join Date
    May 2001
    Location
    Maryland, USA
    Posts
    409
    There is no other direct method provided by oracle to find out when DML was last performed on a Table. I think LogMiner is the closest help we can get from Oracle. correct me if I am wrong, anyone.
    -- Dilip

  6. #6
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Originally posted by patel_dil
    There is no other direct method provided by oracle to find out when DML was last performed on a Table. I think LogMiner is the closest help we can get from Oracle. correct me if I am wrong, anyone.
    Depends. If your object wasn't accessed in your logminer window, you won't get any results from logminer.

    This has been a thorn in the Oracle software for years. They tried to address this problem with catio, but with limited if questionable results. The best solution is to use 9i's MONITORING capability.
    Jeff Hunter

  7. #7
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    Originally posted by marist89
    This has been a thorn in the Oracle software for years. They tried to address this problem with catio, but with limited if questionable results.
    Khmmm...

    I would say they (quite successfully, with unquestionable results) addressed this problem with database auditing capability a looong time ago, way back in Oracle5 if not even earlier....
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

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