Missing secondary index after TDMS data deletion

We have done a TDTIM transfer to a single client system. The deletion technique used by TDMS is Drop-insert technique.
During our initial analysis, we found that many of the secondary indices are not re-created by TDMS at database level. For many few tables the secondary indices are re-created at the database level.
Will TDMS delete and re-create the secondary index for re-created (droped & created) tables during data deletion in receiver system ?
Why did TDMS re-create secondary indices for few tables and why it didnot re-create secondary indices for few other tables?
Thanks
Praven

Indexes are deleted from the receiver only in cases when they were not present at the DB level in the receiver system
prior to TDMS run. This is to avoid any kind of error/exceptions when records are inserted into the table.
You need to create these indexes manually.
In order to do so, you can follow the steps below:
1. Execute transaction DB02.
2. Select the button "missing indexes". A list of 1091 is shown
3. Place the cursor on the line "secondary indexes" and hit F9
4. Now hit "create on DB".
5. A popup will ask if you want to do a mass select. Press "Yes"
6. A further Popup will then ask for background processing. Say "Yes".
Best Regards,
Rupam

Similar Messages

  • Reoccuring missing secondary indexes in BI systems

    Hi Gurus,
    I'm been experiencing the problem of missing secondary indexes for some time, and I would like to get to the bottom of this problem.
    These are a few of the missing indexes (from DB02):-
    /BIC/F100294-900
    /BIC/F100365-900
    /BIC/F100366-900
    /BIC/F100368-900
    /BIC/F100369-900
    /BIC/F100386-900
    /BIC/FZCFIGRLP-900
    /BIC/FZCGLECRD-900
    /BIC/FZCGLECRD2-900
    /BIC/FZCGLECRD3-900
    TSP03-1
    TSP03L-A
    Any idea what could be causing this???
    And how do I solve this problem??? And how can I prevent these from reoccuring again???
    Thanks.
    Cheers,
    KeatSeong

    I see missing indexes on DB02 as well and ran SAP_INFOCUBE_INDEXES_REPAIR and I just have a couple more questions that I think is relevant to this chain:
    1) It repaired some fact indexes like /BIC/F* and dimension indexes like /BIC/D* but in the report showed as follows for those cubes:
    0  ZPP_C008     :          0  secondary indexes repaired.
    2) I had some other dimension indexes like /BIC/D* that did not get repaired and I'm wondering why. See 4) below for how I repaired those.
    3) I ran RSRV and these missing indexes like /BIC/D* do not show up as being an issue
    4) When I run RSDU_INFOCUBE_INDEXES_REPAIR on that missing index like /BIC/D* I get E_REPAIRED = 0 and system error: RSDU_INFOCUBE_INDEXES_REPA_ORA but when I refresh DB02 the index is gone. When I go to RSDU_INFOCUBE_INDEXES_REPA_ORA and run it I got e_reparied - 11
    Thanks for all your help.
    Mike
    Edited by: Michael Hill on May 26, 2010 6:49 PM

  • Missing secondary indexes

    Hello Gurus,
       Hope you are doing good !  I have few missing secondary indexes. I have corrected them in rsrv with the correct error option but still most of them seem to be back in DB02. Warnings have occured for few cubes being : Oracle:Index/BI0/SDOC_NUMBER~0 has possible degenareted.
    I checked in the process chains but the indexes are successfully built. Any sugestions pls let me know.
    Kind Regards,
    Sunitha

    Hi Sunitha,
    Try checking these indices from cube/DSO Performance tab and try with the repair option available there.
    Sometimes, it might be possible to the tablespace problem to build the indices. Check those too also from DB02.
    Regards,
    Srinivas.

  • Data Error in the Query/Report after selective data deletion for infocube

    Hi Experts,
    Please advise what i was missing and what went wrong...
    I got a Query (Forecast) on a Multicube...which is based on 2 Infocubes with Aggregates...
    As i identified some data discrepency..yesteraday i performed selective data deleation on one of the Infocube
    and executed report yesteraday and the results in the query are correct...
    When today i executed the same report i am getting different results..
    When i compared the results of the report with that of data in cube they are not matching
    The report is not displaying the data in cube..for some rows it is displaying the data in the cube but for some rows it is just displaying same as the above row
    there is no data loaded into info cube after selective deleation
    Do i need to perform request compression and fill the aggregated after selective deleation
    Please advise what went wrong

    Hi Venkat,
    No i haven't done anything on aggregates before or after selective delete
    As there is not data load after the selective delete according to SAP Manual we don't need to perform any thing on aggregates...as selective data deletion on cube will delete data from aggregates as well
    Please update how to identify error

  • DBACOCKPIT reports missing secondary indexes even though they exist .

    Hi all,
           On our BI system (7.0) on DBACOCKPIT, system reports some secondary indexes missing even though they already exist.
         Any suggestions for the cause of the problem or what to investigate?
    regards,
    K

    Hi,
    When was statistics updated last time. Update the statistics and chk if the problem is still shown.

  • TABLESPACE cleanup not happening after table data delete

    Hi all
    I have a partitioned table with 4 partitions all residing in a single tablespace. I populated the table with sample data and then deleted all with a simple delete statement followed by a commit. But the tablespace is still showing data from the 4 partitions under the bytes column in query below:
    select segment_name, partition_name, tablespace_name, bytes
    from dba_segments
    where tablespace_name='tb_name'
    Am I missing something here? Do I need to run some other command after delete and commit to fully flush out the data?
    FYI, my system specs are:
    Windows 2008 Server Standard (32-bit)
    ORACLE 11.1.0.7.0

    HI,
    LMT is Locally Managed Tablespace.
    +Moreover, when you say the blocks will not be available immediately when do you reckon they will be available? How do I go about automating this to free up space as soon as data is deleted?+
    You cannot automate this job, this is already automated by Oracle.
    +FYI, both pct_free and pct_used come up as empty values for my table.+
    reason for a NULL-value for PCT_USED is that the tablespace where the table resides uses automatic segments space management (ASSM). With ASSM there is no need for PCT_USED only for PCT_FREE. Oracle manages blocks automatically.
    You dont worry about releasing the space, Oracle will take care of it automatically.
    Go through the below link
    [http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tspaces.htm#ADMIN10065]
    [http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/schema.htm#sthref2100]
    [http://www.dba-oracle.com/art_builder_assm.htm]
    This is an extract form Oracle docs
    Understanding Reclaimable Unused Space
    Over time, updates and deletes on objects within a tablespace can create pockets of empty space that individually are not large enough to be reused for new data. This type of empty space is referred to as fragmented free space.
    Objects with fragmented free space can result in much wasted space, and can impact database performance. The preferred way to defragment and reclaim this space is to perform an online segment shrink. This process consolidates fragmented free space below the high water mark and compacts the segment. After compaction, the high water mark is moved, resulting in new free space above the high water mark. That space above the high water mark is then deallocated. The segment remains available for queries and DML during most of the operation, and no extra disk space need be allocated.
    You use the Segment Advisor to identify segments that would benefit from online segment shrink. Only segments in locally managed tablespaces with automatic segment space management (ASSM) are eligible. Other restrictions on segment type exist. For more information, see "Shrinking Database Segments Online".
    If a table with reclaimable space is not eligible for online segment shrink, or if you want to make changes to logical or physical attributes of the table while reclaiming space, you can use online table redefinition as an alternative to segment shrink. Online redefinition is also referred to as reorganization. Unlike online segment shrink, it requires extra disk space to be allocated. See "Redefining Tables Online" for more information.Regards,
    Vijayaraghavan K

  • Missing secondary indexes ~P

    Hi, when i check the Tx DB02 i have an alert with somw missing indexes like that
    /BI0/E0BPM_C01~P
    /BI0/E0BPM_c02~P
    /BI0/E0COPA_C02~P
    /BI0/E0COPA_C04~P
    But i don't have option to create this index, so?
    how can i create this indexes?

    hi,
    You should have the authorization for maintenance for creating the missing indexes.
    Please check if you have the authorization for object S_RZL_ADM , if not then ask some BASIS person to do it,
    regards,
    Arvind.

  • Missing some records after Loading Data in Oracle 11g Release 1

    Hi All,
    I wrote a script to load one million records into the database using all insert commands.
    I know there is a faster way using SQL Loader- but i am in the process of learning but ran out of time.
    Anyhow, 1 million data was injected into the database but only 999998 records are there....does anyone know why?
    Is there a way I can find out which data was rejected?
    thanks

    Hello,
    It could be nice that your script spool a log.
    By that way, you could more easily catch the error and the detail of the rows rejected.
    Best regards,
    Jean-Valentin

  • Data deletion on primary index and secondary index

    Hello, I have a question regarding data deletion in BDB-JE.
    Suppose I have an Entity class which has a primary index and a secondary index, the secondary key does not have outer related entity. So when I want to delete this entity, is it correct we only need to remove the entity from primary index? or I also need to do it for secondary index or just remove it from secondary index and internally BDB_JE will remove it from primary index?
    Thanks
    Anfernee

    You can delete an Entity using the delete method for primary index or the secondary index. When an entity is deleted, secondary index records are automatically deleted. The primary and secondary indices are always kept in sync.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error when recreate secondary indexes

    hi all
    in db02 i have two missing secondary indexes.
    when i try recreate :
    in db02  select missing index -> choose processing type: direct processing -> create
    i have error :
    Internal error 1  in module DD_LONGNPROT_NAME_GET occurred
    Diagnosis
    An unexpected SQL error occurred in the ABAP/4 Dictionary interface.
    System response
    A system log entry has been written. This gives more precise information about where the termination occurred and the reason for the termination. The current transaction has been cancelled.
    Procedure
    Please check the system log and eliminate the cause of the SQL error.
    in sm21 no errors
    in db alert log no errors
    how can resolve this problem?
    thanks

    Hi Andrey,
    Please try to active the secondary indexes  in transaction SE14. Please gothrough the note 1248769 as how to active the
    indexes.
    Many thanks.
    Mohammed Hussain.

  • DSO activation problem after creating the secondary indexes

    Hi,
        I am facing the problem with DSO activation after creating the secondary indexes.
    •  Compared with Info Cubes there is no functionality available which allows dropping and recreating a secondary index before/after the data activation.
    As a workaround I can write a simple report which drops and creates the indexes on database level.
    By using a process chain, we can simply insert the drop index report before data activation and the create index report after the data activation process.
    Can any body help me step by step procedure or Material to write the programs for delete index and create index reports on DSO object?..
    Thanks in advance for your help.
    Thanks & Regards,
    Bala

    hi,
    in BI if you are using the dso for reporting then you can simply chk the settings of dso for SID generation.
    no need to create the indexes or delete it.
    if the dso is not used for report then no need to use indexes.
    Ramesh

  • How-To "Refresh a table of data after inserting or deleting"

    I'd like to say a word on the how-to article "How to refresh a table of data after inserting or deleting a row using ADF".
    (http://www.oracle.com/technology/products/jdev/howtos/1013/updtable/index.html?_template=/ocom/technology/content/print)
    I spent a lot of time on it because I needed help in implementing simple CRUD functionality on a table, using JSF-ADF-TopLink technologies.
    While the the article does provide correct steps, it is in one important place not specific enough, so the reader may easily get stuck. In section "Refresh the data table", point 1: when you double click on the removeEntity() button, in Structure window, then you do not get the required dialog. You get CommandButton Properties dialog.
    You must click on the removeEntity() button in Editor's Design view. But even there you may get the CommandButton Properties dialog, not managed beans dialog.
    You may resolve that by going to JSF configuration file, faces-config.xml, and switch to Overview view. This will show you the managed beans that you have.
    Then, you may already have a backing bean for the page. You can use that and avoid creating a new managed bean.
    I could understand what the operations mean only after very careful reading of "Creating More Complex Pages", section "Overriding Declarative Methods" in JDeveloper Help (or in ADF Developer's Guide PDF document).
    In general: I believe that "ADF bindings" need more conceptual explanation, maybe in form of an article. Grammatical form "bindings" may create a false understanding that "bindings" are just references. But they are not -- ADF bindings are active objects that handle traffic between UI components and Data Controls. It seems that "bindings" even communicate among themselves. Maybe it would be more understandable to differentiate strictly between "binding objects" (or "binders"?), binding object definitions and binding object references.
    It would be very helpful to have a diagram showing grahically what specific binder objects are created in a small apllication (2-3 pages using 1-2 tables), with whom they communicate and what type of data is passed on.
    Priit

    Hi
    Thanks for your infos.
    Yes exactly I use almost the same code you have post here.
    Could You answer to my next questions?
    First - >what do you mean by saying that "it's not good idea using refreshing in IE?" Of course I use refreshing in backing_bean for my button "remove" that removes row, commit changes to database and refresh table, almost the same as You said in your post:
    Code in backing_bean is and comments on difference to Your code is below:
    public commandButton2_action1(){
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("removeEntity");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    //above remove entity, but I dont now if it do commit to database? So i do it below
    OperationBinding commit1 = bindings.getOperationBinding("Commit");
    commit1.execute();
    //and at the end I refresh my table, "findAllRezerwacja1 - it is an id of the methodAction, not the iterator -> is it ok? or should I change to Iterator id?
    OperationBinding requery = bindings.getOperationBinding("findAllRezerwacja1");
    requery.execute();
    return null;
    Page Definition code for this:
    <methodAction id="findAllRezerwacja1"
    InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" MethodName="findAllRezerwacja"
    RequiresUpdateModel="true" Action="999"
    ReturnName="SessionEJBLocal.methodResults.SessionEJBLocal_dataProvider_findAllRezerwacja_result"/>
    <table id="findAllRezerwacja2" IterBinding="findAllRezerwacja1Iter">
    <AttrNames>
    <Item Value="dataDo"/>
    <Item Value="dataOd"/>
    <Item Value="idRezerwacja"/>
    <Item Value="liczbaUczestnikow"/>
    <Item Value="prowadzacy"/>
    <Item Value="uwagi"/>
    </AttrNames>
    </table>
    <methodAction id="removeEntity" InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" MethodName="removeEntity"
    RequiresUpdateModel="true" Action="999">
    <NamedData NDName="entity"
    NDValue="${bindings.findAllRezerwacja2.currentRow.dataProvider}"
    NDType="java.lang.Object"/>
    </methodAction>
    <action id="Commit" IterBinding="findAllRezerwacja1Iter"
    InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" RequiresUpdateModel="true"
    Action="2"/>
    </bindings>
    //and rest of code for Iterator etc
    My second question is, why when you use refresh button in IE (I know is not recommended as You said, but sometimes user do it, so I want prevent situations that I will describe here) so when I press refresh button in IE exactly after removing one row by clicking my button, refreshing by pressing IE button is doing the same --> is deleting next row. How to stop deleting row, when for example user would press IE refresh button after pressing remove button for table. If I change selection in table after deleting row, and press refresh button in IE, instead of deleting row, I got error message: JBO-29000: JBO-35007: and
    JBO-35007. So where Im doing wrong. Maybe I should do sth with postback ? Could You help me? Thanks in advance
    Last one question: what is the difference between using delete and removeEntity from operations node? Im now reading carefully ADF Dev Guide, so I hope I can find infos there? But if You know, please answer to this question.
    Thanks

  • Missing indexes after system copy

    Hi All
    we have around 70,000 missing indexes after the system copy
    offline export from
    source with sun solaris oracle
    To 
    Linux oracle
    but these appeared after we Run  SGEN , which took 60 hours for a 200 Gb database.
    and target system response is also slow , how to go ahead with this issue
    we have checked export and import logs , none of the packages were missed
    1 Why these missing indexes after SGEN , and why SGEN for 60 hours
    2  when we check the Tables which appeared in Missing indexes ,from SE14  it says In Consistency with Data dictionary
    3  and the other error , is  Index Missing in the database ,
    4  but we cant create all these manually.
    Regards

    Hi Matt
    Thanks for the response
    After sap suggestion  , we have done only import again, with 721 R3load same as export.
    but still the R3load.exe.log of import shows as done with 720 kernel.
    import R3load.exe log       //bas/720_REL/src/R3ld/R3load/R3ldmain.c#
    export R3load.exe log     //bas/721_REL/src/R3ld/R3load/R3ldmain.c#10 $ SAP
    But when we compare  the sapinst_dev and AGR logs both from export and import
    both are referring the same 721 R3load version ,
    //bas/721_REL/src/R3ld/R3load/R3ldmain.c
    still we have same missing indexes issue , after we did the import again.
    Are we making any mistakes in export  , Any suggestions are welcome
    hi all , kindly respond with your inputs , on this
    Regards

  • The fact table of InfoCube 0OPA_C11 is missing 2 secondary indexes

    Hello experts,
    in RSRV i got the above mentioned message for my InfoCube 0OPA_C11. Before I tried to delete, repair and build up my indices in performance tab of the InfoCube.
    I followed SAP Note '401242 - Problems with InfoCube or aggregate indexes'.
    -> SAP_INFOCUBE_INDEXES_REPAIR repaired indexes and show no further problem, but problem still exists, in performance tab light is red and RSRV brings same message.
    Does someone have any idea what further I can do?
    Best regards,
    Peter

    Peter, refer to note 928037, it's FAQ about MaxDB indexes. I gave it a quick reading and I believe the answer to this issue lies beneath this doc! There are ways to check consistency of individual index, bad indexes and ways of eliminating them.
    Also, refer to the below blog. Check the status of the secondary index in this case. I suspect they are bad or missing. There are ways to recreate them. Keep your basis guys in the loop.
    http://wiki.sdn.sap.com/wiki/display/MaxDB/MaxDBIndex%28Secondary+Key%29
    Hope this helps.
    Edited by: Mann Krishna on Sep 10, 2010 3:50 PM

  • How do I reclaim the unused space after a huge data delete- very urgent

    Hello all,
    How do I reclaim the unused space after a huge data delete?
    alter table "ODB"."BLOB_TABLE" shrink space; This couldn't execute with ora 10662 error. Could you please help

    'Shrink space' has requirements:
    shrink_clause
    The shrink clause lets you manually shrink space in a table, index-organized table or its overflow segment, index, partition, subpartition, LOB segment, materialized view, or materialized view log. This clause is valid only for segments in tablespaces with automatic segment management. By default, Oracle Database compacts the segment, adjusts the high water mark, and releases the recuperated space immediately.
    Compacting the segment requires row movement. Therefore, you must enable row movement for the object you want to shrink before specifying this clause. Further, if your application has any rowid-based triggers, you should disable them before issuing this clause.
    Werner

Maybe you are looking for