How to identify table indexes

Hi all

11.2.0.1

Is it a good idea to create indexes on all columns used in conditions WHERE all QUERIES?

Thank you

Petra k.

Is it a good idea to create indexes on all columns used in conditions WHERE all QUERIES?

No - you need not index in order to query the data in a table.

Don't add indexes without specific reason to add them.

Two reasons/cases of primary use for the addition of an index are:

1. to support the operations of INSERTION/update and ensure the integrity of the data. For example, to enforce a primary key or a unique constraint. This prevents duplicate data never broke IN the table.

2. to improve the performance of queries. An index can improve the performance of certain queries and know whether or not MAY depend on the predicates used in the WHERE clause. But a clue can also reduce the performance of the other queries.as that John has shown you. In addition an index can degrade the performance of DML operations because EACH index may need to be updated if the data is changed. The indices more you more the decline in performance possible.

Statistics are just as important as the index. Oracle needs on the table and index statistics to make the right decision on whether to use a particular index. Adding an index without having the appropriate current statistics is a waste of time.

But back to what I said earlier: add indexes without specific reason to add them. This means that appropriate tests to determine:

1. what impact has the index on queries you're trying to improve

2. what impact index has on other requests - as mentioned previously it could be NEGATIVE impacts to other queries if Oracle uses your new index for them when it shoudn't.

Tags: Database

