How the index will be fired...............

Hi All,
I have one problem.........
Like i created an index on two columns as follows......
CREATE INDEX gpm_personprofiledemo_dob2_idx ON gpm_personprofiledemo
(profile_updated_dt, birth_dt)
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE gpmix
STORAGE (
INITIAL 104857600
NEXT 52428800
PCTINCREASE 0
MINEXTENTS 2
MAXEXTENTS 5
When I query the table as follows the index is getting fired..
SELECT /*+ INDEX(PPD GPM_PERSONPROFILEDEMO_DOB2_IDX) */
PPD.PANELIST_ID, PPD.FNAME, PPD.LNAME, PPD.GENDER, PPD.BIRTH_DT, ROUND(TRUNC(SYSDATE-PPD.BIRTH_DT)/365) AGE,
PPD.HISPANIC_LANGUAGE, PPD.PROFILE_UPDATED_DT
FROM GPM_PERSONPROFILEDEMO PPD
WHERE PPD.PROFILE_UPDATED_DT = TO_DATE('28-APR-2002', 'DD-MON-YYYY')
AND PPD.BIRTH_DT = TO_DATE('15-OCT-1973', 'DD-MON-YYYY');
Even when I tried with the following query also the index is getting fired.
SELECT /*+ INDEX(PPD GPM_PERSONPROFILEDEMO_DOB2_IDX) */
PPD.PANELIST_ID, PPD.FNAME, PPD.LNAME, PPD.GENDER, PPD.BIRTH_DT, ROUND(TRUNC(SYSDATE-PPD.BIRTH_DT)/365) AGE,
PPD.HISPANIC_LANGUAGE, PPD.PROFILE_UPDATED_DT
FROM GPM_PERSONPROFILEDEMO PPD
WHERE PPD.PROFILE_UPDATED_DT = TO_DATE('28-APR-2002', 'DD-MON-YYYY');
But when I use the following query, its not getting fired. Its taking "INDEX FULL SCAN"
SELECT /*+ INDEX(PPD GPM_PERSONPROFILEDEMO_DOB2_IDX) */
PPD.PANELIST_ID, PPD.FNAME, PPD.LNAME, PPD.GENDER, PPD.BIRTH_DT, ROUND(TRUNC(SYSDATE-PPD.BIRTH_DT)/365) AGE,
PPD.HISPANIC_LANGUAGE, PPD.PROFILE_UPDATED_DT
FROM GPM_PERSONPROFILEDEMO PPD
WHERE PPD.BIRTH_DT = TO_DATE('15-OCT-1973', 'DD-MON-YYYY');
Can you explain me why so?
Like what am thinking is i created the index on "profile_updated_dt, birth_dt" but not on "birth_dt, profile_updated_dt".
Is there any preference for the order of columns during the creation of the INDEX.
Am stuck with this issue. And am unable to solve it. Can any one help me out?
Because its very urgent.
Thanks in advance
Sudarshan

But when I use the following query, its not getting fired. Its taking "INDEX FULL SCAN"I would have thought that the later part of the above statement contradicts with the earlier part of the statement.
its not getting firedcontradicts this statement:
Its taking "INDEX FULL SCAN"Since the birth_dt is not the leading column of your index ...
Is it doing a INDEX FULL SCAN on the GPM_PERSONPROFILEDEMO_DOB2_IDX index?
if you have queries that involve profile_update_dt + birth_dt and some others that involve only birth_dt, then why not have the index in birth_dt + profile_update_dt instead?

Similar Messages

  • How the system will caluclate price in billing doucment

    hi gurus
    In billing doucment.( Invoice) how the price will come. 
    2)  What is the use of document pricing procedure in billing document ( vofa) controling fields.  Where do we use this document pricing procedure In which scenario this (document pricing procedure) will be use ful.
    3)  can we see pricing in delivery.
    Thanks in advance

    HI,
    A sales document belongs to a sales area. PP is determined in SD on customer PP + Doc .PP and sales area. Docpp is field in sales doc or billing type. PP of sales order and invoice is same if doc. pp is same. The same gets copied in invoice. But, u can have diff pp for billing doc also.
    Generally, in delivery u can have frt or pkg charges.Pricing is delivery is not recommended.
    Hope it clarifies your doubts.
    Thanks,
    Pramod

  • How the pricing will be carried out in intercompany billing

    hi ginius
    my question is how the system will carry out pricing.
    2) how many pricing procedure should we maintain
    3) how customer will get price how the invoice will goes
    4) what are the configuration settings for intercompany biilling
    thanks in adavance

    Dear nag nageshwar,
    A small search on SDN SD forum will help you to answer your query. 
    I will suggest you to visit  http://sap-img.com/sap-sd.htm. It will give you the overview of SAP SD module.
    Moreover there is a separate section of FAQs with answers which will help you in great deal.
    Hope this helps you.
    Do award points if you found them useful.
    Regards,
    Rakesh
    P.S. you can send me a mail at my mail id [email protected] for any specific details

  • Hi,does anyone know how the Iwatch will play music when it is not near a bluetooth device as it is stated in the feature setting..Icloud streaming,internal hard drive?

    Hi,does anyone know how the Iwatch will play music when it is not near a bluetooth device as it is stated in the feature setting..Icloud streaming,internal hard drive?

    I did not hear them state the feature requirements directly in the streaming even but there are statements on the Apple website that clearly say that an iPhone is necessary.  I'm guessing that other than Bluetooth for pairing with the iPhone, it's just not technically possible to fit any other radios such as WiFi or LTE into that form factor or battery capacity.  I don't even remember them mentioning if it had a speaker or could pair directly with bluetooth headphones.
    While I'm hoping that the watch has a reasonable stand-alone feature set, they didn't make it clear what exactly it can and can't do without an iPhone nearby.  I also hope that they communicate this better in the coming days.

  • How the storage will be allocated on Undo tablespace made of datafiles?

    I have a UNDO tablespace with two data files. Wherein one data file with Auto Extend as Yes and other as No.
    In the case of multiple datafiles in UNDO tablespace,
    1. Will the storage be allocated of same size on each datafile ?
    2. What will be the case when the datafile with Auto Extent as NO reached it's max size?
    3. Will the storage be allocated proportion to the datafile size in each file?

    But when I use the following query, its not getting fired. Its taking "INDEX FULL SCAN"I would have thought that the later part of the above statement contradicts with the earlier part of the statement.
    its not getting firedcontradicts this statement:
    Its taking "INDEX FULL SCAN"Since the birth_dt is not the leading column of your index ...
    Is it doing a INDEX FULL SCAN on the GPM_PERSONPROFILEDEMO_DOB2_IDX index?
    if you have queries that involve profile_update_dt + birth_dt and some others that involve only birth_dt, then why not have the index in birth_dt + profile_update_dt instead?

  • How the Queue will be created to process the  Multiple IDOC's into  1 Queue

    Hi Sap All.
    when i went into the Transaction code we14 and when the press F4 for search help in the field  Queue Name it displays me the several queues with the Port referring to B0018(refers to PI Box) ,which means that the IDOC's will be sending to PI.
    here my Question is how the Queues get created ,what is the Transaction code for creating the Queues in SAP-R/3 and how we we setup the SAP-R/3 Box in order to send multiple IDOC's into one queue.overall my question is how we wrok on Queues ?
    could any body help me in driving me to the best way.
    regards.
    Seetharam.

    If you have the drivers CD or the LV 6 installation CD, then you could try installing just the traditional DAQ drivers.  I will do a search if I can find them...Good news, I found the drivers that you may need.  Here is the link to download.
    After you install it, look in the vi.lib folder for the DAQ folder and see if you have a dozen
    .llb files. That is where you will find your missing vi's. You may also check into the LV2009 folder to check to
    see if the driver got installed there. I think the driver only gets
    installed for a single version and it might default to the latest at that time (I did not check which one it was).
    In any case, look for the missing VIs in the \National Instruments\LabVIEW 2009\vi.lib\Daq\ folder.  The VIs are contained in the .llb files so you
    can't just search for them through Windows.  Look in the AI.llb file using LabVIEW.
    Here are issues that you may encounter.  The link is to the DAQmx driver (I thought it was for traditional DAQ )
    http://forums.ni.com/t5/LabVIEW/Error-10461-10008-​DIO-Port-Config-Legacy-lvdaq-dll/m-p/947104
    Someone with a similar problem.  It won't help you, but kinda explains what you are going through..
    http://forums.ni.com/t5/LabVIEW/Since-upgrading-la​bview-many-sub-vi-s-such-as-DIO-Port-Config-vi/m-p​...
    Although the recommendation in this thread is to use the same LV version and driver as the previous machine, we know it is not your case.  Newer LV version... and maybe the latest Traditional DAQ drivers...  May be worth reading:
    http://forums.ni.com/t5/LabVIEW/An-error-occurred-​loading-VI-AI-Group-Config-vi/m-p/734547
    Traditional DAQ 7.4.4
    http://digital.ni.com/softlib.nsf/websearch/E42B7A​3564AB2F1A862572A7006D1564?OpenDocument

  • In Hyperion essbase how the project will get allocated?

    Hi All:
    I am new to the Hyperion; I have an doubt how hyperion project will devide into the modules? kindly take an example any finanical large project and tell me.
    In normally 1. Functional designs, Technical designs, Build, testing. in normal any project.
    But hyperion how it will be? could you pls tell me?
    Also what kind of daily activites we get in Hyperion Essbase?

    Please check out this thread => How to calculate cache setting from Essbase application.
    The ODTUG whitepaper is indeed quite good.
    Thank you,
    Todd Rebner

  • How the system will know the procrument type weather it is E or F

    Hello Frinds ,
    i am creating material  A  by using material  B  , materal B is created inhouse also & Procrued from ouside also
    Now i want Produce material A from inhouse produced material B ,how the input should be given to know the system that it is inhouse produced material?
    2 for that is any data need to be maintained
    3 is valuation category play a role to know the systm ?
    4 if yes how to maintain multiple valuation category for a same material?
    Regards
    Girish

    Hi Girish,
    You have to maintain split valuation for your material if you want to make difference between internally and externally procured material.
    http://www.sap123.com/showthread.php?t=29
    http://help.sap.com/saphelp_47x200/helpdata/en/47/6101a549f011d1894c0000e829fbbd/frameset.htm
    You have to use a separate valuation type both for inhouse and purchased goods.
    Even though you set split valuation for your goods SAP will consider both kind of the products as available for production.
    You should choose the suitable valuation type for your production order manually (maybe there is other way I don't know about).
    Regards,
    Csaba
    Edited by: Csaba Szommer on Nov 14, 2008 11:28 AM
    Edited by: Csaba Szommer on Nov 14, 2008 11:31 AM

  • How the performance will increase with pipelined function.

    Respects all,
    Can u please help to explain one example regarding which i have mentioned in the subject line.
    Thanks

    Hi,
    pipelined functions don't "increase performance".
    1) This is an entirely wrong way to think about Oracle features. There are no Oracle features that automatically "increase performance", like some sort of a "turbo" button (not even partitioning! not even indexes!). Most of the features can work both ways -- when used appropriately, they improve performance, when not, they can cripple it.
    2) Pipelined functions are not about performance. They simply provide a way for you to SELECT from a PL/SQL function (which otherwise is impossible to do). Not only you can generate sets of values this way, but also you can join it with other tables/views, that can be very convenient. Pipelined functions can also be very convenient for generating formatted text reports they allow you to bypass limitations of long/lob data types). But none of this has to do with performance.
    3) Pipelined functions are inevitably associated with row-by-row processing (because there is no way to pipe a set of rows at once). So when the choice is between returning a refcursor (from which you can do a bulk fetch), and using a pipelined function, from which you'll be returning rows one by one, and none of items listed in 2) applies, then chances are that pipelined function is going to be slower.
    So whoever claimed that "pipelined functions increase performance", either he/she is incompetent, or you took his/her words out of the context or misintepreted them.
    Best regards,
      Nikolay

  • How to create DFF and how the values will be stored in the database

    Dear All,
    I have created DFF in OA Framework.
    That is working fine.
    But i dont know how to save values of DFF.
    do i need to attach EO with the View object which is used in DFF.
    I would be thankful to you.
    Thanks,
    sheetal mittal

    Hi Gorav,
    Actually its seeded page so i cannot do anything with teh save functionality..
    I have followed the below steps:
    1) Fst i have added Flex Field in the Seeded Page . Defined all the properties , View object name etc.
    2) After that i have created new custom View Object and entity object then add that EO in the custom VO..
    3) After that i have extended AM to add new custom View Object.
    4) After that i have extended CO and written following code :
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    NegotiationCreationAM negotiationcreationam = (NegotiationCreationAM)pageContext.getApplicationModule(webBean);
    int StrAucId = negotiationcreationam.getAuctionHeaderId();
    String strAuctionId = String.valueOf(StrAucId);
    Serializable[] Params = {strAuctionId};
    am.invokeMethod("InitLoad",Params);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    NOTE: AuctionHeaderId is the primary key of the page.
    5) I ahve written the below code in AM.
    public void InitLoad(String strHeaderId)
    OAViewObject vo = (OAViewObject)getxxEarnestDffVO1();
    if (vo.getRowCount() == new Number(0).intValue())
    Row row = vo.createRow();
    vo.setWhereClause(" AUCTION_HEADER_ID = " + strHeaderId);
    vo.executeQuery();
    else
    vo.setWhereClause(" AUCTION_HEADER_ID = " + strHeaderId);
    vo.executeQuery();
    6) But when i am saving the details it gives me :
    Unable to perform transaction on the record.
    Cause: The record contains stale data. The record has been modified by another user.
    Action: Cancel the transaction and re-query the record to get the new data.
    Please help me out.
    regards,
    sheetal

  • How do I select how the page will be displayed?

    display the file contents in alphabetical order

    What website is this? Also, please update to Firefox 16.0.2 immediately, as the version you are running is extremely insecure. [[Update Firefox to the latest version]]

  • How to find out if your query uses the indexes?

    How can one tell if the query being issued is using your indexes or doing full table scans?
    Thank you.

    Thank you.
    Ok, let me see if I understand it. So, having an
    index may not speed things up.True
    Full table scans are not bad at all -- as I have it
    in my head. The query I ran before was: select *
    from table1;In that case an index would only slow things down; you are asking it to get all the information from the table - it has to read all of the table ( a full scan).
    >
    So full table scans and index have to do with the db
    block size and the size of the row correct?
    Block size and row size don't have a huge amount to do with it, but they do play a role.
    Let me ask: How does one know the size of a row and
    then the best option for the db blocks? Block size is a global setting (at the tablespace level I think). You would not likely change the block size based on the average row length in any one table. It would be about the last thing you might look at in terms of tuning (though you might consider it up-front if you had a huge amount of very predictable data).
    >
    And if, I create indexes and queries have the where
    clause and the database uses full table scans then
    does it means that either:
    The database believes that the best execution plan is
    to either do FULL SCANS OR USE INDEXES -- ALL UPTO
    THE DATABASE?
    No. There is another piece of information that the database needs to make good decisions. If for example you have a WHERE clause "WHERE not_paid = 1" and you have an index on not_paid. To make a good decision the database needs to know about how many of the rows are likely to be not_paid =1. If it's 90% then a full table scan will be cheaper than looking up the addresses of 90% of the rows and then getting the data. If it's 10% using the index will be cheaper. You need to use Analyze Tables to get the database to store this information. Looks like you need to use a bit of time with the manuals.
    Jon
    -J

  • What will the space will the index take ?

    My table has 3 lakhs records
    I have 5 gb freespace in my tablespace.
    I need to create an index on a column which is in date format.
    What will the space will the index take ?

    hi,
    I can not say how much space the index will take? But its always better to create an Index after your table is populated with data. Since you are doing the same it will boost the performance.
    2) Choose the proper tablespace for Index. Whether the same tablespace in which your table is or use separate tablespace for Index.
    Regards,
    Darshan

  • How is index data managed within the cluster?

    Hello
    We are in the process of evaluating Coherence.
    With regard to indexes, am I correct in thinking that the data for the index is stored in an (internally managed) cache on the same node as the attendant indexed values? I'm not interested in getting at the index data, but rather just understanding how the index data itself is treated/stored within the cluster.
    So in a 2 node cluster where an index is applied to a distributed cache that only has 2 entries, will there be an index cache on each node that has 1 {Binary,key} entry where the key points to the value that is stored on that same node? That is, I trust that the index data is spread out across the cluster in the case of a partitioned topology?
    Regards
    Peter

    user11279467 wrote:
    Hello
    We are in the process of evaluating Coherence.
    With regard to indexes, am I correct in thinking that the data for the index is stored in an (internally managed) cache on the same node as the attendant indexed values? I'm not interested in getting at the index data, but rather just understanding how the index data itself is treated/stored within the cluster.
    So in a 2 node cluster where an index is applied to a distributed cache that only has 2 entries, will there be an index cache on each node that has 1 {Binary,key} entry where the key points to the value that is stored on that same node? That is, I trust that the index data is spread out across the cluster in the case of a partitioned topology?
    Regards
    PeterHi Peter,
    up to 3.4.x indexes were supported only on partitioned topology, and yes, indexes on each node contain only data corresponding to entries which have their primary copy on that node (referred to as local entries from now on).
    The indexes are not stored in a cache but they are managed as part of the information Coherence maintains about the backing map (the map which contains local entries).
    The indexes are made of 2 parts:
    - forward index: this is a mapping from the cache key in an internal representation (backing map keys from now on) to the value extracted with the extractor used to create the index from the entry belonging to the cache key (extracted value from now on)
    - reverse index (aka. reverse map): this is a mapping from the extracted value to a set of backing map keys of entries from which the reverse index key was extracted with the extractor used to create the index
    The index can be sorted which means that the reverse index will be a SortedMap (so sorting order is the ordering of extracted values)
    Let's see an example. Assuming you have the following cache content within a particular storage-enabled node :
    A --> Object (getX=5 ,...)
    B --> Object (getA=3 ,...)
    C --> Object (getA=3 ,...)
    D --> Object (getA=4 ,...)
    The forward index in that node will contain:
    Binary(A) --> 5
    Binary(B) --> 3
    Binary(C) --> 3
    Binary(D) --> 4
    The reverse index will contain:
    3 --> { Binary(B), Binary(C) }
    4 --> { Binary(D) }
    5 --> { Binary(A) }
    Where Binary(...) means the internal (binary) representation of the ... object.
    If the index is not ordered, then the order of iteration on entries in the reverse index are not deterministic.
    If the index is ordered, then the iteration of entries in the reverse index will be as shown above. Also, you can cast the reverse index to SortedMap so you have the very useful headMap and tailMap and firstKey and lastKey methods.
    Hope this helps.
    Best regards,
    Robert

  • How the data is stored in Info cube...in the back end what will happen???

    Hi Experts,
    How the data is stored in Info cube and DSO...in the back end what will happen???
    I mean  Cube contain Fact table and Dimension tables How the data will store and what will happen in the backend???
    Regards,
    Swetha.

    Hi,
    Please check :
    How is data stored in DSO and Infocube
    InfoCubes are made up of a number of InfoObjects. All InfoObjects (characteristics and key figures) are available independent of the InfoCube. Characteristics refer to master data with their attributes and text descriptions.
    An InfoCube consists of several InfoObjects and is structured according to the star schema. This means there is a (large) fact table that contains the key figures for the InfoCube, as well as several (smaller) dimension tables which surround it. The characteristics of the InfoCube are stored in these dimensions.
    An InfoCube fact table only contains key figures, in contrast to a DataStore object, whose data part can also contain characteristics. The characteristics of an InfoCube are stored in its dimensions.
    The dimensions and the fact table are linked to one another using abstract identification numbers (dimension IDs) which are contained in the key part of the particular database table. As a result, the key figures of the InfoCube relate to the characteristics of the dimension. The characteristics determine the granularity (the degree of detail) at which the key figures are stored in the InfoCube.
    Characteristics that logically belong together (for example, district and area belong to the regional dimension) are grouped together in a dimension. By adhering to this design criterion, dimensions are to a large extent independent of each other, and dimension tables remain small with regards to data volume. This is beneficial in terms of performance. This InfoCube structure is optimized for data analysis.
    The fact table and dimension tables are both relational database tables.
    Characteristics refer to the master data with their attributes and text descriptions. All InfoObjects (characteristics with their master data as well as key figures) are available for all InfoCubes, unlike dimensions, which represent the specific organizational form of characteristics in one InfoCube.
    http://help.sap.com/saphelp_nw04s/helpdata/en/4c/89dc37c7f2d67ae10000009b38f889/frameset.htm
    Check the threads below:
    Re: about Star Schema
    Differences between Star Schema and extended Star Schem
    What is the difference between Fact tables F & E?
    Invalid characters erros
    -Vikram

