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

Thread: How to know if a table is used ?

  1. #1
    Join Date
    Sep 2000
    Posts
    64
    Hello,

    I would like to know if a table is used or not (Select order against this table). I intend to query every hour for instance the v$sqlarea and search on sql_text the name of the table...
    Do you know a better way to see if a table is queried by users ?

    Thanks in advance

    Sofiane
    Sofiane

  2. #2
    Join Date
    Feb 2001
    Posts
    389
    Hi,

    Many options:

    1) 8.1.6 , u can enable table monitoring and then query dictionary views
    alter table d monitoring;
    You have to wait for few hours for result to show and also u have to enable it for each table.
    select * from user_tab_modifications;

    Very tedious.

    2) query v$db_object_cache

    select owner,name,loads
    from v$db_object_cache
    where type='TABLE'
    order by owner

    3) query x$bh (8.1.6) and match object type with dba_objects

    Thanks
    GP

  3. #3
    Join Date
    Apr 2000
    Location
    Baltimore, MD
    Posts
    759
    Audit the table

  4. #4
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    Rename the table and wait for the telephone to begin ringing.... ;)
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

  5. #5
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    Thats funny ! Can be done if its Development...
    Reddy,Sam

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