Indexes missing in the database

hello gurus
Missing indexes. Check of 23.04.2007 20:11:16
       Indexes missing in the database
           Primary indexes                    0
           Secondary indexes                6
               /BIC/F100067-160
               /BIC/F100067-150
               /BIC/F100067-140
               /BIC/F100067-130
               /BIC/F100067-120
               /BIC/F100067-110
This is my problem, I am facing in my database, can somebody help me to understand what is   Primary indexes,     Secondary indexes in the database
whether they critical or non critical, what is the process so that we can rectify the
indexes ?
Waiting for your reply
Thank You

HI Shishir,
<b>Here are the definitions for the following :</b>
<b>Missing indexes</b> may occur if you ignore an error message when creating a table (table created, index not created) or if an index is deleted. The latter case may occur during an incorrect reorganization.
<b>Difference between Primary and Secondary Index:</b>
<b>Primary indexes</b> (ending with 0) ensure that the line keys (row keys) are unique. Missing primary indexes are therefore a critical problem.
<b>Secondary indexes</b> (ending with 0) are used for particular scans and are only important for performance.
To analyze the above use T-code DB02
Regards
<b>Vijay Kothapalli</b>

Similar Messages

  • Problem about Indexes missing in the database

    Dear all,
    We found a missing index in DB02 view of our sap system.
    This missing index is a Secondary index,
    and its name is S509-VAB.
    We tried to create it in DB, but got below error log as below:
    Index S509~VAB could not be set up in the database
    Message no. DI 006
    Diagnosis
    It was not possible to create the index in the database.
    This could be caused by the fact that an index with the same name exists in the database, but it is unknown to the ABAP/4 Dictionary. Activating the index in the ABAP/4 Dictionary is possible, but it is not possible to create it in the database.
    Procedure
    For more information about the cause of the error, analyze the SQL error messages in this log.
    Our question is How to Activate the index in the ABAP/4 Dictionary?
    Anyone experienced,
    Please kindly give advice.
    Regards,
    Allen

    Hi Allen,
    S509 is an information structure table. Data is populated into it post we do some necessary cutomizing and is mainly used for reporting purpose. I do not know what reports you are generating out of this. Hence difficult to say whether you can ignore this missing index or not.
    I would suggest you to do the following
    In se14, type the table name S509.
    Go to indexes tab. Look for the list of indexes defined.
    Select the index name VAB ( Which is missing in your case ).
    1) check the status of this index ? Does it says "exists in database"
    2) If point 1 is not valid then , select the option create in database button and create the index in the database.
    Regards,
    Deepak Kori

  • RoboHelp x5 TOC and index missing when the project is converted to RoboHelp 10

    As the title says, RoboHelp x5 TOC and index missing when the project is converted to RoboHelp 10. Any ideas for recovering or importing the x5 TOC and index?
    Before this is suggested, auto-create is not an option.

    Hi there
    Perhaps give this a try. From the Project Manager pod, right-click the Table of Contents area and choose "New Table of Contents". Give it a name and enable the "Copy existing Table of Contents" check box. Then click the Ellipsis icon on the far right side. See if you have a .HHC file in the folder. Odds are, you will. That will be the existing (missing) TOC.
    Hopefully that will work. If so, repeat the process for the index.
    I think when upgrading the project something goes wrong with naming.
    Let us know if this helps... Rick

  • /BIC/FFIN_PS_6 table is missing in the database

    Hello All,
    We were unable to Delete requests from FIN_PS_6 , as we perform the job it is getting terminated with DBIF_RSQL_TABLE_UNKNOWN message.
    Found out that table /BIC/FFIN_PS_6 is missing in the database. Any clues to find how this Table got deleted? logs or traces for this activity.
    Thanks & Regards,
    Madan

    Hi Vani,
      /BIC/FFIN_PS_6  seems to be a Fact table. So please activate the corresponding Infocube .
    Then try to work on it.
    Regards,
    James Harold.

  • Entered DATA missing from the Database ( SEM CUBE )

    Hi,
    We are in the process of compiling the Annual Budget for 2011- 12. We
    are using BW-BPS for capturing the data.
    The Problem, is that we are not able see the Data entered in last two
    days. The users have entered the data in SEM-BPS layouts and saved it.
    Also they have executed the Queries through the Bex Analyzer which had
    the data till yesterday evening, but today if the user tries to refresh
    the query then the data is missing.
    The name of BW SEM-CUBE is "ZUCOPA_TC".
    Please suggest some solution.
    Thanks
    Nilesh

    Nilesh,
    someone might have run a delete function or another incorrectly configured planning function that deleted the data (or set records to zero).
    First, STOP any compression jobs on your planning InfoCubes. (If any compression job with zero eliminiation ran the past two days, the data is probably lost for good).
    Second, check in LISTCUBE if the data is still in the InfoCube. Make sure to select ALL fields for the output (including request id). If you are lucky, you will find all the deltas of changes that happened in the past days. If there was a delete (or similar) you should find these deltas, too. Now you can recreate the original data again (it's tedious but can be done).
    Whatever the outcome, you should implement some operational improvements to your planning applications:
    1) Create backup InfoCubes of your planning InfoCubes (fill with nightly DTP for example)
    2) Implement audit log of planning activities (see how-to guides)
    Both will give you a much better chance of recovering data in such cases.
    Good luck,
    Marc
    SAP Techology RIG

  • Index missing in ABAP DD

    Hi Guys,
    I have created an index only on the database level. Now, I want to have it in ABAP dictionar also. Do I follow the same procedure to create it:
    se11->indexes->create?
    How will the system recognize it? DO i have to do anything else to nform the system that this index already exists on database?
    Thanks in advance
    Cyrus

    Hello,
    May be I am too late in replying, but if you are still stuck... here is the reply.
    To answer your question Cyrus...
    If you are creating a new index at a database level, there is nothing to worry. You can first create if at db level and then create it using SE11 in SAP. When you activate this index, SAP is smart enough to recognize that an index exists at db level and activates the index in SAP without taking any time.
    MIND YOU THE NAME OF THE INDEX AT DB LEVEL AND THE NAME YOU GIVE IN SAP NEEDS TO BE CAREFULLY CONSIDERED. FOR e.g. if the name of index in SAP is on table ZTFKK_PAYMNTINFO and the index name in SAP is Z01, the index should be named as ZTFKK_PAYMNTINFOZ0 in Oracle. Note how it is named in oracle without a space or ~ character and missing last letter of index name i.e. '1' .
    Problem is when you want to modify an existing index and not create a new one. When an existing index is modified in db level first and then changed in SAP, while activating it in SAP, SAP first drops the index at db level and then tries to re-create it. This activation in SAP could take long if the table size is huge.
    To answer Rich's question...
    There are reasons for people wanting to create big indexes directly at db level as these database systems allow parallel process to build the index. This saves a lot of time specially when the table is size is in millions of records).
    Even if your index is not in SAP Dictionary but exists at DB level, the index is used when appropriate query is fired from SAP.
    Hope this clears things.
    Cheers,
    Jay

  • ONLY ONE FIELD DOES NOT GET PREPOPULATED FROM THE DATABASE

    I would really, really appreciate if someone can comment or suggest something that would help with the resolution to the issue I am currently experiencing.
    Simple sample form that explains the issue can be accessed from the link below.
    How to test the form:
    Open the form.
    Click on the yellow button to add new Task.
    The problem is with Additional Product fields ( in blue). You can add as many of them as you want by clicking on the Red button with the +. Add some data and uploade in database. When you download it from the database, data will come back fine for all of them, except for the first one.
    Any ideas or help would be greatly appreciated.
    https://acrobat.com/#d=2vFWOlm56FmrC4owzpfHew 
    The code is behind the Red button with the +. Very  simple. Perhaps is the indexing issue with the database. I do not know enough about it, to be able to send any suggestion to the DB guy.
    According to the DB guy, data uploades without issue. It is the blank field when the form with data is downoloaded.

    It might be related to http://forum.java.sun.com/thread.jspa?threadID=583466&messageID=2988344

  • Licecache table missing Table MATRIXINDE does not exist in the database wit

    Hello,
    We recently done a system copy of our APO system, everything went well. in case of Livecache there are 2 problem
    1) when we do the integration for LCA/LDA/LCA while we mentione the Livecache server it is not taking the host name , it is only picking the IP address of the livecache server. If we tried host name, it times out.
    2) once we give the IP address as livecache server  we can start the live cache server. Bure there is only two tables in it
    when we run
    transaction Livecache Check (/SAPAPO/OM03) we get the erro i.e.Table MATRIXINDE does not exist in the database with ID LCA
    runtime error DBIF_RSQL_TABLE_UNKNOWN
    When we look into the tables there are only 2 tables in it
    AAPSYSNAME
    LCA_WARNINGS
    when I compare with other system...it is missing a lots of other tables..
    We did re-initialized the livecache.
    Appreciate your help in this

    Hello Sudhir,
    1) Did you create the SAP ticket where this issue is reported?
    2) It's good to know more details about the APO version, liveCache/LCA versions on your
        source & target systems.
        What note or document did you follow to do a system copy of our APO system?
    3) Please pay attention to the recommendations in the SAP notes:::
             877203     Post steps after the Homogenous liveCache copy usi u2026
             886103    System Landscape Copy for SAP SCM
    Thank you and best regards, Natalia Khlopina

  • Errors in the OLAP storage engine: An error occurred while processing the indexes for the partition of the measure group of the cube from the database.

    Errors in the OLAP storage engine: An error occurred while processing the indexes for the partition of the measure group of the cube from the database.
    I have dropped and recreated a fact table to refresh the data as the table is having identity columns. So not able to directly insert data. After that cube is throwing above error.
    Please suggest.

    Hi Md,
    It hard to analyse the issue base on the limited information, Are there any error message on the log? Under C:\Program Files\Microsoft SQL Server\MSAS11.\OLAP\Log (this could be different for your server), there are 3 log files that are generated:
    msmdrrv.log
    FlightRecorderCurrent.trc
    FightRecorderBack.trc
    The msmdrrv.log simply points to the other two logs. There might be some detail information for this error. Please provide us the detail information about it, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How an INDEX of a Table got selected when a SELECT query hits the Database

    Hi All,
    How an Index got selected when a SELECT query hits the Database Table.
    My SELECT query is as ahown below.
        SELECT ebeln ebelp matnr FROM ekpo
                       APPENDING TABLE i_ebeln
                       FOR ALL ENTRIES IN i_mara_01
                       WHERE werks = p_werks      AND
                             matnr = i_mara_01-matnr AND
                             bstyp EQ 'F'         AND
                             loekz IN (' ' , 'S') AND
                             elikz = ' '          AND
                             ebeln IN s_ebeln     AND
                             pstyp IN ('0' , '3') AND
                             knttp = ' '          AND
                             ko_prctr IN r_prctr  AND
                             retpo = ''.
    The fields in the INDEX of the Table EKPO should be in the same sequence as in the WHERE clasuse?
    Regards,
    Viji

    Hi,
    You minimize the size of the result set by using the WHERE and HAVING clauses. To increase the efficiency of these clauses, you should formulate them to fit with the database table indexes.
    Database Indexes
    Indexes speed up data selection from the database. They consist of selected fields of a table, of which a copy is then made in sorted order. If you specify the index fields correctly in a condition in the WHERE or HAVING clause, the system only searches part of the index (index range scan).
    The primary index is always created automatically in the R/3 System. It consists of the primary key fields of the database table. This means that for each combination of fields in the index, there is a maximum of one line in the table. This kind of index is also known as UNIQUE. If you cannot use the primary index to determine the result set because, for example, none of the primary index fields occur in the WHERE or HAVING clause, the system searches through the entire table (full table scan). For this case, you can create secondary indexes, which can restrict the number of table entries searched to form the result set.
    reference : help.sap.com
    thanx.

  • User defined tables:  amending Index on the database level. Opinions???

    Hi everybody who has some spare time to read my stuff
    I had a problem that some of you might have had. I have a user defined table, let’s call it ProductTypes. Now system by default creates two columns in this table, one is Code (primary key) and another is Name (Index). I have added third column called Department. Now, if I wanted to add the following data (see bellow) to the table I would have had a constraint violation message pointing me out that I have problems with indexing.
    Code, Name, Department
    1, Cream, Fragrances
    2, Cream, Beauty Products
          ^^
    I could thing of couple workarounds of this problem
    1. Is to duplicate Code into Name and storing rest of the data using user columns
    Code, Name, Product Name, Department
    1, 1,Cream, Fragrances
    2, 2, Cream, Beauty Products
    This approach isn’t very convenient as it requires UI development should we decide to attach this table to the Item master data form in a form of combo box.
    2. Is to amend Index on the database level. Initially, the index KProductTypes_Name consisted of only one column Name, what I have done is added another column which is Code to indexing. I don’t see how this can harm database consistency or damage the core system.  Please correct me if I am wrong.
    Another way of amending index in order to solve my problem could be choosing ignoring duplicate values option for column Name.
    Please let me know what are your thoughts.
    Best wishes

    > Why don't you try adding a trigger 'instead of
    > insert' where code = max(code)1 and name=max(name)1
    > and use only user columns for your data. This
    > provided you know SQL basics.
    in this scenario we would have to do UI SDK development for the output and going to have an extra column with meaningless data in it.

  • Last week what are the new indexes created in my database

    last week what are the new indexes created in my database.How can I know?
    Thanks

    Please try this:
    SELECT t.name AS TableName ,
    ind.name AS IndexName ,
    col.name AS ColumnName ,
    STATS_DATE(t.object_id, ind.index_id) AS IndexCreationDate
    FROM sys.indexes ind
    INNER JOIN sys.index_columns ic ON ind.object_id = ic.object_id
    AND ind.index_id = ic.index_id
    INNER JOIN sys.columns col ON ic.object_id = col.object_id
    AND ic.column_id = col.column_id
    INNER JOIN sys.tables t ON ind.object_id = t.object_id
    WHERE ind.is_primary_key = 0
    AND ind.is_unique = 0
    AND ind.is_unique_constraint = 0
    AND t.is_ms_shipped = 0
    AND STATS_DATE(t.object_id, ind.index_id) > ( GETDATE() - 7 ) ;
    T-SQL Articles
    T-SQL e-book by TechNet Wiki Community
    T-SQL blog

  • Index mentioned in AWR Report does not exist in the database

    Hi,
    I have a situation where the index object mentioned in the AWR Report is not present in the database. The object has not been dropped, is not present in the recyclebin either. The object name is mentioned as PK1_IDX in the report. The object with the name PK_IDX is present in the database. Any ideas?
    Thanks
    Charles

    Xtreme wrote:
    Hi,
    Please let me add additional information.
    The AWR Report section Segments by Physical Reads shows that a particular index object shown up in report as PK1_IDX has 72% of physical reads.
    But the index object PK1_IDX is not present in the database
    The index object with the name PK_IDX is present in the database.
    SQL> select object_name,object_type,last_ddl_time from dba_objects where object_name like '%PK_IDX%';
    OBJECT_NAME OBJECT_TYPE LAST_DDL_
    PK_IDX 09-DEC-08
    Does oracle create indexes at runtime with a names as PK1_IDX during execution?No, not a thing that I know of. As I said, can you trace the query ans see if its truly using that said index?
    Aman....

  • 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

  • Is there a way to force the Tag Engine to dump its input buffer to the database?

    I have an application where I start a process and log the data, and then call a subVI that uses the Read Historical Trend VIs to get all of the data from when the process started until now. The problem is that the Historical Trend VIs only read from the database on disk, and the Tag Engine's buffer doesn't write to disk until it's full (or possibly times out; I'm not sure about that, though). Is there a way to force the Tag Engine to write to disk, so that the Historical Trend VIs will return the most recent data?
    Shrinking the buffer will help a little, but that will only result in missing less of the most recent data. One possible hack is to have a dummy tag that I simply write enou
    gh data to that will cause the buffer to be written to the database. I was hoping for something more elegant, though.

    That's a good question.
    The control about the datalogging and the DSC Engine is all done (more or less) automatically - you feel the NI ease-of-use idea
    That means the Citadel service (one of the NI Services installed by LabVIEW DSC) is responsible of taking care about the datahandling (writing to and reading from the database files including caching some data e.g. index files, frequently used data...).
    The DSC Engine makes a request to the Citadel service that this data has to be logged. Everything else is handled by the Citadel service. Internally, there are two kinds of logging periods handled through the Citadel service. One for traces being viewed (a small period: 200ms) and one for traces not being viewed (slow (big) log period: 20000ms). That
    means, if Citadel gets a request to store a value it will buffer it and store it as soon as possible depending on other circumstances. One depends on the fact if this trace data is being viewed (e.g. with Read Histroical Trend.vi) If you request/read to view a trace you should pretty much see the current values because citadel should use the fast log period.
    The Citadel service takes care as well about setting priorities e.g. the writes before the reads (We don't want to loose data - right?). That means if you really stuff the system by writing a lot of data the CPU might get overloaded and the reads will happen less often.
    If you really want to see "real-time" data I would recommend to use the "Trend Tags.vi". With this approach you avoid the chain DSCEngine-Output Buffer-CitadelService-InputBuffer-File-HD... and back.
    I hope this info helps.
    Roland
    PS: I've attached a simple VI that has a tip (workaround) in it which might do what you are looking for... However, Nationa
    l Instruments cannot support this offically because the VI being used are internally DSC VIs that certainly change in the next version of LV DSC... and therefore you would need to "re-factor" your application.
    Attachments:
    BenchReadHistTrend.llb ‏104 KB

Maybe you are looking for

  • How do i find a lost ipad

    i have ipad 1 and 2 and an iphone. I registered all items and i have idisk/me. Anyway, i the ipad 2 is lost. When i use the find my iphone software it only looks for my ipad1 and my iphones. I have the serial #, can i track it manually? What do i do.

  • Adding a texture to a box..

    This was working at one point, but i dont know what is wrong URL r = null;           try {                r = new URL("file:ground.png");           } catch (MalformedURLException e) {                // TODO Auto-generated catch block                e

  • GDS 2.0 Workflows

    Does anyone know how to disable the workflows in GDS 2.0.  I tried turning them off in the Workflows table in the MDM Data Manager but GDS is still triggering them somehow.

  • Canon S120 RAW images not working with iPhoto. Why.

    Canon S120 RAW images why they can't be downloaded to iPhoto and/or when will Apple upgrade iPhoto so they can?

  • [Solved] Database Isolation Level - ADF BC

    How and Where do we set Isolation Level for ADF BC ? Chandresh Message was edited by: Chandresh