Creation of index

How many types of indexes are there?
On what criteria index type is selected for a given table.
Thanks in advance...

http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/indexiot.htm#BABHJAJF

Similar Messages

  • Creation of indexes in tables

    SAP 4.7      6.20       Oracle 10g       Windows Server 2003
    Our SAP system was based on SQL.
    Last month it was changed to Oracle 10g.
    We really have a lot of developments ( Z programs ), and it's normal for us to create indexes some times.
    But I don't know if we are supposed to change our habits from now on because of Oracle.
    I have 2 questions :
    1) Is the creation of indexes in tables so effective in Oracle as it was for SQL databases ?
    2) When I create an index, Am I supposed to use the field MANDT as part of the index ?
    Eduardo

    Hi,
    We are on Oracle 10.2.4.0 .My answers for point
    1. Ensure that oracle patches are up-to-date. Also oracle parameters are set correctly.There is one S-note(do not remember right now) which has script file which you can run on your system to find if oracle parameters are set according to recommendation.
    2. Mandt can be used in Z programs.Not a problem.
    For future: Analyze Expensive SQl statements with the help of St03N and St04 for next2-3 months and tune them.
    Does it help

  • Failing creation of indexes in prosess chain

    Hi gurus
    The last few days we've had a problem with one of our process chains.
    The processtype INDEX CREATION fails.
    The error-message says: 'Index construction for InfoCube 0RT_C01 went wrong'. Message no. RSMPC025
    I've not been able find any solution to this failure.
    Any ideas on how to solve this error?
    Thanks in advance,
    @nne Therese

    Hi Anne,
    for creation of index's in process chains. first you need to create "delete index" and then info package after that only create " generate index".( here when you drag this generate index it automatically shows delete index..so disable that link and keep that delete index process before IP and keep "generate index"at lower).
    this "delete index" is need before loading of data into the cube because ,if you keep index 1st it gives performence/loading problem (means it takes much time n problomatic of creation idex while loading data ).
    hope it solves your problem,
    Reagrds,
    Neelima.

  • Creation of Index taking lot of time!!

    DB:10.2.0.3.0
    OS:AIX 64 bits
    Application Server:10133
    Hi All,
    When we try to create Normal Index, it takes more than 9 hrs to create whereas on other similar environment instance it takes not more than 3 to 4 hrs.
    We modified PGA_AGGREGATE_TARGET to 2000m from 300m and set WORKAREA_SIZE_POLICY to 'Auto' from 'manual' and now the index creation is faster.
    Could someone explain this.
    Appreciate your time and effort!!
    Regards,

    Setting PGA_AGGREGATE_TARGET to a nonzero value has the effect of automatically setting the WORKAREA_SIZE_POLICY parameter to AUTO. This means that SQL working areas used by memory-intensive SQL operators (such as sort, group-by, hash-join, bitmap merge, and bitmap create) will be automatically sized. A nonzero value for this parameter is the default since, unless you specify otherwise, Oracle sets it to 20% of the SGA or 10 MB, whichever is greater.
    Note: 464045.1 - How To Increase Speed of Index Recreation
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=464045.1
    Note: 102339.1 - Temporary Segments: What Happens When a Sort Occurs
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=102339.1
    PGA_AGGREGATE_TARGET
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams157.htm

  • Creation of index in BW

    Hai Experts,
    pls tell me what is the purpose of index and how can we create indexes in sap bw
    when we are going to create indexes in real time projects(bw).
    for best answers points will be rewarded.
    Regards
    djreddy

    Hi,
    Indexes are data structure sorted values containing pointer to records in table.
    Indexes are use to improve data reading performance / query performance improvement but decreases data loading/writing performance .We delete/drop them during the data loading to data target and create again after loading finished. In BW normally we include this in process chain.In process chain before loading the data to cube use the delete index process and load the cibe and create index.
    If you perform index creation for cube in the perforamence tab it is created automatically by the sysem.
    What are indexes
    what are the indexes of info cube and use
    Infocube > Manage > Performance > Create(Repair) Index/Delete Index.
    Database Indexes
    With an increasing number of data records in the InfoCube, not only the load, but also the query performance can be reduced. This is attributed to the increasing demands on the system for maintaining indexes. The indexes that are created in the fact table for each dimension allow you to easily find and select the data. When initially loading data into the InfoCube, you should not create the indexes at the same time as constructing the InfoCube, rather only afterwards.
    The indexes displayed are the secondary indexes of the F and E fact tables for the InfoCube. The primary indexes and those defined by the user are not displayed. The aggregates area deals with the associated indexes of the fact table for all aggregates of an InfoCube.
    Checking Indexes
    Using the Check Indexes button, you can check whether indexes already exist and whether these existing indexes are of the correct type (bitmap indexes).
    Yellow status display: There are indexes of the wrong type
    Red status display: No indexes exist, or one or more indexes are faulty
    You can also list missing indexes using transaction DB02, pushbutton Missing Indexes. If a lot of indexes are missing, it can be useful to run the ABAP reports SAP_UPDATE_DBDIFF and SAP_INFOCUBE_INDEXES_REPAIR.
    Deleting Indexes
    For delta uploads with a large quantity of data (more than a million records), you should not align the database indexes of the InfoCube with every roll up, rather delete the indexes first, and then completely reconstruct them after rolling up.
    Repairing Indexes
    Using this function you can create missing indexes or regenerate deleted indexes. Faulty indexes are corrected.
    Build Index
    You can delete indexes before each data load and then rebuild them again afterwards. You can also set this automatic index build for delta uploads.
    Thanks,
    JituK

  • Reg creation of indexes

    Hi All,
    cud anybody pls let me know abt the <b>creation and maintenace of indexes</b>??
    any screenshots or step-by-step procedure.....!!!
    its quite urgent..
    regards,
    abc xyz

    HI,
    1.In SE11 Transaction display your table.
    2.press button index... in tool bar, it will ask you
    to create a new one.
    3.give the index name
    4. give short text description
    5. in bottom table give the field name on which
    you want index.
    6. save and activate.
    check this.
    http://www.oreilly.com/catalog/sapadm/chapter/ch01.html
    To create Secondary Index --> http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eb47446011d189700000e8322d00/content.htm
    Also Check the below links.
    http://help.sap.com/saphelp_erp2005/helpdata/en/1c/252640632cec01e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/c7/55833c4f3e092de10000000a114027/frameset.htm.
    Regards,
    Sesh

  • Doubt in creation of Index

    Hi frnds,
        Plz tell how to make INDEX in se11 tcode.
            wht is Secondary index how to create?
    Thanks,
    Gowri

    There are 2 types of secondary indexes...
    1) Primary index
    2) Secondary index .[we need to create]
    Index will be used to improve the performance when you fetch the data from the table.
    Entering content frame
    Procedure documentation Creating Secondary Indexes Locate the document in its SAP Library structure
    Procedure
       1. In the maintenance screen of the table, choose Indexes.
          If indexes already exist on the table, a list of these indexes is displayed. Choose This graphic is explained in the accompanying text.
       2. In the next dialog box, enter the
          index ID and choose This graphic is explained in the accompanying text
          The maintenance screen for indexes appears.
       3. Enter an explanatory text in the field Short text.
          You can then use the short text to find the index at a later time, for example with the R/3 Repository Information System.
       4. Select the table fields to be included in the index using the input help for the Field name column.
          The order of the fields in the index is very important. See What to Keep in Mind for Secondary Indexes.
       5. If the values in the index fields already uniquely identify each record of the table, select Unique index.
          A unique index is always created in the database at activation because it also has a functional meaning (prevents double entries of the index fields).
       6. If it is not a unique index, leave Non-unique index selected.
          In this case you can use the radio buttons to define whether the index should be created for all database systems, for selected database systems or not at all in the database.
       7. Select for selected database systems if the index should only be created for selected database systems.
          Click on the arrow behind the radio buttons. A dialog box appears in which you can define up to 4 database systems with the input help. Select Selection list if the index should only be created on the given database systems. Select Exclusion list if the index should not be created on the given database systems. Choose This graphic is explained in the accompanying text.
       8. Choose This graphic is explained in the accompanying text.
    Result
    The secondary index is automatically created in the database during activation if the corresponding table was already created there and index creation was not excluded for the database system.
    You can find information about the activation flow in the activation log, which you can call with Utilities ® Activation log. If errors occurred when activating the index, the activation log is automatically displayed.
    regards,
    Dj
    reward for all useful answers.

  • Creation of indexes?

    Hi,
    How can we specify the creation of all indexes should be done in a particular tablespace?

    Hi Sumit,
    You can refer Oracle Doc.
    Following is the syntax for specifying tablespace.
    create index index_name on table_name(column)
    tablespace tablespace_name.
    Hope This helps
    Prashant

  • Problem during creation of index

    Dear All,
          I want to create index for MSEG table. This index i have created and activated also. I have used index fields as MJAHR,AUFNR and BWART. Same i have written in select query in where condition. But i think it is not working because select query takes same time as before created index during run time.
    One warning message is coming in index like.
    "Index does not exist in database system MSSQL"
    I don't know why it is coming. I have create simple index and also extension index. In both case same warning message is coming. when i have to create index and extension index.?
    Please give me any solution.
    Regards,
    Shivam.

    Hello,
    I suppose you have created the index via transaction SE11.
    When the database table is too big and you generate/activate the index via SE11 the index will only be created in the SAP repository not in the database (this should be in the log of SE11).
    You have now to start transaction SE14, select your index there (you will see that it does not exist in the DB) and create the index via transaction SE14 (preferably in background to prevent a possible time out).
    Success.
    Wim Van den Wyngaert

  • Creation of Index for Primary & Foreign Key required?

    hi,
    i would like to find out if a column is defined as the primary key, do i need to create a separate index for it? or defining a primary key will tell the db to automatically create an index for it?
    does foreign key have the same behavior as the primary key constraint?
    thanks!

    i would like to find out if a column is defined as the primary key, do i need to create a separate index for it? No
    or defining a primary key will tell the db to automatically create an index for it? Yes
    See
    http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adg05itg.htm#7265
    does foreign key have the same behavior as the primary key constraint?No. See http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adg05itg.htm#1574

  • Creation of index putting to_char in

    Hi
    Trying to create inxde on concatentated columns and it is putting to_char on by default trying to make index numeric column but even to_number in front not putting to_number on
    Using 11.2.03
    Tried
    create index MEDIA_PLIS_HANDLED_IDX on MEDIA TO_NUMBER((TO_CHAR(PLIS_HANDLED_YEAR)||LPAD(TO_CHAR(PLIS_HANDLED_WEEK),2,'0')))
    tablespace BI_DW_DATA
    create index MEDIA_PLIS_HANDLED_IDX on MEDIA TO_NUMBER(PLIS_HANDLED_YEAR)||LPAD(PLIS_HANDLED_WEEK,2,0) )
    tablespace BI_DW_DATA
    Any ideas how to avoid to_char as want users quering it a snumeric.
    Thanks

    The problem is with the function outside the parentheses - it's just ignored.
    It's a known syntax oddity that this doesn't raise an error.
    SQL> create table t1
      2  (yr number
      3  ,wk number);
    Table created.
    SQL> create index i1 on t1 to_number(yr||lpad(wk,2,'0'));
    Index created.
    SQL> select column_expression from user_ind_expressions where index_name = 'I1';
    COLUMN_EXPRESSION
    TO_CHAR("YR")||LPAD(TO_CHAR("WK"),2,'0')
    SQL> drop index i1;
    Index dropped.
    SQL> create index i1 on t1 (to_number(yr||lpad(wk,2,'0')));
    Index created.
    SQL> select column_expression from user_ind_expressions where index_name = 'I1';
    COLUMN_EXPRESSION
    TO_NUMBER(TO_CHAR("YR")||LPAD(TO_CHAR("WK"),2,'0'))
    SQL>

  • Creation of index on DSO

    Hi,
      How to create a INDEX on a DSO and how does it improve dataload performance
    Thanks

    hI,
    to create index on DSO
    GOTO DSO>Rightclick>change-->under Nav attri option u wil find Indexes->There you can create indexes.
    When you activate DSO, the system automatically creates an index based on the keyfields. Thsi is called Primary Index.
    Primary Inedex is created automatically when a table is created in the Dataabase.
    You can create Inedex on your own to improve performance, these are called Seconadary Indexes. This is necessary if the table is frequently accessed in a way that does not take advantage of the sorting of the primary index for the access. Different indexes on the same table are distinguished with a three-place index identifier. 
    We will take one example:
    suppose we have one DSO and we have primary key as customer number, calendar day. lets say these are unique. and lets say if you want to run queries  frequently where u select data based on Customer area and customer type.
    In this case we can create secondary index on customer area and customer type.
    Now if we run query, instead of having to read every record, it will use index to select records which contain Customer area and customer type.
    Here query saves time.
    Regards,
    Marasa.

  • Creation of index takes longer than deletion ?

    Hi,
    i deleted index from the cube was very quick just 7 mins. and it took 7 hrs. to create it back.
    why it took so long?
    i know if there are more data then it might take longer but how come deletion was that quick ?
    thanks,
    KS

    Hi,
    we have split the cube and transfer old data to new cube. now I am trying to delete data from original one. selective deletion for each year is getting failed/ canceled with
    following error message:
    DBIF_DSQL2_OBJ_UNKNOWN    
    CX_SY_NATIVE_SQL_ERROR    
    Error analysis                                                                      
        An exception occurred. This exception is dealt with in more detail below        
        . The exception, which is assigned to the class 'CX_SY_NATIVE_SQL_ERROR', was   
         neither                                                                        
        caught nor passed along using a RAISING clause, in the procedure "DELETE"       
         "(FORM)"                                                                       
    after getting error if i repeat the deletion batch job it works fine for 2nd time.
    what would be the reason ? what are other option for deletion.
    i tried it by each year
    by deleting index first
    then deactivate aggregate.
    but still it happens.
    any suggestions ?

  • Issue with index creation of an infocube.

    Hi,
    I have an issue with creation of index's for a info cube in SAP BI. when i create index's using
    a process chain for the cube it is getting failed  in the process chain. when i try to check the index's  for this
    cube  manual the following below massage is shown.
    *The recalculation can take some time (depending on data volume)*
    *The traffic light status is not up to date during this time*
    Even i tried to repair the index's using the standard program "SAP_INFOCUBE_INDEXES_REPAIR" in SE38
    to repair the index so it is leading to dump in this case.
    Dear experts with the above issue please suggest. 
    Regards,
    Prasad.

    Hi,
    Please check the Performance tab in the Cube manage and try doing a repair index from there.
    This generates a job so check the job in SM37 and see if it finishes. If it fails, check the job log which will give you the exact error.
    These indices are F fact table indices so if nothing works, try activating the cube by the pgm 'RSDG_CUBE_ACTIVATE' and see if that resolves the issue.
    Let us know the results.

  • Relation between temp tablespace and index creation

    Hi,
    I have my Oracle database (11gR1) on windows 2008 server R1 64 bit..
    This is my development database. i have one table which has more than 2 billion rows , the problem i m facing here is while creating the index on this table i m getting temp segment error , while my temp tablespace size is 32 gb.
    Here my doubt is :
    1.What will happen in temp tablespace when index is created ? Relation between temp and index creation ?
    2. how to create the index on a huge table?
    3. What is the meaning og logging and no logging in INDEX creation .
    4. how can we over come for these kind of problem and manage the temp TS..
    Thanks & Regards,
    Vikash Chauradia

    add another tempfile?
    1.What will happen in temp tablespace when index is created ? Relation between temp and index creation ?
    index creation needs sort. how much depends on the size of the index.
    2. how to create the index on a huge table?
    create an interim (temporary? :)) huge temporary space for the very purpose.
    http://docs.oracle.com/cd/B28359_01/server.111/b28310/indexes003.htm#i1006643
    3. What is the meaning og logging and no logging in INDEX creation .
    nologging means you the creation isnt in the logs so if you need to recover you cant get back to it. when using nologging in a prod env you might do it for performance during a period of heavy dml such as a large index creation and then backup afterwards. common enough.
    4. how can we over come for these kind of problem and manage the temp TS..
    current tempspace size =X
    is X big enough? if yes, cup of tea, if no, make X bigger.
    It doesnt matter what X is.

