Why update with subqueries does not have cost and cardinality?

There is update.
update test t1 set dummy = (select dummy from test2 t2 where t1.id = t2.id);Both tables which have actual statistics. Each has 1000 rows. And column ID have values from 1 to 1000 in each table.
This is explain plan
| Id  | Operation          | Name  | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | UPDATE STATEMENT   |       |  1000 | 13000 |   426   (9)| 00:00:01 |
|   1 |  UPDATE            | TEST  |       |       |            |          |
|   2 |   TABLE ACCESS FULL| TEST  |  1000 | 13000 |   426   (9)| 00:00:01 |
|*  3 |   TABLE ACCESS FULL| TEST2 |     1 |    13 |   426   (9)| 00:00:01 |
Predicate Information (identified by operation id):
   3 - filter("T2"."ID"=:B1)We can see here, that Oracle consider subquery within update as once-executed subquery.
This is runtime plan
| Id  | Operation          | Name  | Starts | E-Rows | A-Rows |
|   1 |  UPDATE            | TEST  |      1 |        |      0 |
|   2 |   TABLE ACCESS FULL| TEST  |      1 |   1000 |   1000 |
|*  3 |   TABLE ACCESS FULL| TEST2 |   1000 |      1 |   1000 |
Predicate Information (identified by operation id):
   3 - filter("T2"."ID"=:B1)Why first plan does not have cost in step 1?
Does Oracle always not understand that update with subqueries will performed as NL or filter? In other words that step 3 will executed many times.
Or it is my bug (or what?)?