Similar Questions

  • How to import tables, index, tablespace, etc. of a DMP.

    Hello

    I would like to know how to import tables, index, tablespace, etc. of an export an Oracle 10.2.0.1 to apply on an Oracle 11.2.0 DMP. When I import the DMP file a unique Tablespace, for example, will users tablespace data.

    On the basis of origin, we have different tablespace each separated with different content (tables, index) and I would like to know if it is posible to import the same schema, tables, index, tablespace quite with a DMP alone, Export. I can't use DBUA because the database on the 10.2 software is missing, I have only one file (24 GB) DMP DMP!.

    Thanks for the reply,

    Sorry for my English :).

    Kind regards.

    The standard solution is

    -Make sure that the target user doesn't have the UNLIMITED TABLESPACE privilege, using REVOKE
    -Make sure that the target user has no QUOTA on the default tablespace using ALTER USER... QUOTA
    -Make sure that there is quota on the tablespace (s) of the target, using ALTER USER... QUOTA
    -import indexes = n
    -empty the index orders in a separate file
    IMP indexfile =...
    -run this file

    --------------
    Sybrand Bakker
    Senior Oracle DBA

  • How to identify the siebel custom index created from DB without using siebel tools

    Dear Experts,

    Please let us know how to identify siebel custom indexes that are created directly through DB. We don't are not sure on the customer tables had created indexes.

    Thank you

    Carine Ch

    Hello carine,.

    Thank you for using Oracle communities.

    Custom indexes created without using Siebel tools are not included in the schema definition in the Siebel Repository.

    Just for your information, these indexes are deleted during the upgrade of database. In order to preserve these indexes, add them to the repository Siebel using Siebel Tools.

    Now come to your query you have utility DBCHCK.

    DBCHCK is that Siebel provided utility to compare the logical schema in the Siebel Repository against objects in the physical Oracle database.

    DBCHCK must be run regularly to check the status of the Siebel business, especially after a release.

    DBCHCK can be useful to identify custom index added by the development team, but not added to the repository using Siebel tools.

    You can run it from a server in the environment. A performance by connection to the base. This should be run from the folder siebsrvr

    You can get more information from document following knowledge.

    How the Dictutl and the dbchck to run? (Doc ID 475677.1)

    I hope it helps.

    Best regards

    Chetan

    P.S. If one of the answers was correct or useful, it would be great if you can mark as appropriate help the other identified correctly updated.

  • How to disable the index to the rows of the table updated

    Hello world

    I have a problem on a table with Oracle11g.

    I would update a table a lines opposite two in a table. This table has an index, and during the inversion, the index is duplicated.

    So, I turn off the index and then rebuild all indexes like this: How to disable the index in oracle

    However, I can't update a table when my index finger is rolled unusable.

    I create my table:

    CREATE  TABLE MY_TABLE(
      ID                         NUMBER(5) NOT NULL,
      TYPE                        NUMBER(1) NOT NULL,
      PRIO                       NUMBER(4) NOT NULL,
      CONSTRAINT PK_MY_TABLE
        PRIMARY KEY (ID, TYPE )
    );
    
    CREATE INDEX  PRIO_UK
        ON MY_TABLE(TYPE, PRIO);
    
    
    
    

    Then I selected all the elements and the results is:

    ID Type Prio
    1110
    2111

    Then, I tried to update this list with this script:

    UPDATE MY_TABLE set PRIO = 11 WHERE ID = 1 AND TYPE = 1;
    UPDATE MY_TABLE set PRIO = 10 WHERE ID = 2 AND TYPE = 1;
    
    
    
    

    I have an error on the first line, because the subscript for type 1 and 11 priority already exist.

    You have another solution to solve my problem?

    I thank you very much.

    Do not disable your index. Just perform your update with a single blow. Like this

    SQL> select *
      2    from my_table;
    
            ID       TYPE       PRIO
    ---------- ---------- ----------
             1          1         10
             2          1         11
    
    SQL> update my_table
      2     set prio = case when id = 1 and type = 1 then 11
      3                     when id = 2 and type = 1 then 10
      4                end
      5   where (id = 1 and type = 1)
      6      or (id = 2 and type = 1);
    
    2 rows updated.
    
    SQL> select *
      2    from my_table;
    
            ID       TYPE       PRIO
    ---------- ---------- ----------
             1          1         11
             2          1         10
    
    SQL>
    
  • How to find on fragmented tables/index.

    Hi I am using oracle 10g. is there a way to know more fragmented tables/indexes, so that the reorganization or reconstruction of to improve sql performajnce?

    930254 wrote:
    Hi I am using oracle 10g. is there a way to know more fragmented tables/indexes, so that the reorganization or reconstruction of to improve sql performajnce?

    Its a great time you read all messages written by Jonathan Lewis on the fragmentation and first understand what it is in true before thinking about to remove it.
    http://jonathanlewis.WordPress.com/category/Oracle/infrastructure/fragmentation/

    Aman...

  • Question table index

    Hello world

    I know that I can use a table to reshape to convert a 2D 1 d.

    But I'm curious of know how is it when I wire a 2D in an array of index table, and there is no constant for the index entries, the result comes out as a 1 d array?

    How it works in this case? could someone please explain that to me?

    Index functions Array always returns the element or subarray n-dimension table to index. By default, if you do not connect the index , the first input terminals line sub-table index 0, the second subarray index 1st row and so on.

  • C: drive is running out of space, even if I moved everything I could to the E: drive. How to identify the "space Eater"?

    I moved all my data to the other disk. I was installing new programs on the other disk. Yet, the space on drive C: (37 GB) keeps becoming 'used '. Free space now is 2%. How to identify the "space Monster" which takes more and more the training?

    37GB is size sorry for C:.  My minimum recommendation for everything that came out at the time of and after Windows Vista is 60 GB.

    JDiskReport
    http://www.jgoodies.com/freeware/JDiskReport/index.html

  • How do already created Index status valid of UNUSABLE

    Dear experts,

    I use a user called EMILANINVMASTER, and it contains a table and index.

    in this user, programmer has created two index on name of the table called AWSCITYMASTER. both indexes spent in unusable state.

    Herewith, I mentioned an index called IDX_AWACSCITYMASTER_OSID for an example

    You can find more details

    *******************************************************************************************

    Visibility VISIBLE

    Unique uniqueness

    Temporary No.

    Tablespace USER_IDX

    Table TABLE type

    Table EMILANINVMASTER. AWACSCITYMASTER

    UNUSABLE State

    1 796 sample size

    Percent free 10

    Not partitioned

    1 796 Num lines

    Next step size 1 Mb

    1 minimum degrees

    Extended maximum 2,147,483,645

    Max 255 transactions

    Blocks of sheet 4

    Last reviewed 11/20/2015 11:53:41

    Join No. Index

    Case 1

    Initial transactions 2

    First step size 64 Kb

    Index of NORMAL Type

    Name of the index IDX_AWACSCITYMASTER_OSID

    Generated N

    Separate keys 23

    Degree 1

    Clustering 156 factor

    DEFAULT buffer pool

    BLevel 1

    Blocks of sheet AVG per key 1

    Data AVG by key 6 blocks

    ********************************************************************************************

    This error is coming in these days only. Please guide me how to do this index valid status.

    Hello

    Use this command to rebuild the index

    change the index rebuild online;

    Ajay

  • How can I export index partition (DDL)?

    How can I export index partition (DDL)?

    For example:

    PARTITION BY RANGE (ID) INTERVAL (1)  (
    PARTITION "XXXXX"  VALUES LESS THAN (1)    
    SEGMENT CREATION IMMEDIATE    
    PCTFREE 10 PCTUSED 0 INITRANS 1 MAXTRANS 255   
    COMPRESS FOR OLTP NOLOGGING    
    STORAGE(INITIAL 1 NEXT 2 MINEXTENTS 1 MAXEXTENTS 2000   
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1   
    BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)   
    TABLESPACE "XXXXXXXXX"   )   ;
    

    Thank you!

    How can I export index partition (DDL)?

    For example:

    1. PARTITION BY INTERVAL OF THE RANGE (ID) () (1)
    2. PARTITION 'XXXXX' LOWER VALUES (1)
    3. CREATION OF IMMEDIATE SEGMENT
    4. PCTFREE, PCTUSED 10 0 INITRANS 1 MAXTRANS 255
    5. COMPRESS FOR OLTP NOLOGGING
    6. STORAGE (INITIAL 1 2 MINEXTENTS 1 MAXEXTENTS 2000)
    7. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
    8. USER_TABLES FLASH_CACHE, CELL_FLASH_CACHE DEFAULT DEFAULT)
    9. TABLESPACE 'XXXXXXXXX');

    Don't know what you mean... maybe this?

    SQL > 100000 long value

    SQL > select dbms_metadata.get_ddl ('TABLE',')

    ','
    ')

    2 double;

  • How to identify if ADF application running on PC or Tablet?

    Hi ADF experts!

    My question is simple: how to identify if ADF application running on PC or Tablet?

    We need to know this, because we need to provide a different presentation for the same application to run on the tablet.

    We need this because we have a problem with < af:selectOneRadio > option buttons that are in a table column.

    When the application is run on the IPAD, there is a control of pagination for the < af:table > with a property 'FetchSize' of the table (default 25).

    All values in the < af:selectOneRadio > are displayed properly as on the first page.

    When you browse on the second page, all values in the < af:selectOneRadio > disappeared, it's like they are not defined. Even when we sail on the second page on the first page, the values have disappeared.

    So the question is:

    How to identify if ADF application running on PC or Tablet?

    OR

    Is there a way to activate the Tablet OFF when paging control?

    We have JDeveloper 11.1.2.4.0.

    Please advice.

    How to distinguish between a phone and a tablet of ADF ManagedBean | Karate Arun with Oracle Webcenter

  • How to identify a one time customer Oracle Apps AR

    Hello

    How to identify a one time customer in Oracle APps AR?

    Is it possible to know how many number of transactions a customer made so that, if the number of transactions is 1, then the customer is a customer of time. Otherwise, it is not?

    Thank you
    Bob

    Hi Bob,

    to my knowledge, I can't recall a report seeded by oracle that could meet your requirement. You can try running the Transaction Register report date of your live Go far, so that the system generates a list of all bills and the name of the customer, then you could export to Excel and sort, filter and group by to get the desired result...
    However if you are a person with technical expertise, check table RA_CUSTOMER_TRX_ALL this option stores all the transaction information you can select TRX_NUMBER, BILL_TO_CUSTOMER_ID from this table and perform a count by customer... (I'm not sure about the syntax and use of sql functions) you can get the desired effect...

    Also in the future, while creating a new customer if you know in advance that this customer is going to be a ONE TIME CUSTOMER, you can enter this information in any unused field on the client configuration can allow a FDF and capture this information, so that it becomes very easy to identify these customers or have a report based on this is based...

    I guess there's an objecive behind trying to find a new subscribers or customers with a single transaction history... are you planning disable/end date / idle clients...?

    Kind regards
    Ivruksha

  • How to identify the primary key relationship, key and forien

    Hello

    I wanted to know for a given table, how to identify if there is no child table. I could get details of the constraint in ALL_CONSTRAINTS or DBA_CONSTRAINTS, but I will not be able to determine who his children tables.
    If there is no other available table, it's possible to identify the parent and child tables so please please let me know.

    I know that we can check through creation of Table (DDL) script, but I need to understand programmatically. Is sort available?

    Thanks in advance.

    Kind regards
    SK

    SK says:
    Hello

    I wanted to know for a given table, how to identify if there is no child table. I could get details of the constraint in ALL_CONSTRAINTS or DBA_CONSTRAINTS, but I will not be able to determine who his children tables.
    If there is no other available table, it's possible to identify the parent and child tables so please please let me know.

    I know that we can check through creation of Table (DDL) script, but I need to understand programmatically. Is sort available?

    use

    query using R_CONSTRAINT_NAME where CONSTRAINT_TYPE = 'R '.

    SQL> desc user_constraints
     Name                            Null?    Type
     ----------------------------------------- -------- ----------------------------
     OWNER                                  VARCHAR2(30)
     CONSTRAINT_NAME                  NOT NULL VARCHAR2(30)
     CONSTRAINT_TYPE                        VARCHAR2(1)
     TABLE_NAME                       NOT NULL VARCHAR2(30)
     SEARCH_CONDITION                        LONG
     R_OWNER                             VARCHAR2(30)
     R_CONSTRAINT_NAME                        VARCHAR2(30)
     DELETE_RULE                             VARCHAR2(9)
     STATUS                              VARCHAR2(8)
     DEFERRABLE                             VARCHAR2(14)
     DEFERRED                             VARCHAR2(9)
     VALIDATED                             VARCHAR2(13)
     GENERATED                             VARCHAR2(14)
     BAD                                  VARCHAR2(3)
     RELY                                  VARCHAR2(4)
     LAST_CHANGE                             DATE
     INDEX_OWNER                             VARCHAR2(30)
     INDEX_NAME                             VARCHAR2(30)
     INVALID                             VARCHAR2(7)
     VIEW_RELATED                             VARCHAR2(14)
    
    SQL> 
    
  • How to associate an index with a foreign key constraint

    I understand how to associate a primary key constraint or a Unique key constraint index...
    Yet I don't see how to associate the index of a foreign key constraint. Is this possible?

    Thank you
    Bob Larsen

    Hi Bob,

    In Data Modeler, physical model for Oracle primary and unique keys dialog boxes offer an Index field using, which is used to generate the 'using_index_clause' in the DDL for primary and Unique key constraints.
    However the Oracle Database DDL does not have the "using_index_clause" for Foreign Key constraints, thus Data Modeler does not provide this feature for foreign keys.

    So, you will need to create a separate Index that uses the same columns as the foreign key (using the index page of the table properties dialog box in the relational model).

    David

  • Siebel Database Configuration Assistant unable to identify the indexes tablespace

    Hello

    I install Siebel CRM 8.1.1 on AIX platform. We have a RAC database has allowed the backend and that two tablespace is created, other data and another for the index. Now in the wizrd of configuration database to the name of these two storage spaces; provide us with the name of tablespae of data in the Tablespace filed Table and index tablespace in the tablespace index rating of the Setup Wizard. Now when we click on the next button. The wizrd of configuration gives error of unable to identify the indexes tablespace.

    Why is - what happens as index tablespace is correctly created in the database. Please help me in this. Quick Respance you will be appreciated.

    Kind regards

    Abgrall

    If you ran:

    change the quota unlimited on user SIEBEL

    ?

  • How to identify the area of crops?

    I need to know the eps file contains the area of crops (purpose-> crop area-> Make) brand or don't use do not javascript via «illustrator cs3» Could you please tell me how to identify?

    Thank you.

    The guide says that cropBox document returns the limits table or 'null' if it has not been set. When I tested without, it returned null.

    HAVE Cropmarks are wrote in the lead, so you can be able to get from there. Here is an excerpt that reads the file and search string ' % AI3_Cropmarks:' in the file. Worked for me with a fundamental criterion in CS2 with eps & THE same time files.

    #target illustrator

    var myFile = new File('~/Desktop/Untitled-4.eps');

    If {(myFile.exists)

    If (hasCropBox (myFile)) alert ('True');

    }

    function hasCropBox (filePath) {}

    cropBox var = false;

    filePath.open ('r');

    filePath.seek (0, 0);

    While (! filePath.eof) {}

    var row = filePath.readln ();

    If (line.substring (0.15) == ' :') % AI3_Cropmarks {})

    cropBox = true;

    }

    }

    filePath.close ();

    return cropBox.

    }

