Why was RBO used?

Oracle 11.1.0.7.
spfile - optimizer_mode = ALL_ROWS. optimizer_features_enable = 11.1.0.7.
Auto stats gathering jobs are all enabled. So everything should be all CBO all the way.
Some queries were mysteriously slow on Friday. Digging into AWR stats finally revealed that a SQL statement (sql_id) had spawned a plan_hash_value that was the culprit. It was doing a full table scan on a large table and consuming a lot of CPU/IO. Dumping out everything AWR knows about this SQL using
select * from table(dbms_xplan.display_awr('45knuy45ha5f2',NULL,NULL,'ADVANCED'))Pored over the output and sure enough, the "bad" plan_hash_value was using the FTS and the Note in the output said "rule based optimizer used (consider using cbo)".
I couldn't believe my eyes. Why in the world did that one child cursor use the RBO?
Any ideas?

Karthick - No. The query is coming from a application so the query and session parameters are fixed. As AWR shows, the query was executed dozens of times and all the plan_hash_values for the same sql_id use CBO, just this one bad apple used the RBO. Why?
Hoek - Yes, I read all of Kerry Osborne's excellent blog entries, that's how I narrowed down the problem to this particular sql_id. But it doesn't talk about WHY a particular query would use the RBO. The most common culprit, bind variable peeking, may cause the plan to flip between 2 CBO plans but it shouldn't cause the RBO to be used.
Martin - That's what I thought too but all objects used in the query do have stats. Since the Oracle auto-stats job/task is running daily, stats are always up-to-date. Here are all the optimizer* parameters in the spfile.
This is really frustrating.
optimizer_features_enable     11.1.0.7
optimizer_mode     ALL_ROWS
optimizer_index_cost_adj     100
optimizer_index_caching     0
optimizer_dynamic_sampling     2
optimizer_secure_view_merging     TRUE
optimizer_use_pending_statistics     FALSE
optimizer_capture_sql_plan_baselines     FALSE
optimizer_use_sql_plan_baselines     TRUE
optimizer_use_invisible_indexes     FALSE[Oracle Support is looking into it but they usually ask for a 10046 trace and we can't provide that because AWR doesn't capture that and the issue is not reproducible at-will]