793769 wrote:
Does Oracle always not understand that update with subqueries will performed as NL or filter? In other words that step 3 will executed many times.
Or it is my bug (or what?)?It's not possible to say whether this is a bug or a deliberate choice.
Because of "subquery caching" (see http://jonathanlewis.wordpress.com/2006/11/06/filter-subqueries/ ) the optimizer cannot predict how often the subquery will have to run. So possibly it shows nothing rather than showing the best or worst cases or a pure guess.
Regards
Jonathan Lewis

Similar Messages

  • Can I move my iWeb from mac-mini to my new macbook pro ? iLife 11 does not have iWeb and I really want to use it to update my website on my new macbook Pro instead of Mac mini

    Can I move my iWeb from mac-mini to my new macbook pro ? iLife 11 does not have iWeb and I really want to use it to update my website on my new macbook Pro instead of Mac mini

    There is no license required for iWeb.  Just do a Wyodor suggested and you'll be ready to go. If you're running Lion however, consider the following:
    In Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    To open your domain file in Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • Can someone tell me why my Macbook Pro does not have IDVD?

    Can anyone tell me why my $$$$ Macbook Pro does not have IDVD? I when to do an IMovie and media shared to IDVD and me computer could not locate. I thought that all Macs have IDVD.  Maybe they forgot it.  I did a search in applications and it said it had no file.  I uploaded the newest IDVD and it told me that I needed IDVD it was not on my computer. Something is wrong with this

    iDVD has not been available with iLife since the upgrade to Lion. It is no longer in production. Try purchasing one of the older iLife '11 boxed set DVDs on Google or eBay.

  • Can anyone explain me, why my iTunes 11 does not have the MiniPlayer ?!!!!

    can anyone explain me, why my iTunes 11 does not have the MiniPlayer ?!!!!

    which OS are you running?
    iTunes11 has limited options if you are running Snow Leopard or earlier.

  • Why my iphone map does not have satellite positioning?

    Why my iphone map does not have satellite positioning?

    Because governments don't want you moving these satellites around. They already have them positioned where they want them .

  • Why the iphone 4 does not have sound when I watching the recorded video?

    why the iphone 4 does not have sound when I watching the recorded video?

    Have you turned up the volume?
    Try the buttons, or the bottom audio slider.
    Does your phone normally play audio?
    And have you tried to record and audio note to check if your microphone is not faulty.

  • Smartview v11 does not have batch and scheduling capabilities?

    From reading documentation, it seems that Smartview v11 does not have batch and scheduling capabilities. Am I right?
    So if I want to schedule my Essbase reports and run cascading reports to be batched and emailed to different users (each receiving custom repors for their Business Units), how would I go about it?
    Should I create the rep;orts using Financial Reporting and batch email it out to users, who can then convert those FR reports to Smartview so that they can perform Drill-in detail analysis ?
    Thanks in Advance.

    You could also possibly run a VBA based excel macro to create a "Batch" process that would update a sheet or create a workbook, and email the file to an end user. Looking within the smartview VBA commands there are some pretty useful commands that could automate this process for you. I'm not sure on the process you would use for automating a process to send FR reports, but emailing from within excel is not usually to hard to do via VBA and might help to automate this.
    JF

  • I upgrade my iPhone 4 to iOS 6 and if I'm close to my router the signal indicator comes on and the phone connects to the wifi just fine, but if I step away from the router my phone does not have signal and cannot connect to Internet

    i upgrade my iPhone 4 to iOS 6 and if I'm close to my router the signal indicator comes on and the phone connects to the wifi just fine, but if I step away from the router my phone does not have signal and cannot connect to Internet 

    I can use my iPhone only with wifi .
    I don't get any signal and I can not connect to
    The Internet without wifi.
    When I don't use my wifi from home I have lost all connection to the net
    My iPhone is on and working it does not shut down

  • Phone connects to the wifi just fine, my phone does not have signal and cannot connect to Internet away from wifi network t

    i upgrade my iPhone 4 to iOS 6 and if I'm close to my router the signal indicator comes on and the phone connects to the wifi just fine, but if I step away from the router my phone does not have signal and cannot connect to Internet 

    I can use my iPhone only with wifi .
    I don't get any signal and I can not connect to
    The Internet without wifi.
    When I don't use my wifi from home I have lost all connection to the net
    My iPhone is on and working it does not shut down

  • XML Payload does not have namespace and prefix.

    Hello
    I have created a consumer business service which will be called from JDEdwards EOne, pulls data from database and send it to Fusion Middleware.
    SO, I have created proxy using JAX-WS option. And suggested in oracle doc, I created proxy outside OMW and then copied it to my project. XML payload is getting generated without namespace and prefix. After some research, I modified package-info.java. Now, I am able to send the payload and if test it locally from Jdeveloper and take xml output using marshaller I can see it has namespace and prefix as well. BUt, when I run this from server it does not have namespace and prefix.
    Please help.
    Thanks
    TK

    Hi Naresh,
    The "rejectedMessage" property is for 10G, I am not 100% sure about its implementation in 11G.
    In 10G the faulted XML file moves to this location "Oracle_Home\bpel\domains\domain_name\jca\project_directory\rejectedMessages".
    This property is used to move the files which are not valid XML or which are not schema compliant. For DB polling I don't think this property is used.
    -Yatan

  • Error after update : "Method 'Upgrade' does not have an implementation"

    Hello,
    After installing the last Updates for my SharePoint Farm 2013, I ran into an issue. When I try to connect to the site, I get this error :
    Method 'Upgrade' in type 'Microsoft.SharePoint.WorkflowServices.WorkflowServiceApplicationProxy'
    from assembly 'Microsoft.SharePoint.WorkflowServices, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c' does not have an implementation.
    And there is a lot of strange behaviours within my farm. I cannot run a psconfig, the services FIMService
    and FIMSynchronizationService cannot start, I can see the category "Office 365" in Central Administration but I have a SharePoint Server 2013, not online or any 365 thing... And I cannot uninstall previous SharePoint Updates...
    Any idea ?
    Thanks in advance for your answer.
    Mike

    Hi Mike,
    If you are using SharePoint 2013 Server edition, please re-download the
    SharePoint Server 2013 SP1(KB2880552) instead of SharePoint Foundation version, then install it on the server and check results again, here is another post with similar
    issue you can take a look.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/ee5c9cee-2b8c-473a-adc6-05d74aac9511/error-after-update-installation-method-method-upgrade-in-type-?forum=sharepointadmin
    http://blogs.technet.com/b/stefan_gossner/archive/2014/04/22/sp1-for-sharepoint-2013-has-been-rereleased.aspx
    http://thesharepointfarm.com/2014/05/ms14-022-known-issues/
    Thanks
    Daniel Yang
    TechNet Community Support

  • Workflow Manager Configuration - Certificate with Thumbprint does not have a private key

    After following the video series on how to install and Configure Workflow Manager into SharePoint 2013 http://technet.microsoft.com/en-us/library/dn201724(v=office.15).aspx,
    I get to the 'Configure Certificates' section in the Workflow Manager Configuration:  I browse to our wildcard certificate and select it.
    When I try to move to the next page of the configuration wizard, I get the following red error under the certificate:
    Certificate with thumbprint LONG STRING does not have a private key.
    I checked the properties of the certificate, and it says: You have a private key that corresponds to this certificate.
    What am I missing??
    Thank you.
    macrel

    Hi,
    According to your post, my understanding is that you got error under the certificate.
    Please make sure you configure the workflow manager correctly.
    More information:
    Install and configure workflow for SharePoint Server 2013
    Installing and Configuring Workflow Manager 1.0
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • My Ipod touch is running iOS v.3 and I cannot update.  It does not have the software update choice under settings-General.  Pls help

    I cannot update my software on my Ipod touch.  It is currently on v3.1.3 and it does not have the option to update.  I have tried Settings-General and there is not an option to update.  Please help

    To update
    iTunes 10 for Windows: Update and restore software on iPod, iPhone, or iPad
    A 1G iPod can go to iOS 3.1.3
    A 2G to 4.2.1
    A 3G to 5.1.1
    A 4G to 6
    Identifying iPod models

  • Why my Apple TV does not have a tv shows icon

    I'm in Malaysia, my Apple TV does not have a tv shows icon?

    maybe apple don't sell tv shows in your country
    nor do they in mine "Denmark" rule of thumb if it's not in itunes on the computer it's not on the appletv

  • How to find the deliveries which does not have Carnot and SHPCON

    I have a scenario where for some of the deliveries no CARNOT idoc or SHPCON idocs were not been created or went into error, i have verified it in by going to we05 and found there were many idcos in error and some of the idocs were been set to status 68 and they were manually processed by users.  is there any table where i can extract the deliveries which does not have SHPCON idocs created.

    hi,
    you have to take two steps in this:
    first step:
    Table EDIDC which contains EDI Control records.
    which stores the partner number,partner functions & message types.
    2nd step:
    take that partners and get deliveries from LIKP table.
    regards,
    balajia

Maybe you are looking for