Reason behind Difference in cardinality from estimation.

Hi,
Below is the plan and the dbms_xplan.display_cursor out put for the same. I am getting difference in cardinality estimation which is major one. What must be the reason behind the same. i have verified that all the stats for index and table are updated.
SELECT
        XDS_XCHGTRANSACTIONID,
         XDS_TXSTATE,
         XDS_ACTIONDATE,
         XDS_INBOUND,
         XDS_DOCTYPE,
         XDS_DOCSUBTYPE
    FROM a, b, c   WHERE     b.XCHGPROFILEPK = a.XDS_XCHGPROFILEPK
         AND b.PAYID = c.PAYID
         AND a.XDS_TXSTATE IN ('PARTIAL', 'COMPLETE', 'PENDING')
         AND CREATINGAPP = 'DISB'
         AND COMPANYPK = 15144193056
         AND a.XDS_ACTIONDATE BETWEEN 1337890976198 AND 1338392336151
         AND a.XDS_YEAR IN 2012
         AND a.XDS_MONTH IN 5
ORDER BY a.XDS_ACTIONDATE
Index IDX_XDS_N1 is on a(XDS_MONTH,XDS_YEAR,XDS_ACTIONDATE)
| Id  | Operation                      | Name                    | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |
|*  1 |  TABLE ACCESS BY INDEX ROWID   | c                       |      1 |      1 |      0 |00:00:00.68 |    2284 |    405 |
|   2 |   NESTED LOOPS                 |                         |      1 |      1 |      1 |00:00:00.68 |    2284 |    405 |
|   3 |    NESTED LOOPS                |                         |      1 |      1 |      0 |00:00:00.68 |    2284 |    405 |
|*  4 |     TABLE ACCESS BY INDEX ROWID| a                       |      1 |      1 |      0 |00:00:00.68 |    2284 |    405 |
|*  5 |      INDEX RANGE SCAN          | IDX_XDS_N1              |      1 |      1 |   2280 |00:00:00.12 |      30 |     28 |
|*  6 |     TABLE ACCESS BY INDEX ROWID| b                       |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |
|*  7 |      INDEX UNIQUE SCAN         | P_XCHGPROFILE           |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |
|*  8 |    INDEX RANGE SCAN            | IDX_PAYID               |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |
Predicate Information (identified by operation id):
   1 - filter("COMPANYPK"=15144193056)
   4 - filter(("XDS_TXSTATE"='COMPLETE' OR "XDS_TXSTATE"='PARTIAL' OR "XDS_TXSTATE"='PENDING'))
   5 - access("XDS_MONTH"=5 AND "XDS_YEAR"=2012 AND "XDS_ACTIONDATE">=1337890976198 AND
              "XDS_ACTIONDATE"<=1338392336151)
   6 - filter("CREATINGAPP"='DISB')
   7 - access("XDS_XCHGPROFILEPK"="XCHGPROFILEPK")
   8 - access("B"."PAYID"="C"."PAYID")

930254 wrote:
Hi,
Below is the plan and the dbms_xplan.display_cursor out put for the same. I am getting difference in cardinality estimation which is major one. What must be the reason behind the same. i have verified that all the stats for index and table are updated. Can't say based on what you have posted so far. Some suggestions/questions:
1) Do you get same difference if you simplify the query so that it includes only one table (i.e. a) with predicates on that table?
2) DB Version ?
3) Is XDS_ACTIONDATE supposed to be a date stored as NUMBER?