Maybe you are looking for

  • Create a public folder

    I have three Macs.  One is ethernetted to my Tine Capsule router.  The other two are WiFi was the TC.  I would like to create a public folder on each Mac so that none of the three can connect and send/receive documents to one of the Macs.  Ideally, I

  • Elvis channel

    Hello I need assistance with configing DAQmx channels Max. How can I organize data between ' CHN0 + ' and 'ALWAYS' and also between 'CHN0 -' and 'ALWAYS' - especially I'm interesting by specifying the type of strings in MAX - be they NRSE or CSR, dif

  • randomly out of range?

    I have a hp 6200 pro, core i3 I have the computer attached to a 42 "sanyo lcd tv, the picture is superb, but from time to time when the resumption of the fashion watch, I'll get a pc off error, reset the pc to sleep corrects most of the time there. I

  • HP envy 6 1202sa ultrabook - graphic dedicated question 8750 m AMD

    I bought this phone a little more than a week to help me in my studies together. One of the main reasons for this purchase was to ensure that I have the capabilities of game. I am not a computer expert but have a good knowledge of most of the bases.

  • Automatic shift grid of thumbnails

    How to make the alias square grid with the automatic rearangement?I need to create a grid of 3 x 3 single from images (thumbnails) that will connect to each new project page. Its simple so far.But when the new project I want to create as first new pl