How to set index to tables?

Hi,
My database is having more than 50000 tables, I would like to set index to all my tables, please suggest me how to set index to 50000 tables...?
Thanks
Giri

user10737570 wrote:
Hi,
My DB version 10.2.0.3.0 running on IBM-AIX....Thanks for it
As is said earlier my DB consist of 50k tables.
Each table consist of millions of rows.
So, while I try to access some rows, It takes more time (especially while running long query)
Now I decided to set index to the tables by giving
create index fbind on fdtab(owner);
so that an index has been created with taking nearly 5 hours.
so there are thousands of tables left to set the index.....Its an utterly bad idea to create indexes assuming that their presence will make the queries faster. The data selection, predicates, conditions, statistics of the tables, good/bad sql and lastly, optimizer issues, they all play a very important role in the performance. Just assuming that with index creation , your queries will be faster, I don't think its a reasonable thought to have. You have got a lot of tables as per your saying , it would take huge resource and time to create indexes on all of the tables. In addition to this issue, not all the tables would be requiring the similar type of indexes as well. Some may require B-tree while others may rquire Bitmap. Also , you must note that indexes will make dmls more slower. So Ishall again suggest that you benchmark the creation of indexes with a little more care.
HTH
Aman....

Similar Messages

  • How to set optional for table structure in functiona module

    hi experts,
    as i have small doubt regarding
    while publishing web service by using rfc where i am unable to set optional for table structure i am able to put optional for import parameters may i know how to set optional for table structure ....
    reagrds prabhanjan

    Ignoring the TABLES/CHANGING/EXPORTING argument...
    while publishing web service by using rfc where i am unable to set optional for table structure i am able to put optional for import parameters may i know how to set optional for table structure
    Why not?  There's no issue with marking a TABLES interface parameter with 'Optional' and publishing the function module or function group as a web service...

  • How to set the column table so it can not be moved !

    how to set the column table so it can not be moved !

    m_table.getTableHeader().setReorderingAllowed(false);
    m_table.getTableHeader().setResizingAllowed(false);

  • How to set scrollPolicy in table

    In the documentation in appendix D in the developers guide [http://docs.oracle.com/cd/E35521_01/web.111230/e16181/ap_tablet.htm#BABCEBJJ] which says :
    Table
    By default, when rendered on tablet devices, tables display a footer that allows the user to jump to specific pages of rows. For all tables to display on a tablet device, you should:
    Place the table components within a flowing container (that is, a component that does not stretch its children).
    Set the autoHeightRows attribute to 0.
    Set the scrollPolicy attribute to auto (if the page may also run on a desktop device) or page (if the page will only run on a tablet).
    How to set scrollPolicy? I can use this pagination in desktop device?
    If anyone has gotten this feature to work, an example would be much appreciated.
    Thanks

    No, you can't use this for pagination on a desktop device.
    Check out http://andrejusb.blogspot.de/2011/05/oracle-adf-11g-custom-table-pagination.html
    Timo

  • How to set colors to table control?

    Hi all,
    can we set colors to tables columns and rows?? How can we acieve this? Any help please
    Thanks,
    Madhan.

    Hi All
    thanks for your replies..
    data tab type IF_main_view=>Elements_segment.
      data line type IF_main_view=>Element_segment.
      data node_info type ref to if_wd_context_node_info.
      data attribute_info type wdr_context_attribute_info.
      data attr_value type WDR_CONTEXT_ATTR_VALUE.
      data wd_standard_cell type ref to cl_wd_table_standard_cell.
      data component like line of cl_abap_structdescr=>components.
      data wd_table_column type ref to cl_wd_table_column.
      node_info = lo_nd_segment->get_node_info( ).
      attribute_info = node_info->get_attribute( 'CELL_DESIGN' ).
    if component-name = 'SEGMENT'.
      wd_standard_cell->set_cell_design( CL_WD_ABSTR_MASTER_TABLE_COL=>E_CELL_DESIGN-BADVALUE_MEDIUM ).
    endif.
    i am trying to set color for  some colomns, but i am not getting any colors??? anything wrong in this.. please help
    thanks,
    Madhan.

  • How to handle Index Organized Tables in schema capture?

    I’m trying setup streams schema level between 2 database source 10.2.0.4 and 11g; one way streams;
    The source has Index Organized Tables with column rowed; Oracle streams doesn’t support data type rowed;
    Is it works around?
    Thanks

    At the moment, you can't do it declaratively. You have to do it in an event handler. Assuming you have the userid setup as a query parameter in the view object, something like this should get you started:
    public EventResult handleEvent(
    BajaContext context, Page page, PageEvent event) throws Throwable
    HttpSession session = context.getServletRequest().getSession(true);
    ViewObject view = ServletBindingUtils.getViewObject(context);
    String userid = session.getAttribute("userid");
    view.setWhereClauseParam(0, userid);
    view.executeQuery();

  • How to set all af:table with banding="row" and bandingInterval="1"

    i need all af:table in my project with two attribute banding="row" and bandingInterval="1", how to implement it
    by skin or css? pls give me a clue. thx

    Hi,
    skinning is for the look and feel (e.g. the color of the banding). The banding and banding interval is a component property that needs to be set on the page source
    Frank

  • How to set extended ascii table to ISO Latin-1?

    Hi,
    I need to specify a ascii table set to ISO Latin-1... anyone know how to do this?
    thanks in advance

    226 is the correct integer value for the character 'â'. The "extended ascii codes" on the page you cited come from the [cp437|http://en.wikipedia.org/wiki/Codepage_437] encoding, which is not what you should be using. The reason you see that other character (I assume it's 'Γ') is because the console on English-locale Windows machines uses cp437 by default. So your program is outputting the value in the platform-default windows-1252 encoding, but the console is mistakenly decoding the putput as cp437. You can force the console to use the correct encoding with the CHCP command, e.g. CHCP 1252 Internally, Java strings use the [UTF-16|http://en.wikipedia.org/wiki/UTF-16] encoding, which is identical to [ISO-8859-1|http://en.wikipedia.org/wiki/ISO/IEC_8859-1#ISO-8859-1] for the first 256 characters. If you're going to refer to Latin characters by their integer values, that's the conversion table you should be using.

  • How to set cursor in table control?

    I have a table control (Screen 300) to display invoice number and amount. For some checks we have around 200 invoices to be displayed.  When user enters the invoice number in invoice text box and click on OK, it should highlight the invoice number and amount row or set the cursor position.
    I have another problem.
    Screen 300 is being called from Screen 200. When the user clicks on OK in 300, 300 is getting closed. Acutally it should be displayed with Cusor position or highlighted row.
    I appreaciate your help ... Thanks

    I believe that you can use the SET CURSOR statement to do the first part of your requirement.  Something like this should work:
    SET CURSOR FIELD w_field LINE w_line.
    Here's the info from SAP help:
    Effect
    : The cursor is positioned on the screen element whose name is contained in upper case in field. The data object field must be character-type and flat. The screen layout or a table control is scrolled in the display so that the screen element on which the cursor is positioned is visible. If the specified screen element is not found, the statement is ignored.
    If the specified screen element is part of a table control or a step loop, the line of the table control or group of the step loop in which the cursor is positioned on the specified screen element must be specified using the addition LINE. For the data object line, the type i is expected. If there is no line or group for the value of line, or the addition LINE is not specified, the statement is ignored. The statement is also ignored if the addition LINE is specified and the screen element is not part of a table control or step loop.
    I hope this helps.
    - April King

  • How to set index in combo box to newly inserted item

    I have the following code:
    Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox2.SelectedIndexChanged
            If categoryString = "New" Then
                newCategoryString = InputBox("Enter new category name", "New Category")
                ComboBox2.Items.Add(newCategoryString)
                categoryString = ComboBox2.SelectedItem
            End If
        End Sub
    The combobox has the following collection of items
    Business
    Personal
    Home
    Vehicle
    Social
    New
    When the user selects New, the msgbox pops up  and the user enters the new category.  After choosing, the selected item defaults to New.  How can I determine the index of the newly inserted item?  I am using VB 2008 Express.
    Best regards,
    Randy Boulter

    Hi
    Here is my take on the question. This inserts the new item above the last item("New"), and gets the index accordingly. This keeps the "New" item at the bottom of the list.
    Private Sub ComboBox2_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox6.SelectedIndexChanged
    Dim cb As ComboBox = DirectCast(sender, ComboBox)
    If cb.SelectedItem.ToString = "New" Then
    Dim newCategoryString As String = InputBox("Enter new category name", "New Category")
    cb.Items.Insert(cb.SelectedIndex, newCategoryString)
    Dim newitemindex As Integer = cb.Items.IndexOf(newCategoryString)
    End If
    End Sub
    Regards Les, Livingston, Scotland

  • How to set value for table lines in web dynpro ?

    Hi experts,
    I'm new in webdynpro. My requirement is to set value to the second line when user press expand on first line.
    In method ONACTIONLOAD_CHILDREN , I use  get_static_attributes_table to get the current table records and change return table value .
    Then i user bind_table to pass table to the screen.
    It works fine for first time i press expand and collaps, but when i expand it again it throw out a dump 'OBJECTS_OBJREF_NOT_ASSIGNED'.
    Could any one please help to solve that?
    Thanks

    Hi Harsha,
    Thanks for your reply,I've check the dump details and it display like this:
    Information on where terminated
        Termination occurred in the ABAP program "CL_WDR_CONTEXT_ELEMENT========CP" -
         in "IF_WD_CONTEXT_ELEMENT~SET_ATTRIBUTE".
        The main program was "SAPMHTTP ".
        In the source code you have the termination point in line 40
        of the (Include) program "CL_WDR_CONTEXT_ELEMENT========CM007".
        The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in
        procedure "IF_WD_CONTEXT_ELEMENT~SET_ATTRIBUTE" "(METHOD)", but it was neither
         handled locally nor declared
        in the RAISING clause of its signature.
        The procedure is in program "CL_WDR_CONTEXT_ELEMENT========CP "; its source
         code begins in line
        1 of the (Include program "CL_WDR_CONTEXT_ELEMENT========CM007 ".
    First time i debug it work fine but the next time it dump with same import values.  And it even did not reach the logic i add when i expand it again.
    I'm not sure why it happen.
    My code in ONACTIONLOAD_CHILDREN is like this.
    *navigate from <CONTEXT> to <ITEM_DATA> via lead selection
      lo_nd_item_data = wd_context->path_get_node( path =
      `COMP_CONTEXT.ITEM_DATA` ).
    *get element via lead selection
      lo_el_item_data = lo_nd_item_data->get_element( ).
    *get all declared attributes
      lo_nd_item_data->get_static_attributes_table(
        IMPORTING
          table = lt_item_data ).
      LOOP AT lt_item_data INTO ls_item_data.
        IF sy-tabix = 2.
          ls_item_data-description = 'TEST'.
          MODIFY lt_item_data FROM ls_item_data TRANSPORTING description.
        ENDIF.
      ENDLOOP.
        lo_nd_item_data->bind_table( new_items = lt_item_data
        set_initial_elements = abap_true ).
        lo_nd_item_data->set_lead_selection_index( 1 ).
    First line was set selected but still got dump.
    Could you please help to check this ?
    Thanks & Regards
    Eric Li

  • How to set indexes in v10 ?

    Trying to set up an index, the author of the document provides an index to use, however when I try to "add" it, it tells me it is not supported ??
    Any ideas.

    Acrobat 6 saw Adobe licensing the Search / Catalog index build facility from a different vendor.
    When a pre-Acrobat 6 PDF is accessed (by Acrobat 6.x through X) to open the index an alert is presented.
    The alert dialog states:
    "This index is not compatible with this version of Acrobat. If you rebuild this index, it may not be searchable with older versions of Acrobat. Do you want t overwrite the exisitng file?"
    Two options are provided.
    --| Overwrite old index
    --| Create copy
    So, if you've end-users still in Acrobat / Adobe Reader 5.x or older you'd "Create copy" for them.
    For users of Acrobat / Adobe Reader 6.x through X you'd then build a new Catalog index.
    Or, if older versions is not an issue - use "Overwrite...".
    You'd use Acrobat Pro to do this.
    Be well...

  • Indexing XMLDB table of type XMLType

    Hi
    I have created an table in XML DB of type XMLType.
    Can anyone tell me how I can index this table?
    Oracle version is 9.2.0.3.0

    You should ask this question in teh Oracle XMLDB forum, or perhaps the Oracle Text forum (formerly interMedia Text).
    You will get a better, quicker answer there.

  • How to shift index in a table

    Hey,
    My program collects 5 pieces of information per object from user. Some of the input data is in String format, rest are Integers. I create an object from this data and put in into a table. My table contains max 10 pieces of information.
    I have editing options for this data, which are erase one or all pieces, or modify a piece. I erase data by simply setting the index to null. Erasing one piece is incomplete atm, here's why:
    Say I have 5 pieces in table, and I erase the one with index of 0. I can't print my information because the table starts with a null value:
    int index = 0;
    if (table[index] != null) { System.out.println(data);} ..
    My guess is that I can solve this problem by decreasing the index of pieces greater than the modified one by 1. I can imagine that I'll be using for loop here. This is where I run out of ideas: is it possible to just modify the index, or do I have to rewrite the data again?
    Any help is appreciated,
    br,
    nomi

    I think using for loop would be the easiest way (?).
    I'm filling the table as simply as:
    items[index] = new table (value, quality..);Using LinkedList seems a bit far fetched for me. But
    again, if I am to use for loop, I think I would have
    to rewrite the data to appropriate index?Why is a List far fetched? Type of List you pick depends on how you use the list (whether you want RandomAccess, etc.).
    List items = new ArrayList(); // or LinkedList
    items.remove(index); // Remove the item at index.To use an array:
    Table [] items = new Table[20]; // whatever size
    items[index] = new Table(value, quality, ...);
    // To remove:
    System.arraycopy(items, index, items, index+1, items.length-(index+1));
    items[items.length-1] = null;

  • How to set the table input in Query template?

    Hi all.
    I need to call a Bapi_objcl_change, with import parameter and a table as an input. I have done this, in BLS. I have set the table input in the
    form of xml. In BLS, I get the output(the value gets change in SAP R3, what i have given in BLS).  But if i set the same xml structure  in
    query template, I didn't get the output. Table input parameter does not take that xml source.  How to set the table input in Query template?
    can anyone help me?
    Regards,
    Hemalatha

    Hema,
    You probably need to XML encode the data so that it will pass properly and then xmldecode() it to set the BAPI input value.
    Sam

Maybe you are looking for

  • Memory Speed

    The ram for this  computer  is PC3-10600 DDR3 SDRAM (1066/1333MHz) non-ECC but does it support faster memory and if so how fast can the memory be.

  • My Power Mac Dual 1.8 shows only one CPU under the hardware tab is this OK?

    I thought it should say two CPUs. Thanks

  • Infobus applet and BC4J

    Hi All, I have developed a few applets using infoswing components. Right now I am deploying them using the local mode. Now I'd like to deploy the business components in the middle tier. Can I deploy them as EJB in OAS or in 8i. What is the most suita

  • How to transfer movie clip made in PhotoBooth to IMovie

    Hi, Here is my problem, which I can't believe I have, or can't solve. I used Photobooth and was able to produce a technically proficient two-minute piece of video. I have an Intel Macbook with Leopard and plenty of memory. Mac is always so intuitive

  • Forum : Apple Software Update for Windows

    Anyway we could get a notification at the top of the Forum : Apple Software Update for Windows Something in red with big letters similar to at the top of the discussion forum page as it seems that the majority of the posts in there have nothing to do