Do indices change, when data of table changes?

Hello,
if a table has got many indices and is changed frequently, do the indices change as well. Are all indices corresponding to that table changed. Are these indices processed in any way?
thanks, resi

"in indexes, the space can be reused only by rows with the same key-filed"
That is incorrect. The space left in a index by a deleted row can be used by any key that is between the prior and next keys. For example, if you have Index entries
Entry 1  Ball
Entry 2  Bell
Entry 3  BollNow, you delete Bell, the inndex would look like:
Entry 1  Ball
Entry 2  
Entry 3  BollNow, add Bill, and the index would look like:
Entry 1  Ball
Entry 2  Bill
Entry 3  Bollno wasted space.
Rebuilding indexes is a waste of time and resources in the vast majority of cases.
Search Tom Kyte's site here for rebuilding indexes or reorganizong indexes for many, often lively, discussions.
John

Similar Messages

  • Transport Request should be created when data in table gets saved

    Dear All,
    I have a requirement that I have a cross client table. When in a particular client say 800 the data gets saved then a transport request should be generated so that the data can be transported to other client. Can you please help me out how this can be done. I have created a table maintenance generator and there I have considered STANDARD RECORDING ROUTINE as recording routine. It is asking for workbench request.
    Please can you help me out?
    Thanks and regards,
    Atanu
    Edited by: Atanu Dey on Jan 24, 2008 5:48 PM

    Hi,
    you have to create a table(ZTEST) without the field 'MANDT'(Client). So that that table is client specific, so you save the data in the table(ZTEST), it will ask TR.
    i hope it may be useful.
    Regards,
    Boobalan. S

  • How to trigger a workflow when data inside a table changes

    Hi
    How to trigger a workflow when data inside a table changes ??
    We need to trigger a workflow when STAT2 field value in PA0000 table changes.
    rgds
    Chemmanz

    Make use of Business Object BUS1065. In this business Object you have an attribute Status which you can use. There are a number of events that will get triggered when the status is changed.
    Thanks
    Arghadip

  • Sql query to bind data from grid and print total count and amount total when date changes

    SELECT SLHD.VOUCH_CODE,SLHD.VOUCH_DATE,SLHD.VOUCH_NUM,SUM(SLTXN.CALC_NET_AMT) AS AMT,ACT.ACT_NAME,SUM(SLTXN.TOT_QTY) AS QTY
    FROM SL_HEAD20132014 AS SLHD,ACCOUNTS AS ACT,SL_TXN20132014 AS SLTXN
    WHERE SLHD.ACT_CODE=ACT.ACT_CODE AND SLTXN.VOUCH_CODE=SLHD.VOUCH_CODE
    GROUP BY SLHD.VOUCH_CODE,SLHD.VOUCH_DATE,SLHD.VOUCH_NUM,ACT.ACT_NAME
    ORDER BY SLHD.VOUCH_DATE 
    i want to print total quatity and total sale in grid when data changes
    like
    date amount quantity
    01/02/2013 1200 1
    01/02/2013  200 1
    01/02/2013  1400 2 // date changes here 
    02/03/2013 100 1 
    02/03/2013 50 4
    02/03/2013 150 5 // date changes and so on

    this query only print all the data from table i want total quantity and total amount of daily sale in same grid when ever date changes
    You may add the date filter to Visakh's query:
    SELECT SLHD.VOUCH_DATE,SUM(SLTXN.CALC_NET_AMT) AS AMT,SUM(SLTXN.TOT_QTY) AS QTY
    FROM SL_HEAD20132014 AS SLHD,ACCOUNTS AS ACT,SL_TXN20132014 AS SLTXN
    WHERE SLHD.ACT_CODE=ACT.ACT_CODE AND SLTXN.VOUCH_CODE=SLHD.VOUCH_CODEand SLHD.VOUCH_DATE = @yourdate --passed from the front end application
    GROUP BY SLHD.VOUCH_DATE
    WITH CUBE
    ORDER BY SLHD.VOUCH_DATE
    Having said, each time when you select the date, you query the table would be expensive method. May be you can filter the date within your dataset already populated if you have entire data in the dataset.

  • Best event when data changes via a user in a datagrid

    How do I capture when data changes via a user in a datagrid?
    change event?

    thanks mate but I'm not sure where to put it:
    <mx:AdvancedDataGridColumn headerText="sell" dataField="sell" textAlign="right" editable="true">
                    <mx:itemEditor>
                        <fx:Component>                   
                        <s:MXAdvancedDataGridItemRenderer>   
                            <s:TextInput width="100%" text="{data.sell}" fontWeight="bold" contentBackgroundColor="#eeeeff" color="#3333ff"  textAlign="right"  restrict=".0-9" maxChars="11">                                           
                            </s:TextInput>                                               
                        </s:MXAdvancedDataGridItemRenderer>                                       
                        </fx:Component>               
                    </mx:itemEditor>                               
                </mx:AdvancedDataGridColumn>

  • How to save history change data on table

    Hi all
    I'm using Oracle Database 11g
    Data of tables often is changed. I want to save history person changed it.
    Anybody help me!
    Thankyou
    Thiensu2810

    Hi
    you can use
    flashback data archieve
    CREATE FLASHBACK ARCHIVE DEFAULT test_archive1
    TABLESPACE example
    QUOTA 1 M
    RETENTION 1 DAY;
    CREATE FLASHBACK ARCHIVE test_archive2
    TABLESPACE example
    QUOTA 1 M
    RETENTION 1 DAY;
    The next statement alters the default flashback data archive to extend the retention period to 1 month:
    ALTER FLASHBACK ARCHIVE test_archive1
    MODIFY RETENTION 1 MONTH;
    The next statement specifies tracking for the oe.customers table. The flashback data archive is not specified, so data will be archived in the default flashback data archive, test_archive1:
    ALTER TABLE oe.customers
    FLASHBACK ARCHIVE;
    The next statement specifies tracking for the oe.orders table. In this case, data will be archived in the specified flashback data archive, test_archive2:
    ALTER TABLE oe.orders
    FLASHBACK ARCHIVE test_archive2;
    The next statement drops test_archive2 flashback data archive:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_5009.htm#SQLRF20008
    hope this helps
    Zekeriya

  • Saved VI file size changes when data is visible on a graph but not the default value

    If a VI is saved when data is visible on a graph, the file size is larger; even though the default is set to be a blank graph.  I have tested this in LabVIEW 8.6 and 2009.  If you load the larger file, the graph is blank as expected.  If this behavior is by design, it appears odd to me.
    To duplicate the issue:
    Create a blank VI.
    Add a Sine Waveform VI and set the number of samples to 1,000,000.
    Add a Waveform Graph VI that spans the entire monitor and connect it to the output of the Sine Waveform VI.
    Save the VI and note the file size.
    Run the VI.
    Save the VI and compare the size to the original size.
    The VI file size is larger.
    In the Waveform Graph, select “Reinitialize to default value.
    The VI file size returns to It’s original size.

    Your obeservation is correct, and expected behavior.
    This behavior is useful when you have inputs that you would like to set as defaults for the user.
    Obviously, if there is a value to be saved, it will require some memory to store the value.
    If the input is left empty by default, that memory is made available again.
    It may not be easy to think of a good use for this for a graph, but think about for numeric or string controls.
    What if the user isnt sure how they should input a certain parameter or value?
    You could store a default value so they could see how they should input their value.
    Message Edited by Cory K on 09-15-2009 11:12 AM
    Cory K

  • Trigger a process(IDOC) when Data in Z-table updated

    Hi All,
    I am working on an interface and the outbound IDOC from R/3 to XI needs to be triggered when a particular field value in a Z*table changes.
    So far I am able to trigger the IDOC from the calling Z*prog which updates this table, but I need some exit, PAI etc which will get triggered only when the data in table is updated.
    Current Flow chart:
    Z-prog starts--->Updates a Z-table--->if sy-subrc=0--->I create an IDOC from the Z-prog itself
    What I need:
    Z-table is updated--->check if particular filed value changed--->Trigger IDOC
    Is it possible to do this.
    Many thanks
    Shirin

    Hi Balu,
    I am triggering my IDOCS from the Z*program itself.
    The trigger point is when I have successfully updated the table (sy-subrc = 0).
    Then I have used the code below to populate my IDOC. I have also maintained a distribution model, so that is the reason I pass only the idoc type in edidc segment and do not pass any port , receiver etc.
    Hope you find the code useful.
    Regards
    Shirin
    Reward points if this was helpful.
    *Local Data Declaration
      DATA:  wa_msg_header TYPE zca_msg_header,
             wa_edidc      TYPE edidc,
             wa_edidd      TYPE edidd,
             i_edidc       TYPE edidc OCCURS 0,
             i_edidd       TYPE edidd OCCURS 0,
             wa_trailer    TYPE zca_gs_trailer,
             wa_count(10)  TYPE n,
             wa_allocation_response TYPE zca_allocation_response.
    *Populate IDOC segments
    * 1. Save the message type and the basic IDoc type* in the control segment
      MOVE 'ZMT_ALLOCATION_RESPONSE' TO wa_edidc-mestyp.
      MOVE 'ZGS_ALLOCATION_RESPONSE' TO wa_edidc-idoctp.
    * 2. Populate the Genius specific Message Header 'ZCA_MSG_HEADER'
      wa_msg_header-source        = 'SOURCE_SYST'.
      wa_msg_header-destination   = 'DESTINATION-LS.
      wa_msg_header-message_id    = ''.  "Populate this in XI
      wa_msg_header-date_time     = ''.  "populate this in xi.
      wa_msg_header-message_typ   = 'I'.
      wa_msg_header-status        = 'S'.
      MOVE 'ZCA_MSG_HEADER' TO wa_edidd-segnam.
      MOVE wa_msg_header    TO wa_edidd-sdata.
      APPEND wa_edidd       TO i_edidd.
      CLEAR wa_edidd.
    * 3 Populate the ALOCATION_RESPONSE segment
      CONCATENATE 'EXAM'
                   sy-datum
                   sy-uzeit
                   INTO
                   wa_allocation_response-uid.
    * wa_allocation_response-uid                 =  i_set_number  .
      wa_allocation_response-set_number          =  i_set_number .
      wa_allocation_response-trigger             =  '1' .              "Always default to Allocation Change   .
      wa_allocation_response-next_a_exam         =  i_next_a_exam .
      wa_allocation_response-miles_to_a          =  i_miles_to_a .
      wa_allocation_response-next_b_exam         =  i_next_b_exam .
      wa_allocation_response-miles_to_b          =  i_miles_to_b.
      wa_allocation_response-next_major_exam     =  i_next_maj_exam  .
      wa_allocation_response-miles_to_major_exam =  i_miles_to_maj_exam .
      MOVE  'ZCA_ALLOCATION_RESPONSE' TO wa_edidd-segnam.
      MOVE   wa_allocation_response   TO wa_edidd-sdata.
      APPEND wa_edidd                 TO i_edidd.
      CLEAR  wa_edidd.
    *4 Populate the Trailer record 'ZCA_TRAILER'
      wa_trailer-data_marker  = 'T'.
      wa_trailer-checksum     = wa_count.
      MOVE 'ZCA_TRAILER' TO wa_edidd-segnam.
      MOVE wa_trailer       TO wa_edidd-sdata.
      APPEND wa_edidd       TO i_edidd.
      CLEAR  wa_edidd.
    * Check for distribution model and create the IDOC
      CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
        EXPORTING
          master_idoc_control            = wa_edidc
        TABLES
          communication_idoc_control     = i_edidc
          master_idoc_data               = i_edidd
        EXCEPTIONS
          error_in_idoc_control          = 1
          error_writing_idoc_status      = 2
          error_in_idoc_data             = 3
          sending_logical_system_unknown = 4
          OTHERS                         = 5.
    * No need for error handling here as the IDOC will be created and ststus record will
    * mention the latest ststus including any error message.

  • Progress indicator changes after publishing

    I have a 50 question assessment. When I publish the file, the
    Progress indicator changes from 1 of 50 etc... to 2 if 51 etc.. So,
    question one says it is question 2 and so on. What can cause this
    and how do I fix it? Thanks

    Hi dodgersmom and welcome to our community
    You probably have one or more Click Box objects configured
    with scoring enabled. This is a common issue we see here in the
    forums. One easy way to fix it is to press F9 to obtain the
    Advanced Interaction dialog. Once there, look at Click Boxes and
    DE-select reporting/scoring options.
    Cheers... Rick

  • No data in table TRFCQDATA  when update IM in ECC after EWM PGR

    Hi Experts,
    In our client system, when Inbound delivery (Customer Return) has been completed PGR in EWM, ECC system cannot be updated in IM stock and  occurs an error :No data in Table TRFCQDATA(Internal) via SMQ2 query it.
    Who can advise how to solve it?
    Many thanks!
    Julia

    Thanks Sathish!
    Yes, after re-regisiering manually, the queue will be processing.
    However we need all qRFC queue can be automatically processed immediately, not manally.
    Who can advise what setting we are missing ?
    Thanks & Best regards,
    Julia

  • ORA-00054 error when loading Oracle table using Data Services

    Hello,
    we are facing ORA-00054 error when loading Oracle table using BO Data services
    (Oracle 10g database, BODS Xi 3.2 SP3)
    Test Job performs
    1- truncate table
    2- load table (tested in standard and bulk load modes)
    Scenario when issue happens is:
    1- Run loading Job
    2- Job end in error for any Oracle data base error
    3- When re-running the same Job, Job fails with following error
         ORA-00054: resource busy and acquire with NOWAIT specified
    It seems after first failure, Oracle session for loading the table stays active and locks the table.
    To be able to rerun the Job, we are forced need to kill Oracle session manually to be able to run the Job again.
    Expected behaviour would be : on error rollback modifications made on table and BODS stops Oracle session in a clean way.
    Can somebody tell me / or point me to any BODS best practice about Oracle error handling to prevent such case?
    Thanks in advance
    Paul-Marie

    the ora-0054 can occure depending how the job failed before. If this occures you will need the DBA to release the lock on the table in question
    Or
           AL_Engine.exe on The server it creates the Lock. Need to Kill Them. Or stop it..
    This Problem Occurs when we select The Bulkloading Option in orclae  We also faced the same issue,Our admin has Killed the session. Then everything alright.

  • 4.0 EA3 - Data Default not duplicated when copying a table

    I noticed that when copying a table from one schema to another, if a column has a data default property it is not preserved.
    Steps to recreate:
    Copy a table that has at least one column with a non-null DATA_DEFAULT property (right click on table -> table -> copy)
    Double click on the new table, and open the Columns tab. Notice that all values under DATA_DEFAULT are null.

    The same behavious exists in 3.2.20.09 and whether the table has existing data or not.

  • How to find out when data was deleted from table in oracle and Who deleted that

    HI Experts,
    Help me for below query:
    how to find out when data was deleted from table in oracle and Who deleted that ?
    I did that to fidn out some data from dba_tab_modifications, but I m not sure that what timestamp shows, wether it shows for update,insert or delete time ?
    SQL> select TABLE_OWNER,TABLE_NAME,INSERTS,UPDATES,DELETES,TIMESTAMP,DROP_SEGMENTS,TRUNCATED from dba_tab_modifications where TABLE_NAME='F9001';
    TABLE_OWNER                    TABLE_NAME                        INSERTS    UPDATES    DELETES     TIMESTAMP         DROP_SEGMENTS TRU
    PRODCTL                        F9001                                                     1683         46       2171            11-12-13 18:23:39             0                   NO
    Audit is enable in my enviroment?
    customer is facing the issue and data missing in the table and I told him that yes there is a delete at 11-12-13 18:23:39 in table after seeing the DELETS column and timestamp in dba_tab_modifications, but not sure I am right or not
    SQL> show parameter audit
    NAME                                 TYPE        VALUE
    audit_file_dest                      string      /oracle/admin/pbowe/adump
    audit_sys_operations                 boolean     TRUE
    audit_syslog_level                   string
    audit_trail                          string      DB, EXTENDED
    please help
    Thanks
    Sam

    LOGMiner --> Using LogMiner to Analyze Redo Log Files
    AUDIT --> Configuring and Administering Auditing

  • Error when reading the DDIC-data for table

    Hi Tobias
    We upgraded from DMIS 2011 SP04 to SP07. We are in development system.
    To test initial load, we stopped replication for an existing table and then started replication for the same table.
    Mass transfer id connects ECC system to BW on HANA system.
    Replication errored with the following message:
    Error when reading the ddic-data for table MARD (RFC destination DWACLNT010).
    Looking for your guidance.
    Kind Regards
    Kamaljit Vilkhoo

    Was able to solve using oss note 1972533.

  • Date delimit functionality when maintaining Z table

    Hi all,
    I have Begin date and End date fields in a Z table and  i want to achieve automatic date delimit functionality.
    So i have the subscreen area in my screen and called a std program and screen inside the subscreen. I have writen the below coding in the PBO event of my screen.
    MODULE DATE_D0001_IF_EXP.                       
    CALL SUBSCREEN DATELIMITS  INCLUDING 'SAPLSVIM' '0001'.                     
    " DATELIMITS  - name of my subscreen
    But when maintaining the table in SM30, the BEGDA and ENDDA field headings are displayed. But those date input fields are not getting displayed.
    Can someone tell me why the date fields from the std program, screen are not displayed inside my screen?
    Edited by: Shanthi on May 2, 2011 1:59 PM

    Hi,
    There are some imports being done in the program for screen 0001. Based on these values, the screen fields are made visible and invisible etc.
      IMPORT d0001_field_tab
             d0001_status
             x_header TO xheader
             current_date
             date_to_delimit
             date_to_posit
             vim_begdate_name
             vim_enddate_name
        FROM MEMORY ID vim_memory_id_2.
    So try doing your validation with the events available in table maintenance,.
    Regards,
    Harish

