Determinng how many times an index was used

DB Version:10gR2
Is there a way i could determine how many times an index was used? i couldn't find any related columns in user_indexes.

I don't think you can count how many times it's been used. However, you can check whether the index is used or not over a given period by looking at v$object_usage view.
However, you do have to monitor the index usage by issuing
alter index index_name monitoring usage;
However, there is a problem with this view in that the username is always the user who set monitoring on the index.
Solution from metalink is:
select
io.name, t.name,
decode(bitand(i.flags, 65536), 0, 'NO', 'YES'),
decode(bitand(ou.flags, 1), 0, 'NO', 'YES'),
u.start_monitoring,
ou.end_monitoring
from
sys.obj$ io,
sys.obj$ t,
sys.ind$ i,
sys.object_usage ou
where
io.owner# = userenv('SCHEMAID')
and
i.obj# = ou.obj#
and
io.obj# = ou.obj#
and
t.obj# = i.bo#;

Similar Messages

  • If i deleted my history, is there a way you can still tell me how many times a site was visited from my MacBook?

    My history has been wiped out. I would like to know if there is a way i can see how many times a site was previously visited using my MacBook. Pelase advise. Thansk!

    no, i deleted the addresses from my history but was able to pull them up from the cookies. i want to know if i can view how many times the site was viewed ever after it has been deleted out of my history..
    thanks!

  • Find out how many times the application was touched by a particular user

    Hello,
    can anyone please help me out with this issue.
    I want to find out how many times the application was accessed by a particular user,their session IDs for each of the applications in a particular workspace. I am using a role based authorization scheme for my application. I am using Oracle APEX 3.2 version. Are their any underlying APEX tables/Views to find out the above details.
    thanks,
    Orton

    Hi,
    Have you check views APEX_WORKSPACE_ACCESS_LOG and APEX_WORKSPACE_ACTIVITY_LOG
    Regards,
    Jari
    Edited by: jarola on Oct 20, 2010 7:37 AM
    This might help also
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/advnc.htm#CHDDHGJI

  • The last time an index was used

    Hi to all, 
    I would like to know, if there is a way of knowing  the last time an index was used, or what indexes have never been used.
    Regards
    Eduardo Barrios
    Compañía Cervecera de Canarias S.A.
    Tfno.     922 568 246
    Fax.      922 670 600
    Correo   [email protected]

    Hi Eduardo,
    reading through the updates from Thomas and Volker, I was wondering if there was a bug in i5/OS that causes the "Last used date" information in the file description not to be updated properly for indexes. If you have the plan cache dump or database monitor active (i.e. quite current data in ST04), you could do the following to find out if indexes have been used by the SAP system without a proper update in the file description:
    1. List all indexes into a temporary output file:
        DSPFD FILE(R3<sid>DATA/ALL) TYPE(MBR) OUTPUT(*OUTFILE)
              FILEATR(*LF) OUTFILE(QTEMP/DSPFD)
    2. Compare output with database monitor data using STRSQL or SQLUTIL:
        SELECT T1.MBFILE, T1.MBUDAT, T2.QQTIME, T2.QQLIFN
          FROM QTEMP/DSPFD T1, R3<sid>DATA/SQ3001_DB4 T2,
               R3<sid>DATA/SYSINDEXES T3
         WHERE T1.MBFILE = T3.SYSTEM_INDEX_NAME
           AND T3.INDEX_NAME = T2.QQLIFN
         ORDER BY T1.MBUDAT
    If you find indexes, where the "Last Used Date" is smaller than the QQTIME value, you know that the
    file statistics are not updated properly. You could then open a PMR at IBM for that.
    On one of our internal systems I did not see a discrepancy, so it seems to me that the information is correct. Volker's experiences could be explained by the fact that indexes are not just used to implement SQL statements, but also for table statistics. I assume that the "Last used date" is not updated when the index was only used to obtain table statistics. With incomplete statistics, the optimizer may choose a different join order or access method, which can result in poor performance. So there is some risk involved when dropping an index that has a very old "Last used date", and you can only decide it by trying (with care!).
    Kind regards,
    Christian Bartels.

  • How to find that how many times listener is restarted using listener.log

    How to find that how many times listener is restarted using listener.log

    Kishor wrote:
    OS =HP-UX
    RDBMS=Version 8.1.7.4.0
    i didn't find any line in listener.log file containing word "starting"
    grep starting listener.log|wc -l
    0Check when last time listener started, According to that search using that word.
    Example:-
    node1> cat listener.log|grep Started|wc -l
    2
    node1> Edited by: CKPT on Jan 28, 2012 9:49 PM

  • How many times i can purchase using a credit card on the day

    how many times i can purchase using a credit card on the day

    That would depend on the company your credit card is with.

  • How to Check How Many Times FSMO Roles was Changed?

    Thanks Gary!

    Hello guys!
    I'm in a new company and we recently had problems with Primary Domain Controller.
    I had need to seize all FSMO roles from a dead server to another.
    In the past I read a lot of articles and most of them describe that the best practice is to change de FSMO roles once in life.
    I need to know if that is true and if it is a way to know how many times FSMO was changed on a domain.
    Thanks in advance,
    Marcelo.
    This topic first appeared in the Spiceworks Community

  • Is there a way to find exactly when a certain web page was visited? I know if I go to Tools/Page Info, I can see how many times that page was visited, but I would like to know if I can find the exact time and date. Thank you.

    I am using Firefox version 3.6.13

    You can find the last time a web page was visited by using the Library.
    In the History menu select "Show All History" to open the Library. You can use the Library to view the history, and by default it will show the last date & time the site was visited. If the Visit Date column is not visible, within the Library select Views, then Show Columns, then Visit date to display that column.

  • How to see how many times of  index split occured on an index?

    hi gurus
    The ASH reports shows a lot of enq: index contention wait event on an index.I suspect that it's index split that caused the waits. From wht dictionary can I see the times of index split once occured on that index?
    Thanks very much!

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/instance_tune.htm#i16341
    The name of the enqueue is included as part of the wait event name, in the form enq: enqueue_type -  related_details. In some cases, the same enqueue type can be held for different purposes, such as the following related TX types:
        *      enq: TX - allocate ITL entry
        *      enq: TX - contention
        *      enq: TX - index contention
        *      enq: TX - row lock contention
    The V$EVENT_NAME view provides a complete list of all the enq: wait events.
    You can check the following V$SESSION_WAIT parameter columns for additional information:
        *      P1 - Lock TYPE (or name) and MODE
        *      P2 - Resource identifier ID1 for the lock
        *      P3 - Resource identifier ID2 for the lockdoes following SQL return any rows for you?
    SELECT Decode(request, 0, 'Holder: ',
                           'Waiter: ')
           || sid sess,
           id1,
           id2,
           lmode,
           request,
           TYPE
    FROM   v$lock
    WHERE  ( id1, id2, TYPE ) IN (SELECT id1,
                                         id2,
                                         TYPE
                                  FROM   v$lock
                                  WHERE  request > 0)
    ORDER  BY id1,           request; 

  • How many times is my Translation Pattern being used?

    I am running CUCM 8.5.1.  I have about 50 or so translation patterns.  Is there a report that can tell me how many times each translation pattern is being used daily or weekly?

    Here is the entire setup and my problem.
         Service Provider is sending 9725 and 3131. 
         Voice Gateway is doing a Num-Exp to 2604 and 2403  (respectively)
         Then, the Call Manager is doing a translation on both numbers to Route Point 7824 which then triggers UCCX.
    Two numbers for one purpose.  I would like to remove 9725 / 2604 but I'm not sure how many times it is being used.  Are the calls that are hitting my route point coming from 9725 or 3131?  I can't tell since they both are being translated to the same Route Point.
    Whats the best way of finding out?  Thanks for your time guys!!

  • How Many Times Can I Use The Same Serial Number For Adobe Creative Suite 4?

    I have design standard and was told I can use the same serial number on multiple computers. How many time can I use it? And say I install it on the maximum number of computers, but get a new computer, can I uninstall it on one of the old computers and use it on the new one? And can I use the programs on both computers simultaneously or do I have to use them one at a time?

    Fred Tech wrote:
    Broadly speaking, it depends on the type of license you have.
    Specifically, if you have a single license then officially, you should only install it once on one computer.
    Practically, (unless it has changed with CS4) you maybe able to install it on more then one computer, BUT can only run one instance of the software at a time. You can not run more then one instance of the software concurrently; i.e. you can't run Dreamweaver on Computer 1 and Photoshop on Computer 2. That would be two instances, and is not permitted.
    This is my understanding. I am happy to be corrected if I am wrong
    Fred
    Sorry Fred you are wrong.
    If you have a single license you can install it on as many computers as you like. you can only activate the suite on two computers at anyone time. Work and Home or as many of us do it Desktop and Laptop. You can not use the computers simultaneously. You only have 20 activation/deactivations so use them wisely. Student versions only have one activation. You can not break up the suite installs the suite is considered one application.

  • How many times can I use Migration Assistant?

    Hello All,
    I am planning on buying an Intel i7 iMac in the near future, and I want to take some of the files from my old Core Duo computer and move them to the i7 iMac. I'm not throwing out the Core Duo iMac, I just want some of the files on the new i7, but I don't want to clutter it up with files I don't need to move. How many times am I allowed to run Migration Assistant? Suppose one day I just want to bring over my iTunes 7 library, and my email accounts but I don't need anything else on the first day. Is it ok to just migrate those couple of things in one session and migrate other things in another session? It seems like that's how it will work but I don't know for sure.
    Thanks,
    Dave
    This was posted from my Core Duo running OS X 10.4.11. I want to use the i7 as my main computer but still use this one (Core Duo) in another room on my WiFi network. The i7 will be taking all new emails.

    Ajduguid,
    That's what I did on all my other Macs as I got them. I just decided to upgrade the memory in my old slow core duo iMac to 2 Gigs and I bought the box set. So far I installed 10.6. It works but just as slowly as before, which I think is it's normal speed. But now I have the option of turning Rosetta on and off.
    Now I can wait for Lion and the second generation i7 iMac to be released and be up to date on my Core Duo iMac. I'll be back when I get to migrating to a new iMac, or maybe before.
    Thanks,
    Dave

  • How many times can i use a  Windows XP CD?

    Just asking around here cause my Aunt would like to get windows too. How many times can a Legal,Official,Original,Windows XP SP2 Home Edition bought in Singapore be used?
    Message was edited by: iMissedMac

    Hi,
    a Windows License can be used exactly one time on one computer.
    The activation process Microsoft has established with XP prevents the usage of one license on more than one computer.
    Regards
    Stefan

  • HT1975 How can I reset the gray location services icon that apears next to the app that used my location services in the past 24 hours? Or better yet is there a way to track how many times it's been doing it in the past 24 hours?

    My boyfriend likes to check up on me by using find my iPhone app. Sometimes I feel he goes overboard and would like to know how often he is watching me. The gray icon is always there because he watches me every day, but if there is a way to reset it do that I can check it time after time and see if he watched me again since the last time I checked. Or is there a way or an app that tracks how many times a devise has been tracked? I don't want to change my password because I like knowing that if I get lost in the woods he would find me :)) I just want to know his often he is watching me.

    Understood.  However, the point that I'm trying to make is that it's not the WiFi access point's security that's in question, it's having your phone's WiFi in an always-on mode that's in question.  It's simple: if your phone's WiFi is on, then it is both discoverable and hackable... even when it's not connected to a WiFi network or access point.  Here's an article about a drone in London that was created to hack smartphone WiFi signals (and hackers have been doing what this drone does for years):
    http://money.cnn.com/2014/03/20/technology/security/drone-phone/
    The point is that it's not  secure to have your phone's WiFi in an always-on mode.  It would be better for privacy and security if Apple made WiFi location aware so that it is only enabled when you are at a trusted location (e.g. your home or office).  Or, at least give us the option of location aware WiFi so that each user can determine the best mode for their phone:
    (1) Always-On (current default - not secure and many privacy issues).
    (2) Trusted mode (only on at trusted locations).
    (3) Off.

  • Is it possible to see how many times a component has been used in our websites?

    Hi,
    we currently have 3 websites running and I don't know if a component we created is actually in use.
    Is there a way to find this out?
    Thanks,
    Giulio

    Hi kasq,
    thanks for your quick answer...I tried
    path=/apps/mywebsite/components/scrollable/html.jsp
    and the result was
    XPath query
    /jcr:root/apps/upc-cablecom-ch/components/scrollable/html.jsp//*
    Filtering predicates
    Results
    Number of hits: 1
    Time: 0.16 seconds
    /apps/mywebsite/components/scrollable/html.jsp/jcr:content  (html,  json)
    So how do I have to read it? I see 1 number of hits, that I assume it's how many times it's used from other files...but how do I actually see how many times it's used on all our pages?
    Sorry for this newbie question, but only now I'm getting deeper in CQ5
    Thanks,
    G

Maybe you are looking for

  • Re: HP Officejet Pro 8500a problem with printing black ink

    I have an Officejet Pro 8500A. I did a printhead clean.  I have plenty of black HP ink.  Printhead status indicates black/yellow is good.  I am barely getting any black to print.  All the colors are fine.  Help! This question was solved. View Solutio

  • Can garage band analyse the instuments of a track? if so how?

    i want to analyse each instrument sound seperatly so that i can delete the tracks i want(.for example delete the voice part and keep the music). can i do it via garage band? if so how?

  • No print spooler

    I lost my print spooler after running mulitple anti-malware programs. How do i reload? Thanks.

  • Info about BAPI and BADI's

    hi experts, i am very new to BAPI  and BADI's can you provide some information about this two topics. thanks shyam

  • Airport Extreme not loading some web pages

    For the last couple days, my Airport base station has been acting up. I've had it for a month or so, and it's been fine since then. However, recently I can't load some pages (the Apple Store is one of them) and other pages load very slowly (the Apple