Why can the explain plan be different from 2 exact set of structures

hi,
i have from a view some base tables let's say A , B, C & D
this query is running very slow . so from the same database , i created tables A1 , B1, C1,& D1 from the above tables.
i created some new indexes on A1 to D1 tables and the results returned to me is fast.
i did an exlain plan
so i drop the indexes on the original A to D table and created the new indexes as per A1 to D1 and analyzed them. and i also did an explain plan
but the query is still running slow and also the explain plan is different to the one from A1 to D1 (the one that running fast)
pls help me to understand how/why can this happen ?
tks & rdgs

hi,
precisely i could have been providing insufficient information but i am too inexperienced to be able to give you the required information and i am also not very sure where i could get the info so that you all can advise me further.
but this is from the user_tables , the only difference i see is that
under LOGGING table A to E is 'YES'
TABLE_NAME     TABLESPACE_NAME     PCT_FREE     LOGGING     BACKED_UP     NUM_ROWS     BLOCKS     CACHE     TABLE_LOCK     PARTITIONED
A1          OWNER1          10          NO          N     37332          883         N     ENABLED     NO
B1          OWNER1          10          NO          N     43458          861         N     ENABLED     NO
C1          OWNER1          10          NO          N     823828          7826         N     ENABLED     NO
D1          OWNER1          10          NO          N     881176          14646         N     ENABLED     NO
E1          OWNER1          10          NO          N     18868          223         N     ENABLED     NO
A          OWNER1          10          YES          N     37040          880         N     ENABLED     NO
B          OWNER1          10          YES          N     43386          880         N     ENABLED     NO
C          OWNER1          10          YES          N     823820          7684         N     ENABLED     NO
D          OWNER1          50          YES          N     880948          26624         N     ENABLED     NO
E          OWNER1          10          YES          N     18690          244         N     ENABLED     NOtks & rdgs