Similar Messages

  • Reason behind this query ,SELECT * FROM table WHERE 1 0

    HEllo,
    I would like to know the reason behind using this query ,
    SELECT * FROM <table> WHERE 1 < 0
    before executing the actual SQL query.
    Is there any special reason or the JDBC receiver side is configured like that.
    Is there any option to overcome this process like, can we remove this option or stop using this.
    Why the JDBC adapter basically sending this query on the DB?
    Thanks,
    Soorya,

    Hi,
    if you run this query, you wont be able to see any records of the table.
    SELECT * FROM <table> WHERE 1 < 0
    if you run this query you will see all records
    SELECT * FROM <table> WHERE 0 < 1
    same with SELECT * FROM <table> WHERE 1=1
    So you can check this out that whats happening in your code before executing actual query. just try to co-relate.
    regards
    Aashish Sinha
    PS : reward points if helpful

  • HT5622 I have Purchased a song through iTunes which cost is 15 Rs.But the bank has debited 95rs from my account .Let me know the reason behind that?

    I have Purchased a song through iTunes which cost is 15 Rs.But the bank has debited 95rs from my account .Let me know the reason behind that?

    We are itunes users just like you.  We would have no idea why.
    Contact itunes support and ask them.

  • I love my Verizon, yes I really love my verizon that the only reason behind this story

    Hi there,
    I love my Verizon, yes I really love my verizon that the only reason behind this story but the service made me hate the same Verizon. When I took the Verizon connection I was so happy because I am doing a right thing. but now I feel the same that I have done a wrong thing.
    1. Gift Card is reaching me till now.. hope I will get it when my contract ends!!!
    I ordered this FiOS service by February and got a offer of 200$ gift card from Best Buy... I am getting the card till now.. no tracking.. no response... whenever I call them the response is really very nice. the call will be on hold for about an hour and then a voice will come then I have to explain the situation for about 20 mins, then he/she find the gift card is delivered to some other address. Then give me a waiting period of 3 weeks. I have waited atleast 5 * 3 weeks, between these period of time atleast 20 calls to you guys.
    Don't you think how lucky I am... ha
    A GREAT customer service.. which made me so happy. Thank you one and all.
    2. Billing Issues:
    I took a plan called FiOS freedom bundle offer. It costs  $ 94.99 when I ordered, but later I came to know that is excluding taxes, that is fine so the total expected was some where around 105 to 110 $. But how great it worked for me... I haven't paid that less amount till now. see how much I paid till now...
    Month Amount
    March $189.53
    April   $120.07
    May   $120.07
    June  $113.40
    July   $113.39
    and now the story begins again...
    August $152.83
    Whenever I call the customer care to ask clarification they will tell "**this will not be charged from next month". But there will be no answer why that was charged. I never even thought of writing this big story to some one like you but I am really sorry to say if this continues then your business will never endup in success.
    Please consider this as me one and only request and do something.
    $200 worth of Best Buy gift Card and
    Take away all the additional options in my package and give me the bundle offer bill I ordered $94.99 + Taxes. I wont encourage paying not even one dollar more than that.
    With lots of worries on my ever best Verizon,
    James {personal information removed for privacy}
    Message Edited by CharlotteS on 08-14-2008 08:35 PM
    Solved!
    Go to Solution.

    Since this is a user Forum, James, you'll probably need to contact Verizon again.  Contact Us  
    The only thing I can offer is this link:  http://www22.verizon.com/awaitingfreereward/  
    Good luck and sorry we couldn't be more of a help.

  • What can be the reason behind getting the Dialer Detail

    what can be the reason behind getting the Dialer Detail
    CallResult = 2 "Error condition while dialing"

    Sorry buddies, for bothering you, without providing enough details.
    We are running Java based ERP for our client, with Oracle Application Server 10.1.3.1.
    OS is Sun Solaris 10
    Database is Oracle 11g
    We found the following errors in /product/10.1.3.1/OracleAS_1/Apache/Apache/logs/error_log file.
    [Mon Jun  8 11:01:41 2009] [error] [client <ipaddr>] [ecid: 1244439100:<server ip>:17034:0:70,0] mod_oc4j: request to OC4J iisapp:8890 failed: AJP error: bad header
    [Mon Jun  8 11:11:36 2009] [error] [client <ipaddr>] [ecid: 1244439685:<server ip>:16312:0:2255,0] request failed: error reading the headers
    [Mon Jun  8 13:25:52 2009] [warn] [client <ipaddr>] oc4j_socket_recvfull timed out
    We have done the following changes recently
    => KeepAlive TImout changed to 5 secs from default 15
    => Changed the MaxPermSize to 512M in opmn.xml
    => Our Max Clients setting changed to 350 from default 150.
    Can someone help us by providing the possible reasons for the occurence of said errors.
    Regards,

  • OS X says that Compressor was modified since the code sign and won't let me launch it. Any reasoning behind this?

    Hello
    After updating Compressor to the most recent version (4.2), I get a message saying that Compressor was modified since the code sign and then won't let me launch it.
    I have tried reinstalling Compressor restarting and updating my computer.
    Any reasoning behind this problem??
    Thanks
    I am running OS X Yosemite 10.10.3 on a 2013 13inch MacBook Pro, 8GB RAM, 2.8GHz i7.

    Start the computer from the installation disk and perform Repair Disk and Repair Permissions using Disk Utility

  • I bought whatsup on 5th of june and my account has been debited for INR 60.  Today(8th june) again my account has been debited for INR 55.  I want to know the reason behind it?

    i bought whatsup on 5th of june and my account has been debited for INR 60.  Today(8th june) again my account has been debited for INR 55.  I want to know the reason behind it?

    You could go to the app store on your phone then tap on the update button bottom right then tap on purchases at the top and see what has been bought on your phone also you could goto itunes in you romputer and click on your account once itunes store has been selected from the left then click on account and enter your password and scroll down to Purchase history and click on "see all" and have a look at recent purchases

  • For some reason I cannot import music from my hard drive to my iTunes library

    For some reason I cannot import music from my hard drive to my iTunes library, could you please help?

    See Repair security permissions for iTunes for Windows.
    Apply to the folder that you're failing to import from.
    tt2

  • If I have an airport extreme and a time capsule is it possible for seamless switching between the 2 when a signal is weak or drops Main reason is as I move from my first floor to my attic office and would like to place one (airport extreme)downstairs and

    If I have an airport extreme and a time capsule is it possible for seamless switching between the 2 when a signal is weak or drops
    Main reason is as I move from my first floor to my attic office and would like to place one (airport extreme)downstairs and time capsule upstairs to get complete coverage

    In theory, yes. If you configure the two base station into either an extended or roaming network configuration, you should be able to walk a laptop between routers and the laptop should attempt to connect/reconnect to the base station providing the stronger signal ... but, in reality, this is not always 100% true.

  • Difference of output from cron job & shell prompt

    We have a script in production like:
    sqlplus -s <username>/<password><<EOF
    set head off
    set feedback off
    set numwidth 4
    set serveroutput off
    spool /tmp/test1.txt
    prompt column1 , column2
    select column1||' , '|| column2 from <table> where <condition>;
    spool off;
    EOF
    echo "Best Regards," >> /tmp/test1.txt
    echo "IT Team" >> /tmp/test1.txt
    When run one time from the shell prompt, it gives the correct value like-
    column1, column2
    <column-1>, <column-2>
    Best Regards
    IT Team
    But when I run it from a cron job twice the output is like-
    column1, column2
    <column-1>, <column-2>
    Best Regards
    IT Team
    Best Regards
    IT Team
    The problem in the above output is that the bottom 2 statements,
    Best Regards
    IT Team
    keep getting repeated the number of times when the cron job is run. If the cron job is run 3 times the set of 2 statements get repeated thrice.
    I hope, I have been able to explain the problem.
    Requesting a reply to my query.
    Regards

    Locking this duplicate post - Difference of output from cron job & shell prompt

  • Could you tell me what is the reason behind all this?

    Hi
      Zp0001, we have 510 pcs in stock, but for some reasons we can’t commit the orders that we have on the system. When we go into a xyz order 308 for example), the system commits only to February, even if we could do a partial shipment.
    Could you tell me what is the reason behind all this?

    Please look into availability check for that particular material,
    based on the availability check the system determines whether to
    confirm the sales order (if the sales order qty > inshe stock (either
    rejection/partial confirmation - depends upon the availability check),
    followed by determination of delivery date

  • Hi Apple Community. I have a iPhone 4S . The phone works perfect, besides when to swipe to unlock to home screen. It takes 1-4 swipes. Whats the reason behind it?

    Hi Apple Community. I have a iPhone 4S . The phone works perfect, besides when to swipe to unlock to home screen. It takes 1-4 swipes. Whats the reason behind it?

    Ghubash wrote:
    My iphone 4s haven't facetime?
    This is an unrelated issue... Please start your own thread.

  • Difference between read from table or load into table in Mappings

    Hi everybody.
    i wanted to deploy a mapping. Following error was shown:
    ora-04021 timeout occurred while waiting to lock object Mapp_xyz
    I tried to deploy another Mapping which was successfull. I found out that a specific table was locked and both mappings this table is used. In the Mapping which was deployed successfully i load into this table. In the other Mapping i read from this table. So my question is, is there any difference between reading from a table in a mapping and loading into a table?
    Because after the Lock was broken up the mapping was deployed successfull.
    Any Information would be appreciated.
    Greetings

    Hi,
    thanks for the reply. A Processflow was aborted while he was executing the mapping. So on our DB we had a active session which was causing the lock.
    Thanks.
    Greetings

  • Reasons behind not migrating or upgrading from 8.1.6 to 10gR2

    Hi,
    I have read and read that direct migration from 8.1.6 to 10g is not recommened.
    1. What problems can I face in schema or data of 8.1.6 if this migration or upgradation is done?
    2. What could be the reasons that Oracle does not recommend this?
    Thanks
    Rajeev

    For simple reason being,
    The data dictionary changes and scripts needed for such an upgrade is not available in the particular release.
    Being said that, some internal representations of the binaries also come into picture to accomodate such a change, which restricts from doing such an upgrade.
    Siva

  • I can't fathom the reasoning behind ID CS5 tables. Can you help?

    I can make ID CS5 tables work, but I don't understand how they work. I should mention that I'm a heavy FrameMaker user, so I'm sure I've got some faulty preconceptions.
    In FrameMaker, I'm accustomed to using table styles to automate table formatting. All table formatting info -- e.g., text styles for table titles, headings, and body; rules; cell padding; etc -- is built into the table style and applied with a single click. The text styling information is drawn from preexisting paragraph styles that are associated with the table style. All very straightforward. But in InDesign, things seem a lot more complicated.
    InDesign has Table Styles and Cell Styles. I'm unclear on the relationship between the two. You can specify ruling and shading styles in both. I don't understand this. 
    I've gotten more predictable results with Cell Styles, so I've built most of my formatting info into them. But Cell Styles aren't stand-alone entities. Even though you have to create them, then add them to the Table Style, they have to be associated with a preexisting paragraph style. This seems like a duplication of effort -- two separate styles (cell and paragraph) applying the same text formatting info. The Cell Style does include ruling and shading info, but that shouldn't be necessary since that information theoretically can be entered in the Table Style.
    Also, using Cell Styles limits you to one paragraph style per cell. In some cases I need two -- data or text, followed by some bullet points. When this happens I've had to strip out the Cell Style and apply a paragraph style directly. Seems funky.
    I don't want to get too deep into the weeds with specific puzzles I've encountered; suffice to say I don't understand how Table Styles and Cell Styles interact and how best to use them to create and format tables efficiently. Do any of you understand the thinking behind ID tables? Can you point to a source that explains it? There's got to be a system there, a set of coherent operating principles, but I haven't been able to discern them.
    Sincere thanks,
        --Donna Reynolds

    semiwool wrote:
    I'm not clear how you're able to automate the next-format behavior in FrameMaker. Are you saying that populating a FrameMaker table by importing text from a source, using the convert-to-table option does this because the incoming content has paragraph styles that match existing FrameMaker formats, and that you can't get this in InDesign? InDesign's import options are quite rich. If you need details, search Google for "InDesign text import options" without quotes.
    My apologies. I must have done a poor job of explaining the problem, which is: If you apply a Cell Style to a cell, that cell will only permit one paragraph style. If you need to use two styles in the cell, you have to change the Cell Style to None, then do your formatting with a regular paragraph style.
    These tables were imported as RTF, which has worked reasonably well. Actually, yesterday I was thinking about the discussion we had re: Frame > ID conversions. The first draft of the tutorial I worked up is done. If interested, I'd be happy to send a copy.
    Many thanks for your assistance,
       -dr
    Try this:
    * Create a small table, say four rows by four columns.
    * Create a paragraph style named noStyle, based on No Style.
    * Create a paragraph style with text color cyan, for the second paragraph in the cel; call it cyan. Leave Next Style as Same Style.
    * Create a paragraph style with text color magenta, for the first paragraph in the cell; call it magenta. Set Next style to cyan.
    * Create a cell style whose paragraph style is magenta.
    * In a table cell, create two paragraphs that use the style noStyle.
    * Copy the two paragraphs to another cell.
    * In the first cell, apply the magenta style to the first paragraph.
    * Select both paragraphs in the cell, or select the cell.
    * In the paragraph styles panel, Right-Click the magenta style name.
    * In the context menu that appears, click Apply "magenta" then Next Style. The first paragraph remains magenta, and the second paragraph changes to cyan.
    * Select  the second cell.
    * Apply the cell style magentaCell. Both paragraphs are tagged with the magenta paragraph style.
    * Select the cell and in the Paragraph Styles panel, Right-Click the paragraph style magenta, and select Apply "magenta," then Next Style. Like the two paragraphs selected in the cell that has no cell style applied, the first paragraph remains magenta, and the second paragraph changes to cyan.
    * Copy two paragraphs tagged with noStyle and paste to all the cells in the table.
    * Select the whole table.
    * Apply the magenta paragraph style to all cells.
    * * In the paragraph styles panel, Right-Click the magenta style name.
    * In the context menu that appears, click Apply "magenta" then Next Style. The first paragraph remains magenta, and the second paragraph changes to cyan. All the cells have the first paragraph tagged magenta and the second tagged cyan.
    * Undo these last steps until all cells have reverted to containing two noStyle paragraphs.
    * Select the whole table and apply the magenta cell style.
    * In the paragraph styles panel, Right-Click the magenta style name.
    * In the context menu that appears, click Apply "magenta" then Next Style. The first paragraph remains magenta, and the second paragraph changes to cyan.
    So, with or without cell styles, the Apply Next Style feature efficiently formats multiple-style table cells.
    [EDIT] Yes, I'd like to see your tutorial. Click on my name in the sidebar to send a private message, if you don't have my email address already. Thanks for the offer.[/EDIT]
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    Message was edited by: peter at knowhowpro

Maybe you are looking for

  • HP LaserJet Pro P1102w - EWS doesn't open

    Hi  the printer is conected to wifi already but i can't open EWS and can't to proceed ePrint I'm locating printer's IP address in browsers bar but page not found The printer is connected to the network. The status os showing connected and also i can

  • How to measure the size of a string

    windows app store how to measure the size of a string? string str = "Hello word windows app store";

  • Installing a Torrent Download of Mac OS X 10.4 - does it work? Is it safe?

    Does anyone know about Torrent Downloads? The service is not free, so I want to be sure it's alright before signing up. I want to upgrade my Panther OS to Tiger. I have a 30GB hard drive. I also have a DVD drive.

  • Set New Code for Network ???

    I seem to have forgot my Wireless file sharing password and was hoping someone knows how to reset it or what happens when you reach ten attempts because I know I can eventually remember it but not sure with four more chances, tries, etc.  The help pa

  • Help modifing a simple Lua DAP query

    Hello I need help with something I can't figure out. We currently have the following LUA script ( found in the Cisco DAP examples) This rule allows a vpn client to connect if any AV software is installed, this is fine for PC and Mac, but now have use