Unable to understand the concept of Indexing

Hi,
I searched for indexing.I only understood that it is used for performance tuning.Means a indexed query will run faster ,as compared to other query that is not indexed .But i did'nt understand how it is working .It seems i have known nothing about Oracle Index. Any idea?

user12222356 wrote:
Suppose i have a small table, with two or three columns, and a few data inserted into it. Then suppose i create an index on any column, what effect will be seen here ? Correlating with books index , we are intelligent enough to understand what we are searching for .we see related topic and go to that page.Note related topic.Even we did'nt find actual topic we try to find related topics.
As for oracle tables,each columns have values, and storing info about each column will generate anther table(as i think).So two table now.So will both the tables now be queered?Such a small table can be compared with a book that has only half a page with text. You don't need any index for that book. It is faster simply to read the whole book (it is only half a page long!). In database terms this would be a full table scan (FTS).
You need an index if the book is 100 pages thick. Usually most books will have several indexes. One at the start that tells you about the differnt chapters. And a glossary at the end, where you can look up certain keywords and you also get to know on wich page those keywords had been mentions.
Lets say you have a book about animals in Africa.
So when you search for a certain keyword you have two options. You keyword would be rhino.
FTS (Full table scan)
Either read the whole book from page 1 turning to page 2 and so on until you find the keyword. And if you find it you have to read on, because maybe the keyword is mentioned again at the very last page. You need to read the whole book.
You will find some parts about white and some parts about black rhinos.
Or
Index access
You go to the glossary and search for the rhino keyword there.
Since the glossary is ordered you'll find it very fast. You will also know that you don't have to read the full glossary because it is sorted alphabetically. You then go to the page in the book (=ROWID of the table) where you find the keyword. If the glossary mentioned several pages, then you need go to all of the pages to get the full picture.
it will even more efficient if you search for a keyword like "tiger". Since a tiger does not live in Africa you would need to read the whole book just to find out that there is no "tiger"-content inside. If you use the glossary then you can fast scan the two glossary pages to see that nothing about "tiger" inside.
So an index is very efficient in telling you where to find something, but sometimes also in telling you what you will not find.
Edited by: Sven W. on Jul 13, 2010 11:12 AM