Similar Messages

  • In the info bar at the bottom of the iphoto window, why is the number of items different from the total

    In the info bar at the bottom of the iphoto screen, why is the number of items different from the total?

    What version of iPhoto and system are you running? What mode are you in, i.e. Events, Photos?
    If it's the Photos mode the number at the bottom will represent the number of photos displayed in that mode or the number of photos selected in that mode. The number will match the number next to the photos mode only when there are no photos in that mode that are selected. 
    If you click on the Events icon and then back on the photos icon the numbers should match.
    OT

  • Why is the Application Tab so different from the rest of iTune?

    It feels like the Applications tab is not from Apple. Is it done by a outsourcing company in China? There is no consistency between this tab with the rest of iTune. Is there a design theme across all parts of iTune? Why there is no list view for the Apps?
    One thing I miss much is the ability to check off an App so that it will not sync to my iPhone. The same way that I can decide with song go to my iPod. Since the iPhone only has 144 slot for applications, it is important to have such selection ability. The other thing I miss is the rating. I'd like to rate the applications so that if I have purchased more than one version of the same kind of app, I can choose which goes to my iPhone based on my own rating. I also want to be able to sort the Apps by category in the list view. How about folders that each corresponds to one page on the iPhone? The way to reorganize the Apps icons is just a pain after you have more than a few pages.

    Hi LaiPod
    These are good suggestions, I suggest sending feedback to apple via: http://www.apple.com/feedback/itunesapp.html
    J.C

  • Why does the photo component act differently from one iPhone4 to another?

    My wife and I have an iPhone 4.  All the settings on the photo part of the software are the same.  Yet on my wife's phone she can add to an existing album, but on my iPhone I cannot do the same.

    Souunds like she updated to iOS 5 and you did not...

  • Why can't I make a purchase from my new IPod using a new credit card which is different from the one registered with my apple account ?

    Why can't I make a purchase from my new IPod using a new credit card which is different from the one I have registered with iTunes before ?

    You can only use one credit card to one Apple ID.

  • How can i paste the explain plan from toad..

    Hello all
    I tried taking a snap of the explain plan from toad but in this forum the paste option is disabled...please help

    964145 wrote:
    I tried taking a snap of the explain plan from toad but in this forum the paste option is disabled...please helpI don't know, but it is a waste of time since explain plans from Toad are not useful.
    Please read the forum FAQ on providing information for a tuning request, it describes how to generate an explain plan that can be shared.
    {message:id=9360003}
    This is an example.
    SQL> explain plan for
      2  select * from dual;
    Explained.
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 3543395131
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |      |     1 |     2 |     2   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| DUAL |     1 |     2 |     2   (0)| 00:00:01 |
    --------------------------------------------------------------------------

  • Hi! I need to cancel my membership plan for the creative cloud but I can't find any contact different from the live chat. I MUST cancel it before March 22nd. Please help me!

    Hi! I need to cancel my membership plan for the creative cloud but I can't find any contact different from the live chat. I MUST cancel it before March 22nd. Please help me!

    This is an open forum, not Adobe support... You need Adobe support to cancel a subscription
    -start here https://forums.adobe.com/thread/1703848
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
    --and two links which may provide more details, if the above links don't help you
    -http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

  • Why the explain plan incorrent?

    I have a sql in oracle10.2.03:
    select *
    from (select a.*
    from t_user a, t_message b
    where b.user_id = a.row_id and a.user_type = 1
    order by b.happen_time desc)
    where rownum <= 5
    there are indexes on column a.user_type,b.user_id,b.happen_time, and has been analyzed. a.user_type=1 only have 1/1000 records
    the explain plan is below:
    cost Cardinary Bytes
    SELECT STATEMENT, GOAL = ALL_ROWS 30 5 3790
    COUNT STOPKEY
    VIEW BMTEST 30 6 4548
    NESTED LOOPS 30 6 1158
    TABLE ACCESS BY INDEX ROWID BMTEST T_MESSAGE 13 1524118 24385888
    INDEX FULL SCAN DESCENDING BMTEST IDX_MESSAGE_2 1 168
    TABLE ACCESS BY INDEX ROWID BMTEST T_USER 1 1 177
    INDEX UNIQUE SCAN BMTEST PK_USER 1 1
    Oracle use the index full scan descending on the happen_time. the cost only has 30.
    After I add hint on the sql on the user_id of t_message
    select *
    from (select /*+index (b idx_message_1)*/  a.*
    from t_user a, t_message b
    where b.user_id = a.row_id and a.user_type = 1
    order by b.happen_time desc)
    where rownum <= 5
    the explain plan change to:
    cost Cardinary Bytes
    SELECT STATEMENT, GOAL = ALL_ROWS 5020 5 3790
    COUNT STOPKEY
    VIEW BMTEST 5020 54707 41467906
    SORT ORDER BY STOPKEY 5020 54707 10558451
    TABLE ACCESS BY INDEX ROWID BMTEST T_MESSAGE 26 515 8240
    NESTED LOOPS 2707 54707 10558451
    TABLE ACCESS BY INDEX ROWID BMTEST T_USER 1 106 18762
    INDEX RANGE SCAN BMTEST IDX_USER_2 1 106
    INDEX RANGE SCAN BMTEST IDX_MESSAGE_1 1 515
    INDEX UNIQUE SCAN BMTEST PK_USER 1 1
    The cost is 5020, but the execute usage time only is 100ms, and the first SQL does not add hint usage 20s.
    Why the lower cost waste more time, if the cost caculate is incorrect?
    Edited by: [email protected] on Sep 11, 2008 9:14 PM

    [email protected] wrote:
    But i am afraid i use a misunderstand title for this post,my doubt is why oracle get a large cost with the sql execute few time but get a small cost with the sql execute long time.The cost of a query isn't a particularly good proxy for runtime. It is perfectly reasonable for a query with a cost of 1000 to run more quickly than a query with a cost of 100. The cost of queries is only directly comparable between different plans in the same 10053 trace file.
    [email protected] wrote:
    All the indexed columns are both analyzed by the command or by DBMS_STATS package and the cpu costing is enabled.But what order are the commands being run? And why is the ANALYZE command being used to gather optimizer stats.
    In the first plan:
    INDEX FULL SCAN DESCENDING BMTEST IDX_MESSAGE_2 1 168
    Why this index full scan cost only 1? how did oracle get this number? Is there formula to caculate the cost of index full scan? I have read the article named "Cost Based Oracle Fundamentals" and there is no introduce how to caculate it.
    I think this abnormality cost makes the cost of next step "NESTED LOOPS" very smal and finally lead this abnormality result.1) Which article are you talking about? Are you talking about Jonathan Lewis's book "Cost Based Oracle Fundamentals"? Or are you referring to a different article somewhere?
    2) Can you post the query plans formatted via DBMS_XPLAN.DISPLAY (including the predicate information and enclose the output in the \[pre\] and \[pre\] tags to preserve white space?
    Justin
    Justin

  • Why the content of the Explain Plan not show out?

    Why the content of the Explain Plan not show out?
    I am using Oracle 11g.
    I already ran the utlxplan.sql sctipt and I also set serveroutput on.
    SQL> set autotrace on
    SQL> EXPLAIN PLAN FOR SELECT*FROM DEMO_TABLE WHERE OWNER='HR';
    Explained.
    Elapsed: 00:00:00.67

    When you say:
    My release 10.2 database display the Explain Plan automatically.
    How to make 11.1.0.6 Oracle database to display the Explain Plan automatically.What do you mean? Specifically, what commands are you executing in the 10.2 database, that displays the execution plan "automatically"?
    Are you saying that if you execute the same command in 11.1.0.6, you don't get a similar result? What happens? Do you get an error?
    For both the 10.2 case and the 11.1.0.6 case, post the full output of the commands you're executing, and the result you are seeing.
    Then, maybe someone can help you.
    When you post the output, please encapsulate it in a pair "code" tags, which is the word "code" without the quotes, surrounded by a pair of curly braces {}.
    When you do this correctly, the output looks like:
    This is output from my execution plan run.and is much easier to read.
    Don't be afraid to use the preview tab to see if your message will be posted with the correct formatting.
    -Mark

  • Why can't I install a app from the app store

    Why can't I install a app from the app store

    Olliegirl wrote:
    Why can't I install a app from the app store
    You really need to provide a little more information. Why don't you explain a little bit of what you have been experiencing, and maybe someone can offer some advice.
    Are you signed into the correct Apple ID? Do the apps start downloading at all? Do you get the "waiting" or "Loading" icons at all?
    What are you doing that isn't working?

  • Can the SidHistory attribute be moved from one User account to a different User account in the same Forest/Domain?

    Hello,
    Can the SidHistory attribute be moved from one User account to a different User account in the same Forest/Domain manually with  Active Directory Users and Computers or with something like Powershell?  it would seem to me this is a safe operation.
    Thanks for your help! SdeDot

    Hi,
    In addition, please also take a look at the below thread:
    copy SIDHistory from one account to another in the same domain
    http://social.technet.microsoft.com/Forums/en-US/2ca8727c-b3fd-4ef8-9747-99295f0cd61c/copy-sidhistory-from-one-account-to-another-in-the-same-domain?forum=winserverDS
    Hope this helps
    Best regards
    Michael
    If you have any feedback on our support, please click
    here.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Why can't I make a playlist from the vdownload app since installing Iso7

    Why can't I make a playlist from the vdownload app since installing iso7

    So where do you do when apps just seem to stop working, particularly when you paid for an app.  I have now had then happen twice and there seems to be very little customer care from Apple when this occurs.  Just a note to let customers know that an app will no longer work or who to contact would be great. Thanks, Kevin

  • TS3276 why can't i open SOME attachments from email and most of the time i can open them?

    why can't i open some attachments from some emails and not on others?

    Read this link from Apple for more info:
    http://support.apple.com/kb/PH11778?viewlocale=en_US&locale=en_US
    The Apple Communities is a free information resource, but posting the eventual answer helps future users to learn solutions.

  • Why can't I post my resume from Pages to the web or an email on my iPad?? I've tried using iCab, downloading google docs, etc. I understand it's not possible from iPad but why???

    Why can't I post my resume from Pages to the web or an email on my iPad?? I've tried using iCab, downloading google docs, etc. I understand it's not possible from iPad but why??? If I can't use safari to do it is there any other way?? Seriously, are iPads only used for watching Hulu, playing games, fb and twitter? My phone can do that!! Worst $500 I ever spent.

    We don't want to email it.....  we want to upload it.
    Then why did you say (emphasis added):
    Why can't I post my resume from Pages to the web or an email on my iPad??
    There are plenty of methods for putting a resume online, where a potential employer can download it, though admittedly the iPad is less flexible in this regard than a computer.  Nobody ever has claimed otherwise.  However, I get the feeling you're not actually looking for an answer to anything, and you're just posting to complain.  Note that that is a violation of the Apple Support Communities Terms of Use, which you agreed to when signing up for an account here.
    I wish I had gotten a Galaxy Tab.
    Then sell your iPad and go buy one.  You will have no problems whatsoever finding a buyer.

  • Why can't I save Tab Groups from one session to the next? When I restart, tab groups are cleared.

    Why can't I save Tab Groups from one session to the next? Is there a way to save Tab Groups from the last session to the next time I start up?
    Mark Kipperman

    Yeah, if this is the way it's supposed to work its a useless and, dare I say, stupid "feature". Wouldn't the whole point of this be to have quick access to groups of pages. If I have to select them each time to create the group what is it doing for me?

Maybe you are looking for

  • Urgent Billing mishap

    Well how did this happen?Last year I cancelled Direct Debit as I was one of many that were getting issued late fees even after payment's were met.So this year I have been paying my bill manually through my eircom to avoid such  dillemas again.I recie

  • Link not safe !

    The following message appears when I click on the link... not safe!!!!  Now what??? There is a problem with this website's security certificate.   The security certificate presented by this website was issued for a different website's address. Securi

  • MacBook Air connect to Smart TV

    Hi How do I connect MacAir Book to Smart TV-have HDMI option as USB appears unsupported? Thanks for help!

  • Need to disable users from using nquser and nqpassword in the url with SSO

    Is this possible in OBIEE or do I need to creat a mod_rewrite rule to remove nquser= & nqpassword?

  • Java.io.NotSerializableException: weblogic.ejb20.internal.EntityEJBContextImpl

    Hi, We are currently in the process of moving from Weblogic 6.1 SP5 and Toplink 3.6.3 to Weblogic 8.1 SP2 and Toplink 9.0.4 and during some test I have seen a "scaring" stack trace. It seems that, for some reason, a thing that "uses to work" failed w