How to know if Index is used by a program or job

Hi,
I am having this problem on how to check if a specific index such as /BIC/B0000** is used by a job or program. This is because I am woking on the Oracle Cost-Based Optimizer to be updated in a weekly schedule. But before a change in the schedule is done for the optimizer and checking through index, there was an index in an UNUSABLE STATE.
SQL> select INDEX_NAME,INDEX_TYPE,STATUS from dba_indexes where index_name like '/BIC/B0000881001KE';
INDEX_NAME                     INDEX_TYPE                  STATUS
/BIC/B0000881001KE             NORMAL                      UNUSABLE
So I cannot proceed because I need to know if this index is used by a program. Can you help me on this?

Hi
Take a look at SAP Note 184905 - Collective note on performance Several notes related to indexing can be found in the same

Similar Messages

  • 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#;

  • How to import WMV file for use in adobe programs, especially After Effects and/or Premier?

    How to import WMV file for use in adobe programs, especially After Effects and/or Premier?

    I have the latest adobe creative cloud and i'm using Mac 10.8.2
    My client gave me a wmv file that she wants some people blurred out in the background but when I go to import the media, it's greyed out. I'm assuming that After Effects will be the best solution for this, but maybe there is another way.
    I can purchase a video converter and convert it to .mov but that costs extra money that I don't want to spend just to do this one project.

  • How to find BW Indexes not used in a long time

    Hello all,
    I am attempting to find out which indexes have not been used in the last 2 years in a effort to eliminate indexes from our BWA environment.  Is there a way I can query our BW environment to figure this out?  Is there a table, or group of tables in combination, that might be able to help me out here?
    Thanks to you all.

    Thanks for such a quick response.
    I am assuming the following about the table :
    -     Column u201CCALDAYu201D contains a date value for each day the Index is active.
    -     Column u201CBIA_USEDu201D contains a value that is iterated for the given day each time the Index is used.
    -     Column u201CBIA_NOTPOSSIBLEu201D contains a value representing how many times a query could not access this Index.
    -     Column u201CNO_BIAu201D tells if a BWA Index exists at all on any of my BWA Blades
    -     Column u201CBIA_TECHINAu201D ????????
    -     Column u201CBIA_INAu201D ???????
    -     Column u201CDB_FALLBACKu201D ???????
    I am not sure if my understanding of the column is correct.  Can you tell me they are?  The columns with u201C???????u201D mean I have no solid understanding of how to use these columns at all.
    Thanks

  • How to know the DB objects using the particular tablespace

    Hi All
    I have tablespace which is used by different database objects.
    I want to know which objects are using that tablespace.
    How can I know this??
    Thanks

    I have tablespace which is used by different database objects.
    I want to know which objects are using that tablespace.
    How can I know this??
    select owner,segment_name,segment_type,tablespace_name from dba_segments where tablespace_name='&TBS';

  • How to know if others are using my Apple ID?

    How to know that one Apple ID is being used for other devices?

    Go to iTunes on a computer and sign in. Click on your name, then on Account Info. Under "iTunes in the Cloud" you will see how many devices are associated with this Apple ID, and you can click on Manage to see what devices have been associated with the Apple ID. This does not mean that the Apple ID is signed onto those devices. It just means that it was signed onto those devices at some point and was used to re-download past purchases, or to do Automatic Downloads.
    Cheers,
    GB

  • How i know which software is used in my mac

    how i can use c programme in my macbook... plzzz helppp me

    Hi,
    After getting the enhancement number if u click on that it will take u to the functionmodue.  U copy that function module/include.
    go to se37 put that function module ,  there u see the where used list.
    it will show the mainprogram in which functionmodue/include used.,
    By that program u can traceout the transactioncode easily.
    But what i suggest is that instead of going  in your path.  U can easily findout the
    userexits for particlular transaction using 1 custom programe.
    Reward points if useful.
    Regards
    (YUGANDHAR.P)

  • How to upload data into IT0000 using ABAP-HR program

    Hello,
    I'm required to upload data into multiple infotypes [IT000, 0001, 0002, etc] using single input text file. Can anyone able to guide me, how to upload data into IT0000 using ABAP program ?
    Thanks in advance.
    Regards
    Prabhakar.
    Message was edited by:
            Prabhakara Muthyal

    Example code for HR_MAINTAIN_MASTERDATA to COPY IT0002
    DATA: INT_0002_FINAL TYPE STANDARD TABLE OF PA0002 WITH HEADER LINE.
    DATA: VALUES        LIKE PPROP OCCURS 10 WITH HEADER LINE,
    RETURN        LIKE BAPIRETURN1,.
    LOOP AT INT_0002_FINAL.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-PERNR'.
          VALUES-FVAL  = INT_0002_FINAL-PERNR.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-BEGDA'.
          VALUES-FVAL  = INT_0002_FINAL-BEGDA.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-ENDDA'.
          VALUES-FVAL  = INT_0002_FINAL-ENDDA.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-nachn'.
          VALUES-FVAL  = INT_0002_FINAL-NACHN.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-gblnd'.
          VALUES-FVAL  = INT_0002_FINAL-GBLND.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-vorna'.
          VALUES-FVAL  = INT_0002_FINAL-VORNA.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-rufnm'.
          VALUES-FVAL  = INT_0002_FINAL-RUFNM.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-name2'.
          VALUES-FVAL  = INT_0002_FINAL-NAME2.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-inits'.
          VALUES-FVAL  = INT_0002_FINAL-INITS.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-famst'.
          VALUES-FVAL  = INT_0002_FINAL-FAMST.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-gbdat'.
          VALUES-FVAL  = INT_0002_FINAL-GBDAT.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-sprsl'.
          VALUES-FVAL  = INT_0002_FINAL-SPRSL.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-anzkd'.
          VALUES-FVAL  = INT_0002_FINAL-ANZKD.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-natio'.
          VALUES-FVAL  = INT_0002_FINAL-NATIO.
          APPEND VALUES.
    * maintain master data
          CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
            EXPORTING
              PERNR           = INT_0002_FINAL-PERNR
              ACTIO           = 'COP'
              BEGDA           = INT_0002_FINAL-BEGDA
    *         ENDDA           = INT_0002_FINAL-ENDDA
              SUBTY           = SPACE
              NO_ENQUEUE      = SPACE
              DIALOG_MODE        = '0'
              TCLAS              = 'A'
            IMPORTING
              RETURN1         = RETURN
            TABLES
              PROPOSED_VALUES = VALUES
    *         MODIFIED_KEYS   =
            EXCEPTIONS
              OTHERS          = 1.
          IF RETURN IS INITIAL.
            WRITE:/' Done....'.
          ELSE.
            WRITE:/   RETURN-ID, RETURN-TYPE, RETURN-NUMBER, RETURN-MESSAGE_V1, RETURN-MESSAGE_V2, RETURN-MESSAGE_V3, RETURN-MESSAGE_V4.
          ENDIF.
          CLEAR VALUES.
          REFRESH VALUES.
        ENDLOOP.

  • How to know the spool requests generated from my program?

    hi
         I want to get the spool request(s) that are generated from my report that's run either in foreground or background? how to know this? i know that we can go to sm37 and see, but is there any table or fm which stores this data? if i give my program name that's run on a particular date, i should get the spool request numbers. tsp01 only has the spool no. and not the program name..pl suggest...thanks all
    Sathish. R

    Hi ,
    The system field sy-spono contains the spool numbers .
    If you have such requirement, you can create one custom table with fields :
    spool no, program , date , time
    whenever you run ur program update this table ,
    with system fields . spono , sy-repid , sy-datum and sy-uzeit .
    Thaks .

  • How to find out internet version ,using a java program?

    Can any one send javacode to find out the internet version ,using a java program?

    i mean internet explorer version
    Edited by: mvasu on Feb 20, 2008 2:04 AM

  • How to know the column name using the index name for a particular table

    Hi All,
    I have small query regarding, I have index name and table name so by using this how can I know the column name associated with that index of that particular table specific to Oracle9i.
    Thanks
    Sudheer

    select *
    from user_ind_columns -- or all_ind_columns
    where table_name = UPPER('&table_name')
    and index_name = UPPER('&index_name');
    Regards
    Arun
    Gurgaon

  • How to know whether query is using Indexes in oracle?

    Please let me know necessary steps to check whether query using indexes.

    Try the below and check the explain plan.. See below explain plan using index marked as "RED" font
    SET AUTOTRACE TRACEONLY EXPLAIN
    SELECT * FROM emp WHERE empno = 7839;
    Execution Plan
    Plan hash value: 2949544139
    | Id  | Operation                   | Name   | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |        |     1 |    38 |     1   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| EMP    |     1 |    38 |     1   (0)| 00:00:01 |
    |*  2 |   INDEX UNIQUE SCAN         | PK_EMP |     1 |       |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("EMPNO"=7839)

  • How to know a table is using in any packeges or procedures

    Dear All
    How can I know that a table is using in any packege or procedure or function ?
    I mean , let say I have 10 Packages , 10 Procedures and 5 Functions .
    I need to know in which Packages , Procedures or Functions are using the table EMP .
    How can I search ? Is there any command or I need to open all the procedures and then search one by one ?

    Hi everyone,
    Did anyone interest in the topic search for dependencies between objects in the database?
    I want to see the PL/SQL code which is an appeal to a particular procedure or function or package and where and how does an object use in any PL/SQL code.
    Often do you have a need to get answers to these questions?
    I say about an object usage presentation, not about its relations only.
    Do you want to know, how opbject used?
    If it's a table - what's DML?(insert/select/...)
    If it used in a package - which procedure of package uses in?
    The object usage in an external objects - Oracle*Forms/Reports,Flat/Word files, Informatica.
    I'll want to know, if everybody interested to one.

  • How to know number of columns used in a cursor

    Hi,
    I am using some query in a cursor.
    I want to know the number of columns used in that query.
    Please let me how to do ?
    This is required because I want to export an oracle report into MS Excel.
    For this I need to know, upto which column I should write in excel cell.
    I am using Oracle 9i
    I hope, I am clear in my requirement.
    Regards
    Surendra

    You could use DBMS_SQL.DESCRIBE_COLUMNS :
    SQL> CREATE OR REPLACE
      2    FUNCTION column_count(
      3                          p_stmt VARCHAR2
      4                         )
      5      RETURN NUMBER
      6      IS
      7          v_cur     NUMBER;
      8          v_cnt     NUMBER;
      9          v_rec_tab DBMS_SQL.DESC_TAB;
    10      BEGIN
    11          v_cur := DBMS_SQL.OPEN_CURSOR;
    12          DBMS_SQL.PARSE(v_cur,p_stmt,DBMS_SQL.NATIVE);
    13          DBMS_SQL.DESCRIBE_COLUMNS(v_cur,v_cnt,v_rec_tab);
    14          DBMS_SQL.CLOSE_CURSOR(v_cur);
    15          RETURN v_cnt;
    16  END;
    17  /
    Function created.
    SQL> SET SERVEROUTPUT ON
    SQL> EXEC DBMS_OUTPUT.PUT_LINE('column_count is ' || column_count('select * from emp'))
    column_count is 8
    PL/SQL procedure successfully completed.
    SQL> EXEC DBMS_OUTPUT.PUT_LINE('column_count is ' || column_count('select min(sal),max(sal) from emp'))
    column_count is 2
    PL/SQL procedure successfully completed.
    SQL> SY.
    Edited by: Solomon Yakobson on Sep 20, 2008 4:54 AM

  • How to know if firefox is using a master password from a some programming language?

    I am working in a security check project and I need know from an programming language or open some file if firefox is using a master password.

    Generally speaking, there is nothing in the HTTP request to indicate to a server the type of window the request originates from. So you will have to manage it at the application level.

Maybe you are looking for

  • How do I change the song in a slideshow on my iPad

    how do I change the song in a slideshow on my iPad

  • Trading Partner logic

    Dear Friends, I am facing problem regarding trading partner, which I want to use to process the IC Matching and IC Elimination task. Firstoff all company codes are not update the trading partner in the document whichwas got posted. Clients are using

  • TM does not see my disk, but it shows up in finder.

    I have connected an external hard drive through a USB connection. Finder sees it, and it comes up on my desktop. My problem, however, is when I try to connect to Time Machine. It doesn't show up when I click "choose backup disk." I also plugged in a

  • Install Snow Leopard on new partition (on new MacBook Pro)

    I need to install OS X 10.6 on my new MacBook (10.8.2) because older programs won't work on my new machines. I've successfully created a new partition. However when I hold down option button on startup I only see original partition and Recovery-10.8.

  • Regarding authorization cor3

    Dear all,       Can u suggest authorization object for costing and accounting view? Actually i want to give the authorization of transaction code cor3 to user but i don't want to give them  costing and accounting view (price), so can u suggest me reg