Similar Messages

  • Unable to understand the concept of Primary Key in EJB

    hi,
    please help me in understanding the concept of Primary Key.
    For each and every entity bean represents a data base row. i think it is correct. if multiple users are accessing the same data base row, there will be different primary key for each and every client. is it correct or not. can we say this as "concurrency"?. if all the clients are manipulating the bean, who manages it either application server or data base server?. why does we must implement both hashCode() and equals() methods?. Provide me the links where i can find the answers.

    if multiple users are
    accessing the same data base row, there will be
    different primary key for each and every client.This is incorrect: the PrimaryKey is the unique identifier for each database row. It has nothing to do with users. In order for CMP to work, the container must be able to operate with a single row in the database and be able to distinquish between them.
    If your CMP->database table already has one column that's unique, then you declare that CMP field to be <primary-key-field>. If you have more than one column that makes a row unique, you must make your own primary key object. The way the container can tell the difference between these primary key objects is to compare them, therefore the hashCode and equals methods.
    Provide me the links where i can find the
    answers.This is all discusssed in the J2EE Tutorial.

  • EHP Upgrade - Trying to understand the concept

    Dear experts, this is an effort to understand the concept. I have been doing Basis work for the past 10 years approximately. All along, I have been doing the typical LCP and SP upgrades way back from legacy systems until now (ECC 5.0 / BW 3.5). We have recently upgraded our BW 3.5 to BI 7.01 and also created a dual stack (we never had Java stack before for BW). This is my situation. Below are my questions. Any guidance would be highly appreciated.
    1. Do we still have the SP Stack upgrades within Ehp 1? Or, has it been revamped completely and there is no more SP upgrades and we only need to do EhP upgrades? In this case, if I have to upgrade from Netweaver 7.01, is my only option upgrading to 7.02?
    2. Is there a place where I can start to catchup with the whole EhP concept? I would like to know the maintenance life cycle and the impact on our environment.
    3. Are there any specific upgrade guides that will guide me in transitioning from the typical SP upgrade methodology to EhP upgrade methodology. Also, I would like to know how did you transition (learning curve) from someone who had been with typical SP upgrade for a long time and how did you adopt yourself to the new path (like what guides did you use, what links did you follow, etc)
    NOTE: I have heard the EhP upgrades are similar to release upgrades and I have done handful of release upgrades.
    Thank you so much in advance.

    >1. Do we still have the SP Stack upgrades within Ehp 1? Or, has it been revamped completely and there is no more SP upgrades and we only need to do EhP upgrades? In this case, if I have to upgrade from Netweaver 7.01, is my only option upgrading to 7.02?
    Yes we do have both option available. Either we can go for SP upgrade or we can go with EHP upgrade.
    >2. Is there a place where I can start to catchup with the whole EhP concept? I would like to know the maintenance life cycle and the impact on our environment.
    Yes. http://Service.sap.com/erp-ehp is the place where you can get all the infromation and document.
    >3. Are there any specific upgrade guides that will guide me in transitioning from the typical SP upgrade methodology to EhP upgrade methodology. Also, I would like to know how did you transition (learning curve) from someone who had been with typical SP upgrade for a long time and how did you adopt yourself to the new path (like what guides did you use, what links did you follow, etc)
    Everything is available on Service marketplace.
    Regards,
    Subhash

  • Unable to understand the usage of OAFM and OACORE run in OC4J in Release 12

    I have gather below details but still unable to understand that why two services are there in OC4J in Release 12. My questions are:
    [1] If OACORE is there and most of the components are based on Framework in Release 12 then what is the requirement of OAFM?
    [2] Is OAFM is only for mapviewer, ascontrol and "Oracle Transport Agent" if we use them?
    [3] Why there is seperate process for HTTP_Server as given below if OACORE is already there.
    I have gathered below details from various source but still unable to understand fully above three questions.
    * Oacore: This runs the OA Framework -based applications (Core Application Modules).
    * Forms: This runs the Forms-based applications (using Servlet Mode).
    * OAFM (Oracle Apps Fusion Middleware): This is responsible for running the web services , mapviewer, ascontrol (Oracle Transport Agent).
    [oratrain@ndaeasdb01 scripts]$ ./adopmnctl.sh status
    You are running adopmnctl.sh version 120.4
    Checking status of OPMN managed processes...
    Processes in Instance: TRAIN_ndaeasdb01.ndaeasdb01.xone.xansa.com
    ------------------------------------------------+---------
    ias-component | process-type | pid | status
    ------------------------------------------------+---------
    OC4J | oafm | 19974 | Alive
    OC4J | forms | 19888 | Alive
    OC4J | oacore | 19768 | Alive
    HTTP_Server | HTTP_Server | 19711 | Alive
    Web Entry Point Services          HTTP Server
    Web Application Services          OACORE OC4J
                        Forms OC4J
                        OAFM OC4J

    Let me chk the complete details on a R12 server. but for the time being, all I can say is that there are different HTTP services for the R12 Apps and the SOA suite components.
    Also your DBA might be a better person to answer and even some reading in the Oracle Process Manager Dev guide, Admin guide will help.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I need help understanding the concept of Java...

    Hello, this is my first post. I'm new to Java as well as programming, and I;m really having problems understanding the whole concept of classes, methods, arguments, parameters, constructors and so forth....can someone please explain this in baby terms....like a class is a big box and a method is something inside the box, or out!!!
    thanks

    Hi,
    It looks you know nothing about programming. :)
    Java is a very nice and easy programming language.
    The best for you is to start programming to read a book
    "Thinking in Java", Bruce Eckel. You can find it on the internet or download it from www.BruceEckel.com, or find it on www.filesearch.ru. This book will give you everything about Java. And then take any book what you like and go ahead. Practice, Practice and Practice!
    Good luck!

  • Null . Unable to understand the null value concept

    Dear friends, I am very confusied about the behavior of ----"null"
    and i take a String.The String value will come from data base ---- String inputString[This string value will come from database], In data base the value is null.
    now i am checking if the string "inputString" is null --will perform a work  if not then perform another work.
    so--
    inputStringFromUser.equals(null)
    System.out.println("In if block");
    else
    System.out.println("In else block");
    but it not working if the data base field is blank.
    but if i do ---
    inputStringFromUser==null)
    System.out.println("In if block");
    else
    System.out.println("In else block");
    it is working fine . why???
    please tell me why it is happning.

    I did not get any null pointer exception when i test
    if(inputStringFromUser.equals(null)
    y previous query have cleared.
    But i fell i am little bit of confused for this ---
    "can't invoke methods on a null reference, that gives
    NullPointerException".Can any one please explain.Here's the deal and here's what they're trying to say without any metaphors...
    inputStringFromUser is a String object right? the equals method is inherited from the Object object (java.lang.Object)
    but if inputStringFromUser is null, it means there's no instance of that String object...so if it's null you cannot access the equals method...this is why you need to use the == operator to see if it's null.
    hope that makes sense.

  • Help needed in understanding the concept of hierarchical queries

    I really need help in this matter. I have a flafile containing about 4000 rows. It is from my supplier, it's structure is as follows:
    create table Flatfile
    (Pgroup varchar2(30),
    Pclass varchar2(30),
    Manufacturer varchar2(30),
    Article varchar2(30),
    Price Number(6,2));
    Insert into Flatfile Values
    ('Application Software','Database Software','Oracle','Oracle 10G',115);
    Insert into Flatfile Values
    ('Application Software','Database Software','Microsoft','MS SQL Server 2000',200);
    Insert into Flatfile Values
    ('Application Software','Spreadsheet Software','Microsoft','Excel',100);
    Insert into Flatfile Values
    ('Monitor','15"','Acer','Acer 15"" TFT superscreen',199);
    Insert into Flatfile Values
    ('Monitor','15"','Sony','Sony R1500 flat',225);
    Insert into Flatfile Values
    ('Monitor','17"','Philips','Philips Flatscreen',250);
    Insert into Flatfile Values
    ('Monitor','19"','Viewsonic','Viewsonic PLasma Monitor',275);
    Insert into Flatfile Values
    ('Processor','AMD','AMD','FX-55',600);
    Insert into Flatfile Values
    ('Processor','Intel','Intel','P4 3 GHZ',399);
    My goal is to make a hierarchical query with the start with and connect by clauses. From what I have read is that I need to normalize the data of the flatfile.
    How do I achieve a table which I can query so that the query will represent the hierarchy that exists. Namely
    Pgroup
    ++Pclasse
    Application Software
    ++Database Software
    ++Spreadsheet Software
    So a 2-level hierarchy. I'd like to understand this simple concept first. I built on the knowledge that I gain. So the questions are:
    1.What do I need to do to make the table so that I can use a hierarchical query on it?
    2. How should the query syntax be?
    3. Is it also possible to get the data in the hierarchical query sorted asec?
    I would only like to use the simple structures of the start with and connect by clauses first. I've read there are some new additions to 10G. The problem with the examples used by the tutorials is that the tables are already made so that they are suitable for hierarchical queries. I hope to understand it by this example. And take it a step further.
    Sincerely,
    Pete

    Primarily hierarchy query serves to process tree-like structures which RDBMS simulates using through parent-child relation, often in a single table (see famoust
    EMP table where employee can have the manager who is an employee at the same time).
    In your case it could look like:
    SQL> select pgroup, pclass from flatfile;
    PGROUP                         PCLASS
    Application Software           Database Software
    Application Software           Database Software
    Application Software           Spreadsheet Software
    Monitor                        15"
    Monitor                        15"
    Monitor                        17"
    Monitor                        19"
    Processor                      AMD
    Processor                      Intel
                                   Application Software
                                   Monitor
                                   Processor
    12 rows selected.
    SQL> select decode(level,1,pclass,'  ' || pclass), Manufacturer from flatfile
      2  start with pgroup is null
      3  connect by prior pclass = pgroup
      4  /
    DECODE(LEVEL,1,PCLASS,''||PCLASS MANUFACTURER
    Application Software
      Database Software              Oracle
      Database Software              Microsoft
      Spreadsheet Software           Microsoft
    Monitor
      15"                            Acer
      15"                            Sony
      17"                            Philips
      19"                            Viewsonic
    Processor
      AMD                            AMD
      Intel                          Intel
    12 rows selected.The hierarchy syntax is described completely in the documentation including
    LEVEL and PRIOR keywords.
    As for the ordering question you can use siblings ordering:
    SQL> select decode(level,1,pclass,'  ' || pclass), Manufacturer from flatfile
      2  start with pgroup is null
      3  connect by prior pclass = pgroup
      4  order siblings by 1 desc
      5  /
    DECODE(LEVEL,1,PCLASS,''||PCLASS MANUFACTURER
    Processor
      Intel                          Intel
      AMD                            AMD
    Monitor
      19"                            Viewsonic
      17"                            Philips
      15"                            Acer
      15"                            Sony
    Application Software
      Spreadsheet Software           Microsoft
      Database Software              Oracle
      Database Software              Microsoft
    12 rows selected.Rgds.

  • Help me understand the concept of this timeline

    I am coming from Final Cut Express and having a hard time understanding IM 09.
    - I drag the clip into the Project
    - I drag over the entire clip so that it has the yellow border around it
    - I want to place a cut between the 2nd and third thumbnail so I drag the left border of the yellow rectangle inward and until it rests on the vertical border between the 2nd and third thumbnail
    - I choose Edit > Split Clip
    1.) Does this sound correct? Is that the right way to use the yellow rectangle to designate an area to cut at?
    Thanks for any input!

    stanwelks wrote:
    ... - I want to place a cut between the 2nd and third thumbnail so I drag the left border of the yellow rectangle inward and until it rests on the vertical border between the 2nd and third thumbnail
    - I choose Edit > Split Clip
    1.) Does this sound correct? ..
    No.
    a) no manual split needed:
    • you drag clip#2 to desired position in clip#1
    • place mouse IN clip#1: you'll notice, cursor changes into a green plus-sign
    • when releasing mouse, a context-menu appears…
    • choose insert - done.
    compare with your workflow in FCE:
    select portion of clip (I/O-points), drag to canvas, select insert from menu..
    b) ... +between the 2nd and third thumbnail+ .. wrong again.
    in iM09 you don't orientate on thumbnails. (sidenote: these differ on zoom-factor )
    you orientate yourself by content in the Preview/'Canvas'
    iM09 offers a faster-than-realtime preview of your clip (skimming)
    for a consumer (like me), it is often easier to say: the insert of the broken car has to be between 'Auntie Ina smiling' and 'Auntie Ina's face falling' down.. wherever this is in time..
    real content vs abstract time
    when you switch on the 'advanced' tool, the context menu offer quite more features:
    don't hesitate to watch the tutorials ..

  • Need sample application in dotnet to understand the concept of dataMining

    Hi,
    I am new to data mining and I know the genralize concept of Data Mining. I want to implement the application with Data Mining using c#.net or vb.net but don't know how to start. So any body know any sample application for data mining using c#.net or VB.net
    please share the link or source code. Which will real help me and will be food for my thought process for data mining.
    Thanks in advance.
    Pramod

    if multiple users are
    accessing the same data base row, there will be
    different primary key for each and every client.This is incorrect: the PrimaryKey is the unique identifier for each database row. It has nothing to do with users. In order for CMP to work, the container must be able to operate with a single row in the database and be able to distinquish between them.
    If your CMP->database table already has one column that's unique, then you declare that CMP field to be <primary-key-field>. If you have more than one column that makes a row unique, you must make your own primary key object. The way the container can tell the difference between these primary key objects is to compare them, therefore the hashCode and equals methods.
    Provide me the links where i can find the
    answers.This is all discusssed in the J2EE Tutorial.

  • Who understand the concept of EBS USER and LINUX USER

    When we login the EBS, we will use a user(user1), and then we create a file to the server.
    When we use TELNET to login the server, we can see the file is created by another user(user2).
    How to understand both two users, and how to be relationship between those?
    Thanks.

    When we login the EBS, we will use a user(user1), and then we create a file to the server.What is the application release? OS?
    When we use TELNET to login the server, we can see the file is created by another user(user2).What is the file? What kind of file system you have? Please post the steps you follow to explain your question.
    How to understand both two users, and how to be relationship between those?If the file was created by one user, the ownership of the file will belong to the same user who created the file. If you see a different behavior, please show the case by listing the steps -- (i.e. post the commands of --> login to the server as user1, create a file as user1, show the id of the user and use the ls command to show the ownership, then login to the server as user2 and issue the same ls command).
    Thanks,
    Hussein

  • Help required to understand the concepts for data files in tablespace

    Hi Guys!
    Conceptual understanding for data files.
    A tablespace is having 2 datafiles.
    What once the data files will get full? I know we can create data files but what if there is no space on the server for any additional file to be created?
    Do we require to make the oldest file offline and move outside the environment?
    Thanks

    782790 wrote:
    Hi Guys!
    Conceptual understanding for data files.
    A tablespace is having 2 datafiles.
    What once the data files will get full? I know we can create data files but what if there is no space on the server for any additional file to be created?
    Do we require to make the oldest file offline and move outside the environment?
    ThanksIf the datafiles are full, there is not much that you would get from the "defragmentation" of the datafiles. It would be sort of like this in the start,
    FFFFFFFFFFFFFFFFFFFFFFFFFF
    Then it will be ,
    FFFFFFFUUUUUFFFFFUUUUUU
    So what you are going to get is something like this, (if would be done),
    FFFFFFFFFFFFFUUUUUUUUUU
    So that's how the datafile would like. But that won't give you much of the space anyways still. The option to add a storage must be there with you. The file being offline wont take away the space that it has already allocated. And moreover, doing so, would also impact the access to the data that it would be storing within it.
    HTH
    Aman....

  • HT6114 since updating my mac to 10.9.2, my system preferences page comes up with an empty page in front of "internet accounts" page and I am unable to understand the problem? Any support would be appreciated.

    Since updating my Mac to OS X 10.9.2,  my "system preferences" app appears with a blank page in front of "interent accounts". Any support would help as I cannot see/find resolution to this issue.

    Strangely enough the pref file did not show up in the Preferences folder.  I don't know what this means but it could be signifigant.

  • Unable to understand the BAPI s

    hi all...
    I have copied a report to a new one. Inthat report they have used user defined tables which i hv already created.there are some user created BAPI s also.But I am not able to know what exactly these BAPI s do. And in the 1st BAPI it is with different syntax and in 2nd BAPI it is with different syntax.
    Can u pls chk and tell me what exactly these BAPI s do.and please explain me syntactactically as well.(Mainly the difference )
    1.   
    FUNCTION ZBAPI_DAILY_RATE_IMPORT.
    **"Local interface:
      IMPORTING
         VALUE(KURST) TYPE  KURST_CURR
         VALUE(FCURR) TYPE  FCURR_CURR
         VALUE(TCURR) TYPE  TCURR_CURR
         VALUE(T_DATE) TYPE  GUI_TITLE
         VALUE(T_RATE) TYPE  GUI_TITLE
      EXPORTING
         VALUE(STATUS) LIKE  ZEPO2-ITEXT
      TABLES
          T_ZTCURR STRUCTURE  ZTCURR
    2.
    CALL FUNCTION 'ZBAPI_DAILY_RATE_UPDATE'
            EXPORTING
                 T_DATE = SY-DATUM
                 R_DATE = R_DATE
            IMPORTING
                 STATUS = STATUS.
    Thanks in Adv
    Moderator message - Please ask a specific question - post locked
    Edited by: Rob Burbank on Oct 22, 2009 9:50 AM

    by the names of bapi's that you have provided..... first one imports data into internal tables or tables and the second bapi updates the data base tables.
    they can be normal function modules if there is no use of remote call but seems the program or these bapi's being used as remote calls from external system.
    There is nothing much that we can give you based on your question

  • Java tutorial - helps, problem  is i don't understand the API

    I don't understand the JAVA Tutorials or the API

    Take two steps back.
    Buy a book on basic Java Programming. You need to understand the concepts behind programming before you should start reading the API.
    But kudos for at least trying to read the API.
    Now look at the column on the left, and follow the link called [url http://developer.java.sun.com/developer/onlineTraining/] Tutorials 
    and then the link titled [url http://java.sun.com/docs/books/tutorial/index.html]The Java Tutorial (Java Series).
    And finally read through the sections starting with [url http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html]Your First Cup of Java.
    Then once you have been through all of that, come back and ask for clarification
    on any specific points that you have trouble understanding.
    Finally (Because the Finally always gets executed) Try taking a class in java programming.
    regards

  • Unable to install the Demonstration Environment with ODI 11g

    Hi,
    Can someone please help me with Demonstration environment installation with ODI 11g on a windows system.
    I have downloaded the zipped file from the OTN site.
    I am unable to understand the installation steps in the user guide.Posting them for your reference.
    "To manually install the Demonstration environment, do the following:
    Unzip oracledi-demo.zip in the ODI_HOME folder.
    Verify that the JAVA_HOME environment variable is set and contains the path of a JVM suitable for Oracle Data Integrator.
    If this variable is not set correctly, set it to a valid java machine location.
    For example:
    On UNIX operating systems:
    setenv JAVA_HOME/usr/local/java
    On Windows operating systems:
    Set the JAVA_HOME variable graphically "
    Regards,
    Lovey Saxena

    Hi;
    Did you try to start installation? Your Java_Home could be avaliable on your env settings, so you dont need to set this for installation. If its fails please try to use this syntax:
    Set JAVA_HOME=C:\xxx
    Regard
    Helios

Maybe you are looking for

  • Inserted images leave ghost outline in PDF

    I have never had this problem but am in the middle of producing a large document with multiple inserted images. When I output as a PDF, some - but not all - of the images show a very faint gray outline - almost as if I had created a pencil thin frame

  • DW design view not displaying CSS correctly

    Hello, I am having a problem using the position:relative CSS. I've created a simple page that has 3 div tags. Below is the code: <body> <div id="headerleft"><img src="/images/header.gif" width="303" height="120" /></div> <div id="headerright">Right S

  • Audio Sync

    Is it possible to hear audio playing through speakers hooked up to built-in audio that is in synch with video playing through firewire on a NTSC monitor? The only way I seem to be able to get audio to sync with the monitor is to use the monitors spea

  • So what is the Database setting in Preference for?

    In the years of using Safari, in the Preferences it has settings for Database under Security tab. I've left it at the default 5mb. Whenever I clicked Show Database nothing was ever in there. But yesterday there were two items. I Removed them not payi

  • REG: Remote Process chain

    Hi Gurus, I've a requirement that: In SAP R/3 system user enters data for the planning and saves the data through a transaction code. Then i need to get the data into BI automatically, which ever the data user enters. Please tell me whether i can use