Things to consider while Creating Indexes in the tables

Hi All,
We have some application slow issues becasue of the tables which it is calling are Heap. There are Primary keys created on few tables though. I have to think and design the indexing on those tables. What are different things need to check to design the Indexes?
Thanks
Swapna

Hi All,
We have some application slow issues becasue of the tables which it is calling are Heap. There are Primary keys created on few tables though. I have to think and design the indexing on those tables. What are different things need to check to design the Indexes?
Thanks
Swapna
Adding to what others have said create an index and check execution plan whether it is being used by optimizer or not if it is used and query runs fast that index can be kept
You should also take help of DMV
sys.dm_index_usage_stats to see whether index is being utilized or not. refer to user seek user update and user scan col. If Update is very much greater that seek/scan index is probably not utilized , you can consider removing it
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles

Similar Messages

  • Why should we create index on  the table after inserting data ?

    Please tell me the Reason, why should we create index on the table after inserting data .
    while we can also create index on the table before insertion of the data.

    The choice depends on a number of factors, the main being how many rows are going to be inserted in the table as a percentage of the existing rows, or the percentage growth.
    Creating index after a table has been populated works better when the tables are large or the inserts are large for the following reasons
    1. The sort and creation of index is more efficient when done in batch and written in bulk. So works faster.
    2. When the index is being written blocks get acquired as more data gets written. So, when a large number of rows get inserted in a table that already has an index , the index data blocks start splitting / chaining. This increases the "depth" of the inverted b-tree makes and that makes the index less efficient on I/O. Creating index after data has been inserted allows Orale to create optical block distribution/ reduce splitting / chaining
    3. If an index exists then it too is routed through the undo / redo processes. Thats an overhead which is avoided when you create index after populating the table.
    Regards

  • Problem while creating index for temporary table...

    Hi,
    i have created index for a temporary table and this script should used by multiusers.So when second user connecting to it is giving index i mean object already exists.
    So what i need is when the second user connected the script should create one more index on temporary table.Will sql server provide any random way of creating indexes if the index exists already with that name??
    Thank You,

    Nope..
    SQL Server is cleaver enough to handel this situation.
    When you create a index or constraint on the Temp Table, eventhough the index name is duplicate it will allow.
    But it only possible on temp tables (prefixed with single #).
    To Test this,
    Open Two window,
    Execute the below window on the opened 2 window..
    create table #test
                id int
    Insert Into #test values(1);
    Insert Into #test values(2);
    Create clustered index testindex on #test(id)
    Now you wont get any error on any of the window. Rite?
    To fetch the created index details, execute the below code on any one of the window..
    select * from sysindexes where name like '%test%'
    Now you can see the 2 rows with same indexname but refereing with different table. Yes. all the temp tables (#) will be suffixed with unique number to avoid the object already found error while multiple users connects.
     

  • Don't have primary Key in Target table getting errror while creating index

    Hi All,
    I don't have primary key column in target table, while exicuting mapping I got a error while creating INDEX.
    Could you please help how to slove this

    Hi,
    That is a process definition issue.
    If you don't have a PK then:
    1) or you don't execute updates
    2)or you have an alternate Key to update it.
    Case 1) just change the KM to IKM Control Append
    Case 2) at interface, go to each column what is Alternate Key and check it as key (click at column and check the box Key at bottom of propriety window).
    Does it work to you?

  • Error while creating index on  ep 6.0 9 sr1   (trex 6.1).

    Hell o all,
        I am getting following error while creating index on  ep 6.0 9 sr1   (trex 6.1).
    Index could not be created; creating index failed: general configuration error (Errorcode 2030)
    can any on ehelp.
    thanks and regards
    Rajendra

    Hi,
    We are running TREX 6.1.09.00 on EP6.0.9.0.0 and KMC6.0.9.0.0.
    We are experiencing the same problems, even after changing the value in the .ini file as specified in NOTE 766197.
    After doing changes, I restarted the server after doing the changes.
    Alessandro, have you got any ideas for fixing this?
    Message was edited by: Bjorn Bjornstad

  • Error while creating index

    hi all,
    i got this error while creating index in portal.
    <b>Index could not be created; creating index failed: Invalid entry in configuration: section nameserver, key address, value tcpip://<nameserverhost>:<nameserverport> is invalid (Errorcode 7213)</b>
    it a little urgent any will be appreciated.
    thanks in advance
    Ranga

    Hi Ranga,
    Please follow http://help.sap.com/saphelp_nw04s/helpdata/en/c7/e0d13f7fb44c21e10000000a1550b0/frameset.htm
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Getting error while creating index in RAC environment in 11g

    Hi All,
    I am new to RAC concept while creating index getting below error
    Error: AX_DISABLE_HIST - SQL Error. Error Position: 0
    Return: 12801 - ORA-12801: error signaled in parallel query server P146, instance
    ORA-12853: insufficient memory for PX buffers: current 425904K,
    max needed 11105280K ORA-04031: unable to allocate 32792 bytes of shared memory ("shared pool","unknow
    CREATE UNIQUE iNDEX PS_AX_DISABLE_HIST ON PS_AX_DISABLE_HIST (EMPLID) TABLESPACE PSINDEX STORAGE
    (INITIAL 40000 NEXT 65536 MAXEXTENTS UNLIMITED PCTINCREASE 0) PCTFREE 10 PARALLEL NOLOGGING
    am not able to understanding is this issue is related to index or sga memory. can any once help me on this.
    Thanks in advance
    Prabhakar
    Edited by: 889571 on May 16, 2013 7:41 AM

    Hi,
    Please read the below link for ORA-04031 (Insufficient Memory).
    http://blog.tanelpoder.com/2009/06/04/ora-04031-errors-and-monitoring-shared-pool-subpool-memory-utilization-with-sgastatxsql/
    Thanks

  • Proxy error while creating index

    hi all
            i've configured Trex name server in j2ee visual admin,and ialso configure the prosy server in the following path
    System Administration  ® System Configuration  ® Service Configuration ® Applications (Content Catalog) ® com.sap.portal.ivs.httpservice  ® Services  ® Proxy
    by giving host name
    but while creating index the following error occured
    Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request POST /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fadministrator!2fsuper_admin!2fsuper_admin_role!2fcom.sap.portal.system_administration!2fcom.sap.portal.system_configuration!2fcom.sap.km.AdminConfig!2fcom.sap.km.AdminSystemIndexes!2fcom.sap.km.IndexAdmin. Reason: Error reading from remote server -
    Apache/2.0.52 (Fedora) Server at www.entegs.com Port 80
    and in SysAdmin/SysComfig/Km/Trex Monitor the following error is displaying  
    Proxy Error
    The proxy server received an invalid response from an upstream server.
    The proxy server could not handle the request GET /irj/servlet/prt/portal/prtroot/com.sap.portal.pagebuilder.IviewModeProxy.
    Reason: Error reading from remote server
    Apache/2.0.52 (Fedora) Server at www.entegs.com Port 80
    can any one give me the appropriate solution for the above,its very urgent.
    awaiting for replies
    Regards
    Gnana
    Note:also tell me how to rate for replies coz through this forums i solved many problems

    Hi Gnana,
    as there seem to be no replies here and I do not have one either, please submit a support message to SAP and be prepared to grant system access.
    Regards,
    Karsten

  • Err while creating Index - ORA-29855: ,ORA-20000

    Got err while creating index. We moved the Table to new tablespace and drop the index. While creating index got this err. Col1 is clob datatype.
    SQL> CREATE INDEX kc_ctx_RAWTEXT ON RAWTEXT
    2 (col1)
    3 INDEXTYPE IS CTXSYS.CONTEXT
    4 PARALLEL ;
    CREATE INDEX KC_CTX_RAWTEXT ON RAWTEXT
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in drvddl.ParallelIndexPopulate
    ORA-12801: error signaled in parallel query server P020
    ORA-20000: Oracle Text error:
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.DRVPARX", line 36
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364

    remove parallel clause and try again

  • Do we need any precautions while creating index in MV rather than tables?

    Do we need any precautions while creating index in MV rather than tables?
    Could you please someone tell me is there we need specifically follows while creation on MVs

    MV is a seprate object. You might need to create an indexes on MViews based on how you are accessing that MV. You need to take a same preacutions what you take to create an index on the table,
    I do not know what you mean by your 2nd questions. Read this for better understanding
    http://docs.oracle.com/cd/B28359_01/server.111/b28326/repmview.htm

  • WHILE CREATING PURCHASE REQUISITION,THE AVAILABILITY CHECK FOR THE MATERIAL

    dear Friends,
    our users want to  WHILE CREATING PURCHASE REQUISITION,THE AVAILABILITY CHECK FOR THE MATERIAL SHOULD BE ENABLE,
    at present we maintaing KP in Material Master.  if we activated what will happen?
    please advice.
    with regards,
    Rajesh G

    Hi,
    The availability check is generally used for goods movements(GR,GI,reservation) & not for PRs.
    Regards,
    Vijay

  • While creating Purchase order the system is showing error: vendor 200001145

    Hi experts,
    while creating Purchase order the system is showing error: vendor 200001145 on line 00010 for ctype ZB12 not defined as head office vendor.
    Plz  give solution for this.
    Thanks&Regards
    sreenivas

    Hi,
    Please check vendor schema maintained in the vendor master,. through this condition type arepicking from system
    Aboue condition type not mainatained inthe caluation schame ,which you assigend to vendorand purchasing organization
    regards
    Channa
    Edited by: channadodawad on Dec 3, 2009 9:22 AM

  • Unable to find Par file while creating iview in the template

    Hi All,
    Iam trying to change the Masthead iview, i deployed in NWDS and successfull. but while creating iView in the portal i could find the par file in the template.
    And when iam creating sample Portal application it is visible in template.
    Setting in the NWDS are correct. Can any one suggest what is happening here.
    Regards
    DV

    Hi DV,
    don't try to create an iView from template, but one from par. In the list you'll find your project name and within the project - voila: your portal application.
    HTH,
    Carsten

  • Use of the Export while creating Exceptions in the Reporting Agent

    hi all,
    can anyone let me know how the Follow Up Action "Export" is used while creating Exceptions under the Reporting Agent.
    I understand that for the data that was precalculated to be used as a work item in a customer Workflow, it first needs to be exported using the business Add Ins (SE19). i have created the Business add In "RSRA_ALERT" and have also set a filter according to the InfoArea and activated it.
    But once, the package is scheduled and completed, wherefrom will i check the result and how do i check whether that data has been exported or not.
    Kindly let me know at the earliest.
    Thanks & regards
    Manicks

    Hi,
    See if it helps -
    http://help.sap.com/saphelp_bw33/helpdata/en/24/77643c07437c7fe10000000a114084/frameset.htm
    regards
    Vikash

  • I Have Purchase ipod touch with ios5 . while create apple id  the none option in Payment Method dose not Apper . I dont have any visa or mastercard . plese help ?

    I Have Purchase ipod touch with ios5 . while create apple id  the none option in Payment Method dose not Apper . I dont have any visa or mastercard . plese help ?
    How Shold I Proceed

    Hello JadeGirl13,
    Thanks for using Apple Support Communities.
    Please see the support article below that explains why you may not be able to select none as a payment type.
    Why can’t I select None when I edit my Apple ID payment information?
    http://support.apple.com/kb/TS5366
    Take care,
    Alex H.

Maybe you are looking for

  • Unable to Validate Muse Subscription - fixes not working

    I have the same problem that others have had with the error message "Unable to validate your Adobe Muse subscription.  We haven't been able to validate your Adobe Muse subscription  for some time. If you don't connect to the internet in the next few

  • How to set up family sharing if we previously shared one account?

    My wife and I have 2 phones and 4 tablets between the two of us.  We have always just used my itunes account on all of the devices.  Now that family sharing is available, I'd like to set her up with an apple ID and separate our stuff. What is the way

  • How to create a .java file with multiple classes

    I have all the below classes declared in a file say ABC.java under a common package called somepackage Abstract class A Void abstract metod1(); Void metod2(); Class B void method3(); Void method4(); Class C void method1(); Void method2(); In Client.J

  • Firmware upgrade from 2.1(3a) to 2.1(3b).

    I don't find any documentation on the web for firmware upgrade from 2.1(3a) to 2.1(3b).. is it wise to follow this link http://www.cisco.com/en/US/docs/unified_computing/ucs/sw/upgrading/from1.4/to2.1/b_UpgradingCiscoUCSFrom1.4To2.1.html Any best pra

  • Annoying new Finder file name editing setting

    This is new in Leopard and it is beginning to annoy me very much. It happens when editing file names in a sub-folder view – the one where the expand arrow is expanded. When editing a long file name I am used to using the arrow keys (up places the ins