Similar Messages

  • Why do vector lines appear different in my Photoshop document compared to the PDF that was created using "Scripts Layer Comps to PDF"? And how do I get them to look the same?

    Why do vector lines appear different in my Photoshop document compared to the PDF that was created using "Scripts > Layer Comps to PDF"? And how do I get them to look the same?

    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, what troubleshooting steps you have taken so far, what error message(s) you receive, if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Why I cant use my apple id? error was this apple id has not yet been used in the iTunes store

    why I cant use my apple id? error was this apple id has not yet been used in the iTunes store

    Log into your account and verify that you have a valid payment method.

  • Is apple really going to make us buy a new applie mine was only bought in 2008 only 4 yrs old no problems whats the deal, why was I offered Lion if mountian lion was not going to be able to be used on my macbook. Apple come on this is rediculous!!!

    s apple really going to make us buy a new applie mine was only bought in 2008 only 4 yrs old no problems whats the deal, why was I offered Lion if mountian lion was not going to be able to be used on my macbook. Apple come on this is rediculous!!!

    Macbooks are only supported if the're late 2008 Alu or early 2009 or later:
    The OP may have an early 2008 Macbook. You have a Macbook Pro, which is different.

  • Why was my credit card used and not my gift card

    why was my credit card charged instead of my gift card?

    We are fellow users here on these user-to-user forums, we won't know.
    Have you checked the purchased history on your account ? If you log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase History section with a 'see all' link to the right of it. Click on that and you should then see a list of your purchases.
    Or haave you added or changed your credit card details on your iTunes account ? If you have then each time that you do so a small temporary store holding charge may be applied to check that the card details are correct and valid and that it's registered to exactly the same name and address as on your iTunes account - it should disappear off your account within a few days or so.
    Store holding charge : http://support.apple.com/kb/HT3702

  • I've just upgraded to latest version of Firefox 4 and my Mac is only OSX.10.4.11 and it won't open. How do I downgrade and get old Firefox back. Don't want to lose all my bookmarks. Why was I able to install in the first place. Very frustrated!!

    've just upgraded to latest version of Firefox 4 and my Mac is only OSX.10.4.11 and now it won't open. How do I downgrade and get old Firefox back. Don't want to lose all my bookmarks. Why was I able to install in the first place. Very frustrated!!

    You can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html
    You can trash Firefox 4.0 then re-install Firefox 3.6, it will use your existing bookmarks, passwords etc
    Mozilla are working to prevent Mac users with non-compatible systems from getting the notification about Firefox 4, and also not displaying the "Download Firefox 4" button on http://www.mozilla.com

  • Why can i use one computer to sync music

    It ***** to find out that with using iTunes, you can only use one computer to sync things such as music. The computer that I was previously using with syncing died on me and now that I am on a new one it says that I have to erase everything on my iPhone just to put one mixtape on it which is complete BS. So I ask you Apple, iTunes support, or whoever, why?

    If you had your itunes backed up then you would not have that problem. You could restore it using time machine, if on a mac, or other backup software, if on a pc. Also if you had itunes match then you don't need itunes at all to sync your music up anymore.

  • I need to uninstall downloaded version of Elements 12 on a computer, then install Elements 12 on the same computer directly from a disk. Elements 11 was previously used on same computer, and the albums and library had been moved to the first installation

    I need to uninstall downloaded version of Elements 12 on a computer, then install Elements 12 on the same computer directly from a disk. Elements 11 was previously used on same computer, and the albums and library had been moved to the first installation of 12, which I am removing. How do I correctly unstall the old Elements 12, and install the new elements 12 from disk, and retain all albums and libraries from the old Elements 12?

    You're welcome.  It was not an answer, it was a question, and it could lead to being helpful if you explain why you think you need to uninstall.
    As far as uninstalling goes, you will uninstall it like you do for any program, which depends on what kind of operating system you have.  If you wish to retain albums and whatnot, maybe the following link can provide some guidance.
    Photoshop Elements Help / Use Backup, Restore to move catalog | Organizer | Elements 6 or later
    http://helpx.adobe.com/photoshop-elements/kb/backup-restore-move-catalog-photoshop.html#ma in_Special_notes_if_you_restore_a_catalog_from_a_previous_version_of_Photoshop_Elements

  • I cannot use a website I need to use, with Firefox 5.0. So, I need to uninstall and go back to 3.5 or 3.6. Please advise. Also, my control panel locks up since Windows Explorer has pbms. Which is why I am using Firefox instead. Thanks for any help!

    I cannot use a website I need to use, with Firefox 5.0. So, I need to uninstall and go back to 3.5 or 3.6. Please advise. Also, my control panel locks up since Windows Explorer has pbms. Which is why I am using Firefox instead. Thanks for any help!

    ''I figured it was going to be FAFSA causing your problem.''
    Install Portable Firefox 3.6.x to your hard drive for that one website. It won't affect your current Firefox installation at all. <br />
    http://portableapps.com/apps/internet/firefox_portable/localization#legacy36

  • Why was deleted the RSS reader in Mail on OS X Mountain Lion?

    Why was deleted the RSS reader in Mail on OS X Mountain Lion?
    How can I re-enable the RSS reader?

    All RSS Readers that I tested from MacAppStore are much worst than Mail's in Lion.
    Hate them all. I'm using blogtrottr.com to compile all RSS and send me via email. But it's flooding my mailbox. There're a bunch of them that require a Google Reader account, and I won't do that. It doesn't matter to Google which RSS I'm following.
    I wish Apple put RSS reading back to Mail. Stupid idea taking it off.

  • How to include a .lvlib in a build that was created using a custom .dll

    I am trying to build an executable in LV2010 that uses a .lvlib that was created using a .dll from Keyence. I have added the .lvlib to the source files as "Always Included" and I have also added all of the .vi files of the library to "Always Included." I still get the error saying "Missing External Function" when running the program. The executable seems to open fine on the development computer but not on a secondary computer. Any ideas?
    Solved!
    Go to Solution.

    ...I assumed too quickly that the problem was resolved. By specifying the path I was actually able to open the executable after installing but none of the .dll functions worked. I noticed that when I specified a path on the diagram, the .dll was no longer included in the dependencies and was no longer included in the build. I guess this would explain why none of the functions were working. I copied the .dll over to the path specified on the diagram and it still did not function.
    This brings me back to the original problem I was facing. I actually removed the .lvlib. I replaced all of the library vi references with the Call Library Function and deselected the "Specify path on diagram" Boolean. When I do this, the build includes the .dll in the dependencies list and it includes the .dll file in the destination folder of the install. However, when running the executable I get a list of errors that read, "Missing external function …” I have attached an image of this error. This is the same error that occurred when I was using the library, but I thought maybe the library was the cause of the problem, which is why I used the Call Library Function instead.
    *I have tried adding the .dll to the support files and I receive the same error when trying to run the executable.
    *I have tried adding the .dll to the support files and making it an “always include” in the installer properties under source files. This returns the same error.
    I’m really not sure where to go from here. Any help is greatly appreciated!
    Attachments:
    Call Library Function.jpg ‏56 KB
    Error.JPG ‏23 KB

  • Why was I charged the activation fee?

    I just joined Verizon this past weekend. We purchased 3 Samsung Galaxy S5's and The Edge 10gb plan. I was told by the CSR that there would not be any activation fees but I would see the sales tax of approx. $90 on my first bill. I was also told my bill would be $220 after discounts and taxes. I received my first bill at $493.10 yesterday.
    #1 - Why was I charged the activation fees?
    #2 - Why do your CSR's mislead your customers? I'm now being told that my monthly bill will be $267.00.
    #3 - How can you allow the treatment of your customers to continue like this?

    That so called tax seems kind of high? Activation fees are $35 not $30. There are upgrade fees of $30 for existing customers.
    The first bill is pro rata of time used in advance and the days before the month in advance.
    The cost of three devices on the edge plan are at least $25 a piece, which should be added in each month. So let's say your monthly plan costs are $160+tax+$75 for the three phones. Is $235+tax then it may be around $267 complete each month.
    Never believe anything the service people tell you. Check your receipt and do not sign anything unless all you agree to is on it.
    Good Luck

  • Why should I use Java

    HI,
    Someone asked me why are you using Java when you can use Visual Basic.
    Well, I ask this question in this forum ?? why ...
    please leave out the portablity part
    --j                                                                                                                                                                                                                                                                                                                                                   

    Well, here is my 2 cents, as it were. I tried learning VB, and found that while it is powerful, when it comes to designing specifically for Windows systems, I found it extremely hard to understand. When I first learned Java, it didn't take me long to understand the concept and relation of classes and objects, and I was writing Swing apps in no time. With VB, it wasn't that easy. Yes, it was mostly drag and drop and add a few lines of code, but I don't like that. I like to be able to get down into the code and see why it works the way it did, and with VB, I just couldn't grasp it. But with Java, it took me no time at all to be able to understand why it worked the way it did, and because of that, I will always choose Java over any other language, except maybe Miva Script, which is a server side language used for e-commerce websites. It was another language that was easy to learn. Does this mean I'm a lazy programmer, always taking the easy way out? Probably, but if it's easy for me to learn, it's easy for me to implement.
    James

  • After downloading my file the word document is mostly gibberish.  Why? service used exportPDF

    After downloading my file the word document is mostly gibberish.  Why? Service used "exportPDF".

    Hi shelbyrn,
    The quality of a conversion really depends on the quality of the original PDF file. Please see Will Adobe ExportPDF convert both text and form... | Adobe Community.  Do you know what or how the PDF file was created?
    You may have better luck by disabling OCR as described in this document: How to disable Optical Character Recognition (O... | Adobe Community. (Note, however, that is  option isn't optimal if the PDF was created from a scanned document; you'd want OCR enabled to convert the image text in the PDF to editable text).
    Best,
    Sara

  • What is "Directory Service" and why does it "use up 194%" ?

    What is "Directory Service" and why does it "use up 194%" on my istat CPU app monitor?
    Ever since I installed Leopard I've noticed this happening more and more - especially when I install an external hard drive or unplug my ethernet line - this is plainly weird and never happened under Tiger - the temperature shoots up to 84° also - I always to a restart to get rid of it but it's kind of worrying....anybody have any ideas?
    Message was edited by: Host

    Had this happen myself.
    It does have something to do with Spotlight/searching. Should go away after a while, or so I have heard from other users, 'cause it hasn't stopped driving me and my fan mad yet.
    Am going to have my MacBook index and follow-up on indexing and whatever else it feels is necessary to finally allow me to search in peace over the weekend while locking it away where I can't hear it.
    Hopefully that does the trick.
    If it wasn't for things working better/faster and most things looking better I might actually consider taking Leopard off again ...

Maybe you are looking for