How to find Secondary Index

Hi Friends,
I have a select query, my where condition is built on3 secondary indexes. So how do i know which secondary index is going to is taken into consideration first time and fetches the data.
KNK.

Hi ,
  You can find it using ST05.
1. Open ST05. Activate trace.
2. Open se38 in other window and run the program.
3. In ST05 deactivate the trace and display the trace.
There we can find the indexes used.
Only one can use the trace at one point of time. In the trace all the operations which the server did at that time will be displayed. Search for your program and find the result.

Similar Messages

  • How to find when index was created in the database.

    Hi,
    Please help me, how to find when index was created in the database. It should give with date and time.
    Thanks... Bakser

    Please help me, how to find when index was created in the database. It should give with date and time.DBA_/ALL/User_objects Created
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    OBJECT_NAME                                        VARCHAR2(128)
    SUBOBJECT_NAME                                     VARCHAR2(30)
    OBJECT_ID                                          NUMBER
    DATA_OBJECT_ID                                     NUMBER
    OBJECT_TYPE                                        VARCHAR2(19)
    CREATED                                           DATE
    LAST_DDL_TIME                                      DATE
    TIMESTAMP                                          VARCHAR2(19)
    STATUS                                             VARCHAR2(7)
    TEMPORARY                                          VARCHAR2(1)
    GENERATED                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    select OBJECT_NAME,TIMESTAMP,CREATED  from ALL_OBJECTS where OWNER='OWNERNAME' AND OBJECT_NAME='OBJECT_NAME' AND OBJECT_TYPE='INDEX';Edited by: Anantha on Apr 21, 2009 3:18 PM
    Edited by: Anantha on Apr 21, 2009 3:19 PM

  • How   to  find  global  index  in partition table

    Hi guys ,
    need one help
    How to find global index on partition table
    How to find local index on partition table
    Need query
    Thanks in advance
    Edited by: nav on Feb 17, 2012 6:51 AM

    nav wrote:
    Hi Solomon,
    so I have to identify partition & index are created or not,
    also I have check the status of index ( both global and local)So what's the problem? Table/index partition is an object, so you can query DBA_OBJECTS:
    SELECT  SUBOBJECT_NAME,
            CREATED
      FROM  DBA_OBJECTS
      WHERE OWNER = partitioned-table-owner
        AND OBJECT_NAME = partitioned-table-name
        AND CREATED >= TRUNC(SYSDATE)
    /This will give you partitions created today. So if you run this right after your job (I hope your job doen't run too close to midnight), you'll get table partition name your job created. Same logic can be applied to indexes.
    SY.

  • How to delete secondary indexes

    Hello Guru's.
    I want to delete secondary indexes for my copa cube ZCOPA_CO1.where to see the secondary indexes for this cube..please give me step by step for deleting secondary indexes as well as creating secondary indexes .Its really urgent please give me some good suggestions on this as i was stuck up with this issue.......waiting for your valuable suggestions on this...
    Thanks.
    sri.

    Hi,
    Secondary index: Additional indexes could be created considering the most frequently accessed dimensions of the table.
    How to create secondary index :
    1. Go to se11 --> Enter Tablename --> Display --> Click on "Indexes" button on Application Toolbar --> Select "Table Fields" button --> Select field on which you want to create index on (Compound index can be created on more than 1 table).
    Generally indexes are created at database level to optimize performance (Select Non-unique Index --> Index on all database systems)
    Hope it helps
    Regards
    Srikanth

  • How to create Secondary Index?

    Hello All
    Can anyone let me know how to create secondary indexes?
    I hope Primary Indexes are being created automatically?V can'nt able to create this.
    regards
    balji

    Hi,
    1) Go to Se11 select table /BI0/A<ODS>00 > Utilities> Data bse Object --> Check.
    2) If you are using ODS Active table in any Start routine ,Make sure that the order of objects to be seleccted (select statement) should be in same order of index fields.
    In Query, Use RSRT to know the SQL statement of the Query .and follow same logic explained above.
    3) No need to create Secondary Index for Cube.
    4) IT recreates the Index.
    With rgds,
    Anil Kumar Sharma .P

  • How to find unused indexes in oracle 10g r2

    Hi all,
    db:oracle 10.2.0.3
    os:solaris
    i want rebuilt the some of the indexes (due poor performence of db)
    how to find the unused indexes in oracle 10gr2 database.?
    can any one help me out plz.

    kk001 wrote:
    Hi all,
    db:oracle 10.2.0.3
    os:solaris
    i want rebuilt the some of the indexes (due poor performence of db)
    how to find the unused indexes in oracle 10gr2 database.?
    can any one help me out plz.You can use V$OBJECT_USAGE.
    But how you decide need rebuilding indexes?
    How you decide problem related indexes?
    What is exactly your mean "due poor performence of db"? some queries hang/long running or whole system hang or has poor performance?
    In generally do not need rebuilding index(unless specially cases),first give we above questions`s answers.

  • How to use secondary index

    Hi abapers,
    Iam creating secondary index for the database table MSEG. ....How to write select query for the secondary index that i have created..
    Regards,
    Ramya

    how to create secondary index in tables
    https://forums.sdn.sap.com/click.jspa?searchID=933015&messageID=2971112
    Guidelines to create secondary index
    https://forums.sdn.sap.com/click.jspa?searchID=933015&messageID=2009801
    Secondary index;
    http://help.sap.com/saphelp_47x200/helpdata/en/cf/21eb2d446011d189700000e8322d00/content.htm
    this will definitely help you, dont forget to award points if found helpful

  • How to transport Secondary Index, If I created it via DB02-directly on DB?

    Hi Experts,
    For curiosity, wuld like to know that,
    How to transport the Secondary Index, If I created it via DB02 i.e. directly on DB?
    thanq.

    Hi srikhar,
    1. How to transport the Secondary Index, If I created it via DB02 i.e. directly on DB?
    Now, There is no question of transport,
    bcos what u will transport.
    We can only transport objects which
    are created from r/3 data dictionary etc.
    regards,
    amit m.

  • How to create secondary indexes in DB2e from MI

    Hello,
    we need to create secondary indexes in the DB2e SyncBO tables for a SynBO containing several thousands entries.
    We create it manually and works fine, but we have to distribute
    this to every user (about 300).
    Is there a way to distribuite this index creation for an
    application from a central location (WebConsole)?
    Or,
    is there any attribute in the SyncBO definitions for creating indexes on selected fields in teh database?
    Thanks in advance and best regards,
    Angel

    Hi,
    I found the way to create the indexes. In the metadata
    function of the SyncBO builder, you can mark any field
    as index (either in the header or in the detail tables).
    This creates a secondary index in the database per marked
    field.
    Regards,
    Angel

  • How to find out index of string

    Hi,
    Can you help me to find out index of following strting.
    "sss.xxxxx_pain.001.001.02_1002225618.xml"
    need to get value "1002225618".
    ideally i need to get the value inbetween after second "_"  and value before ".xml".
    Thanks
    Mahi

    Hi Mahi,
    UDF should be like this:
    If you do not want .xml in the out replace statement
    var1=var1.substring(sublen+1, len);
    with
    var1=var1.substring(sublen+1, len-4);
    Regards,
    Krupa

  • How to find out index from table?

    Hi all,
    I've tried to create indexes to some columns from some tables to use for Oracle Text.
    I ve got a error message saying that I can not create an index:
    "cannot create multiple domain indexes on a column list using same indextype".
    I was wondering if an index already exists for that column, how do I find out the name of the index that points to that paticular colum?
    Thanks a lot
    E.

    Check the view dba_ind_columns
    That will tell you.
    something like;
    select index_name, column_position, column_name from dba_ind_columns
    where table_name = '<table name>'
    order by 1,2

  • 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 find table/index statistics are outdated

    Hi guys,
    How can we find whether the statistics of a table or a index are outdated.
    thanks...

    You can use DBA_TAB_MODIFICATIONS view: please read "Determining Stale Statistics" http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/stats.htm#PFGRF94738

  • How to find out Index Rebuild times?

    Hi,
    We have many indexes but I can't find out when they were rebuilded last. Is it possible to find index last rebuild time?
    db version: 9.2.0.8
    Regards and thanks

    Query for LAST_DDL_TIME in DBA_OBJECTS / USER_OBJECTS for those indexes.
    Hemant K Chitale

  • Fireworks: How to find document index for scripting?

    Can anyone share a simple method for obtaining the document index of an active Fireworks document, within the array of open documents? Normally, the current document is accessed by using fw.getDocumentDOM(), but I'd like to obtain the actual array index value (e.g., 0, 1, 2, 3, etc.) to use elsewhere in a script.
    I've created a function to obtain this index value, but it's ungainly: It compares entire DOMs that have been converted to source. This requires too much memory or processing and nearly brings the script to a halt. I need something simpler.
    var dom = fw.getDocumentDOM();
    function documentIndex() {
        if (fw.documents.length == 1) {
            return 0;
        else if (fw.documents.length > 1) {
            var i = 0;
            for (i = 0; i < fw.documents.length; i++) {
                if (fw.documents[i].toSource() == dom.toSource()) {
                    return i;
                    break;
    I've considered using a document property like docTitleWithoutExtension, filePathForRevert, or filePathForSave as a basis for comparison between documents, but these are unreliable: They won't work if the documents in question have have not yet been saved. 
    I figure there must be a simple method, I just don't know what it is.

    In case anyone's interested, here's the workaround I'm now using to find the position of an active Fireworks document within the array of open documents (a.k.a., the document index). I'd still love to hear from anyone who can suggest a simpler method.
    The basic idea is to first look at two properties of the active document—docTitleWithoutExtension and filePathForRevert—and, where possible, compare those values to that of the same properties within each open document. On their own, each property has loopholes, which is why I'm combining them. (For example, it's possible to have two documents with the same title—if they have different extensions or file paths. Likewise, it's possible to open multiple copies of an unsaved document, all with the same filePathForRevert value.)
    New or untitled documents demand an entirely different criteria. I'm not crazy about this approach, but it seems like the best option at this point: When you can't find a DOM property to reliably distinguish one document from another, you temporarily write a distinctive value into a property of the document you want to find. Think of it like tagging a wild animal. In this case, when the active document lacks both a docTitle and file path, I write a crazy piece of "alt text" gibberish into the defaultAltText property and use that to identify my active document. (Even though I'm taking care to restore the original "alt text" afterwards, I don't love this method... but it seems to work.)
    var dom = fw.getDocumentDOM();
    function documentIndex() {
        if (fw.documents.length == 1) {
            return 0;
        else if (fw.documents.length > 1) {
            var docTitle = dom.docTitleWithoutExtension;
            var filePath = dom.filePathForRevert;
            if ((docTitle != "") && (filePath != null)) {
                var i = 0;
                for (i = 0; i < fw.documents.length; i++) {
                    if ((fw.documents[i].docTitleWithoutExtension == docTitle) && (fw.documents[i].filePathForRevert == filePath)) {
                        return i;
            else {
                var originalDefaultAlt = dom.defaultAltText;
                dom.defaultAltText = "toRtoiSeOfThEsLowAcoRnsRejoiCe";
                var i = 0;
                for (i = 0; i < fw.documents.length; i++) {
                    if (fw.documents[i].defaultAltText == dom.defaultAltText) {
                        dom.defaultAltText = originalDefaultAlt;
                        return i;

Maybe you are looking for

  • GRC 10 - SSO via Portal - how to redirect url in notification variables

    Dears, I am in the process of designing our GRC 10 machine to be accessed via SSO in the Enterprise Portal. Yet I cannot find any info on what will happen with the URLs that are placed by ARM MSMP workflow in the variables of notifications/approvals.

  • Error: Fatal error in function BldAlter on call to function GetOldRecDefn.

    At step "Generating the Updated PeopleTools Script" to generate "PPLTLS84CURTables.sql", more than 2270 errors occured: Example Error 1: System Error : File: E:\pt85403d-retail\peopletools\src\psbld\bldalter.cppSQL error. Stmt #: 4550  Error Position

  • Adobe form:Data view problem

    Hi,       My problem is i am not able to see data in my dataview on layout. I have everything in my interface, context, but i'm not able to see anything in dataview. i tried reinstalling adobe designer but it didnt worked. Regards, Karthick.

  • Console not showing trace statement output

    Hello, I have set up Flash Builder 4.6 for the first time for an ActionScript project. All good so far except that the console window doesn't show the output from my simple trace statement for my first little Hello World tester? There wasn't a consol

  • My old address book is missing

    I had to replace my modem & when bought my computer back up address book was empty!! How do I get my addresses back?