Maybe you are looking for

  • Premier Pro has encounter an error...

    Does anybody knows what this error means?  volume/buildisk/builds/ringo64/shared/adobe/mediacore/backend/make/../src/clip/masterclip. cpp-2892 The media + file was given to me, I worked on the file and sent it back, now they're getting this error and

  • MacBook Pro and some gaming

    I have seached through a bunch of the threads here, but still can't find solid information about gaming with a MBP. I the last gen 1.5 G4 Macbook that I travel with, but lately Ihave been really upset with the performace I get when playing games (spe

  • To change profitcenter in accounting document at line item level

    Hi guru's, I have a requirement that i need to change the profitcenter value in the accounting document based on the G/L number and reference key number when i am releasing the billing document number through vf02. i tried in many ways but i am unabl

  • Questions on image size and duration

    im putting still pictures into the video timeline. Is 640x480 the proper size for TV? Is there a way to size the images in FCP or do i have to do it in photoshop? Also, im trying to make a really really quick flashing sequence of photos, but when i t

  • Macbook Air with appleTV

    Hi, I have an old Mac book air with Mac OS X 10.6.8 (2008 or 2009) and I want to buy apple TV. I am not sure whether it will work with my old macbook air. Could you please advice? does it help to upgrade the operating system if it does not work? than