Maybe you are looking for

  • Bridge CC freeze and crash

    Hi guys i'm having a big problem with Adobe Bridge CC. I'm on creative cloud educational, my bridge version is 6.0.1.6 Macbook pro 13 I7 (2012), 8 Gb ram, osx mountain lion 10.8.5 550 gb free space on my hdd. Every time i browse to a folder that cont

  • Looking for a report to get all managed system components

    Hi, We are looking for a report to get the support pack level of managed system. We can get that by going individually on each system entry in SMSY. Is there a standard report or a transaction in solution managed that can list the support pack level

  • ADF: getting current week through sysdate

    hi, Im using Jdev 11G. i have a table with sysdate displaying. now i need to calculate week by this sysdate and display in another column of the table. for ex: if sysdate is 3/2/2012 then the week should be 09 (bcoz 2nd March 2012 is the 9th week for

  • Initialize interface settings RS485

    Hi people! Hope you guys doing greaat!! Well I am very new to this platform called DASYLab.. But what I am doing, is also not  so complicated! I will try to explain my situation and problem below: So I have two ADLink NuDAM modules - ND-6530 (USB to

  • TV shows in different languages

    Hello folks, i'm living in the UK and bringing up our son bilingually. I wanted to ask if there was a way to search for kids tv shows in German through iTunes and purchasing through the UK iTunes store (ie without having to set up a German account et