Maybe you are looking for

  • How can I restore my EQ settings from a Time Machine backup?

    I recently reinstalled Mavericks, and restored my user account from a Time Machine backup. In doing so I appeared to have 'lost' my personal EQ settings in iTunes, of which I had perfected quite a few to suit various headphones and speakers I've foun

  • Partner Function for Vendor

    Hi Friends, I have requirement in partner function, when I configured a new partner function ZH and create vendor it auto picks up the this PF and same vendor number... but my requirement is number needs to blank and it should not be mandatory.. is i

  • How to read from a JTextField without hitting any key?

    Hi guys, I have a JTextField. If the user enters data into it, i would like to read it even if he doesn't hit any enter key or Tab key or anything else. Actually, in my application, user enters data in the TextField(he doesn't hit any other key)and t

  • Copying a lot of music from one hard drive to another - replacing problems

    Hi, I want to copy a lot of music in many folders from my desktop to an external hard drive. The problem is that many of the folders share a name with a folder in my hard drive, but have different music files. If I tell Finder to 'replace' then all o

  • PERL CGI doesnt accept ORACLE+APACHE

    Hi, I am using Oracle+Apache+Perl+DBI/DBD and one thing very strange is happening: Oracle works fine ... Perl + CGI + Apache works fine ... Perl + Oracle works fine ... But when it comes to Access a Perl script (CGI) accessing Oracle in the Netscape