Confusing 10gR2 Optimizer Behaviour - Any Explanations?

I've got a 2 node 10gR2 (10.2.0.2) RAC DB. Recently I was trying to figure out why a particular query's explain plan was indicating that an index was not being used when it would clearly help. This is a query on a single table (no joins). The database was doing a full table scan over many millions of rows instead of consulting the index. I checked that the index was listed as "usable" and that optimizer statistics were current to within an hour and still the optimizer wouldn't use the index.
I then had an opportunity to restart the database instance. Immediately upon restarting the instance and submitting the exact same query the plan showed that the index was used -- Eureka! Now, what would change during an instance restart that might prompt the optimizer to come up with a new plan. Could it be that the optimizer is caching plans and it had this "bad plan" cached and kept re-using it every time until the instance was restarted?
Insight? Places I could read more?
Thank you for your time.

Probably Bind variable peeking issue !!!
Check following white paper
http://www.oracle.com/technology/products/bi/db/10g/pdf/twp_general_cbo_migration_10gr2_0405.pdf

Similar Messages

  • Hello I send imessages to a phone number I receive delivery notice but sms does not show on receiving phone. Otherwise when receive imessage from other phone I reply and receiver sees SMS !!! Any explanation ?

    Hello I send imessages to a phone number I receive delivery notice but sms does not show on receiving phone. Otherwise when receive imessage from other phone I reply and receiver sees SMS !!! Any explanation ?

    To my knowledge, I've only seen this for imessage only and not SMS.
    The other users would need to have send read receipts enabled on their phone.

  • Suddenly I have problems moving files to the trash...  get a dialog saying Finder wants to make changes and I must provide the password... Any explanation or ideas how I can get this to stop?

    Suddenly I have problems moving files to the trash...  get a dialog saying Finder wants to make changes and I must provide the password... Any explanation or ideas how I can get this to stop?

    Please take these steps if you're prompted for a password when moving items in your home folder to the Trash.
    1. Triple-click anywhere in the line below on this page to select it:
    ~/.Trash
    2. Right-click or control-click the highlighted line and select
    Services ▹ Show Info
    from the contextual menu.* An Info dialog should open.
    3. The dialog should show "You can read and write" in the Sharing & Permissions section. If that's not what it shows, click the padlock icon in the lower right corner of the window and enter your password when prompted. Use the plus- and minus-sign buttons to give yourself Read & Write access and "everyone" No Access. Delete any other entries in the access list.
    4. In the General section, uncheck the box marked Locked if it's checked.
    5. From the action menu (gear icon) at the bottom of the dialog, select Apply to enclosed items and confirm.
    6. Close the Info window and test.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. Open a TextEdit window and paste into it (command-V). Select the line you just pasted and continue as above.

  • Since the most recent Firefox update I have been unable to click through links from Windows Live to Firefox, but it works for Internet explorer?? Any explanations?

    Firefox is my default browser and since the most recent Firefox update I have been unable to click through links I receive from Windows Live Email to the Firefox browser, but it works if my browser is set to IE9?? I have checked the defaults settings and both are fine, so Any explanations or ideas on how to solve this?

    Take each of the following steps that you haven't already tried, until the problem is resolved.
    Step 1
    Restart the router. Many problems are solved that way.
    Step 2
    Change the name of the wireless network, if applicable, to eliminate any characters other than letters and digits. You do that on your router via its web page, if it's not an Apple device, or via AirPort Utility, if it is an Apple device.
    Step 3
    Run the Network Diagnostics assistant.
    Step 4
    Back up all data.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Enter the name of your wireless network in the search box. You should have one or more "AirPort network password" items with that name. Make a note of the name and password, then delete all the items. Quit Keychain Access. Turn Wi-Fi off and then back on. Reconnect to the network.
    Step 5
    You may need to change other settings on the router. See the guidelines linked below:
    Recommended settings for Wi-Fi routers and access points
    Potential sources of interference
    Step 6
    Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.
    Step 7
    Reset the System Management Controller (SMC).

  • SDK of id does helps me on SMS mobile systems? pls any explanation.. tnx

    SDK of id does helps me on SMS mobile systems? pls any explanation.. tnx

    At another users suggestion I:
    Disabled both iMes & FT, turned off wifi, rebooted, and then enable both without wifi.
    Waited 15 minutes to activate
    No dice. They both required me to enter my Apple ID, gave the me the warning about charges for text message to activate, waited 10 minutes and again both reported as activated.
    Tried sending an Imessage and it failed (both with Wifi off and then Wifi on). I have not tried Facetime but I expect more of the same.
    As a final measure, I reset the phone, restored and re-activated which did not solve the problems.
    Immensly frustrated at this point. Does anyone have any other suggestions?

  • Does apple have any explanations for why iCloud will not support iWeb & is there any viable solutions. iWeb is critical to my small business & we have all been trained via joint ventue on iWeb. Now it just goes away. Why?

    Does apple have any explanations for why iCloud will not support iWeb & is there any viable solutions. iWeb is critical to my small business & we have all been trained via joint ventue on iWeb. Now it just goes away. Why?

    turbodave2 wrote:
    I appreciate your repsonse, but the irony is that Apple is still scheduling "One-to-One" & Joint Venture training on iWeb knowing that it all will end next June. ..
    Just to add this : iWeb -- the app itself -- is still supported,updated only months ago and as part of the ilife '11 DVDs still widely spread even though it is not sold on the AppStore it is official part of iLife. It runs in Lion and there is zero issues with the app. So a training makes sense, doesn't it ?.
    They would only to exclude the "publish to me.com" part to be up to date for courses and trainings :-≠

  • My iphone has just deleted all my contacts without any explanation. Any help?

    Hello,
    My iphone 4 version 5.0.1 has just deleted all my contacts without any explanation. Suddently my girlfriend called and I could only see her number, not her name.
    I went to contacts and there was nobody in there!!! Even more, there are also no contacts on my ipad mini!!!! That's weird. What's happening?
    I have gone to www.icloud.com and although there are some contacts, contacts are not synced with the latest updates, I also don't know why.
    The most important thing in a phone are its contacts! I thought that apple was providing a complete backup solution, but I am afraid it is not reliable.
    What can I do? What can Apple offer to me?
    Is there a way of restoring an icloud copy directly from the iphone? I have thought on restoring and updating to ios7 and ask for icloud to put my backup copy of today in the morning, but it is possible that icloud does another copy and rewrites the 7am working copy. I have disconnected wifi in order to avoid a copy on icloud without contacts.
    Thank you very much in advance for your help.
    Sincerely,
    Jordi

    Hi Jordi,
    I have the exact same problem and judging by the other posts we are not alone. The one thing that seems to be lacking is any official word or support from Apple - a "bury the head in teh sand" strategy appears to be the chosen response from one of the worlds biggest brands.
    I took it to my Apple store and they were about as much use as chocolate over gloves and told me "this can happen sometimes"???? Seriously, this from an Apple Genius!!??!?!?
    I have not had any joy with iCloud back up so I'm afraid I cant offer any help.
    I will be going to Twitter and Facebook to try to get some action from Apple so I suggest we all do the same and create a noise that Apple cannot ignore....

  • My iphone 3 GS shows mirror image i.e backward/reversed text when switched on or woken up ?  Any explanations or solutions?

    Hi, my i-phone 3GS suddenly started showing all text in reverse or mirror image when it wakes or is switched on.  By toggling the on/off swtich it may revert to normal eventually but it takes time.   Problem is recurrent for 3 days and makes the phone unusable in a hurry.   Any explanations or solutions.

    Add me to the list of disgruntled users who have had this same problem since upgrading to 3.1. After restarting the phone, it works for about 30-40 minutes and after that, no calls, no texts, no voicemails, no 3G web browsing or email (wi-fi still works).
    The tech at the Genius Bar (at the 3rd St. Santa Monica, CA store) seemed as though he had no idea what the problem was. Since my phone is out of warranty, he told me that if the phone needed to be replaced, it would be at my expense, which p*ssed me off, since it was obvious (to me) that the OS update was at fault.
    I did a half-dozen restores before I realized that there was no way to roll back to a previous version of the OS and that outside of that, it didn't really matter what I did.
    I just read the tip on this thread about turning off 3G. It works fine so far. We'll see if it continues to work after the dreaded 40-minute mark.
    Thanks, everyone, for the help. Hopefully, Apple will put out a fix quickly, before they have a revolt on their hands.

  • My iPhone 5 dropped on the floor, then I heard a strange noisy sound inside when I hit it on it's back, any explanations ?

    My iPhone 5 dropped on the floor, then I heard a strange noisy sound inside when I hit it on it's back, any explanations ?

    Bring it to Apple and get it checked out.  How could anyone here possibly know what happened to your phone without seeing it?

  • Prog.crash------any explanation?????

    i wrote a java program with vijualagefor java, ziped it as jar. by running it crashes without any exception message which suggestes any cause of it. it happens unregularly, it seems to be a memory problem, the crash happens mor frequ. on win2000 than on winNT.
    I use jre1.1.8-008, which the most recenly jre for java1.1x.
    anybody has any explanation to i or any suggestion?
    thanks

    I had similar crash problem but with the JOVE compiler,
    i turned out that one of the classes was compiled with other JDK (VJ++) and this caused a conflict in GC procedure, once i recompiled all the classes and packages with the standard 1.1.8 JDK it worked perfectly :) , maybe you have the same problem...
    I know that you aren't using jove but it seems that the same problem, anyway its worth to try to recompile.
    I hope that it will help.

  • Going from 10gR2 to 11gR2 - any obvious performance 'pitfalls'?

    Hi, there,
    I'm moving some databases from 10gR2 to 11gR2. I was wondering whether there were any obvious pitfalls in performance that I should be aware of (like the optimizer ones in previous versions). I'm taking the SPFILE from 10gR2 and modifying it as little as possible to use as my 11gR2's SPFILE.
    Also, I've heard murmurs of timezones being an issue in migrating to 11gR2? I'm either going to be using export/import or TTS to move my data. I wonder if the timezone issue is related to RMAN somehow.
    Mark

    Hi,
    I performed an Upgrade from 10.2.0.4.4 to 11.2.0.1 two weeks ago.
    I used a note from oracle support for manual upgrade to 11gR2
    the database had database vault and also had auditing enabled.
    these peculiarities are all covered in the note.
    I would suggest that if you have auditing enabled, set the parameter audit_trail=none before you commence upgrade.
    In addition make sure the you have tested the upgrade before implementing on your production environment, this would prepare you greatly.
    after the upgrade, the timezone was upgraded to 11, database vault was turned on, EM upgraded, database vault application redeployed.
    all the best
    samuelk
    Edited by: Samuel K on Feb 24, 2011 3:13 PM
    Edited by: Samuel K on Feb 24, 2011 3:14 PM
    Edited by: Samuel K on Feb 24, 2011 3:15 PM

  • Strange behaviour - any ideas?

    Strange behaviour began when i was unable to open a new page in photoshop.
    The next day i was unable to print from word or photoshop or emails.
    However i could print from freehand and excel!
    I used disk 1 to verify and repair disk.
    this did not solve the problem as then when i tried to open Safari the toolbar opened but no window.
    I have reinstalled the operating system making an archive but this also has not had an effect.
    Any ideas on what to do next or should I just reinstall the operating system over the old one?
    many thanks 4 any help

    Sarah, to help the knowlegable users here please advise which model G5 iMac you have & include this info in your system info preference by clicking on the "My Settings" link in the right hand column.-->
    This way, you won't have to keep repeating yourself and the knowlegable users will be able to provide you with the correct trouble shooting information/solutions if the problem is your computer.
    Also, it will be helpful if you will advise which version of Word, Photoshop you have, which email program & the type of printer you are using.
    Thank you.

  • Any Explanations y this query is not ordering ?

    SELECT dept_id, salary, job_id
    FROM employees
    ORDER BY
    ( SELECT dept_id
    FROM departments
    WHERE last_name='Abel');
    Assumptions:
    1. The inner subquery gives a value of 10 only.
    2. There is no 10th column in the Table Employees.
    3. There is only 1 employee in the department 10.
    Output it gives :
    It gives all that is there in the employees table(projected cols), However the first record is always from dept_id= 10, then it just displays without ordering.

    yes you are partially correct. The subquery will return only 10 and not 1 or 5 or any other value.
    I have an explanation to this query bt I'm not sure about it.
    Oracle checks for semantics and syntax at compile time. So if everything is correct then only it submits the query for execution. Now when a subquery executes only then oracle knows there is no 10th col in the database so it is a runtime error.

  • My MacBook Air keeps coming up with an error message stating "Your computer was restarted because of a problem" It has been happening almost daily now.  Any explanations, please?

    I seem to be getting this message fairly regularly.  Even on start-up, I get a message in half a dozen languages, stating the the computer shutdown due to an error.  I have spoken to support and conducted a disk repair but the next day it happened again.  Does anyone have any ideas? I have copy/pasted part of the report below.

    If you have more than one user account, you must be logged in as an administrator to carry out these instructions.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select the most recent panic log under the heading System Diagnostic Reports on the left. If you don't see that heading, select  
    View ▹ Show Log List   from the menu bar. Post the entire contents of the panic report — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports.

  • HT3783 Does anybody know why my calendar in Outlook Office for Mac duplicates and triplicates entries in the calendar?  I would be really grateful for any explanation...  Kind regards Kate

    Does anybody know why my calendar keeps duplicating diary entries in Outlook office for Mac?
    Many thanks in anticipation.
    Kate

    No dont worry i am not going to copy this. The reason i am asking is to see if it is legal or not, its worth getting a discount if its available. Looks like its a no though. If you ask me NUS should be prosecuted because you can be minimum age of 16 and get an NUS card and it says on their site under the link to apple store 'are you a student in further education. If so why not take advantage of a 15% discount on apple products'. (or somethign alogn those lines) Now me and my mate are but we arent over 18. Ive emailed them to try and get a confirmation. Anyone know an email address that i can contact apple directly about this with? Also any more answers to the original post are welcome.
    I would also like to know if i can get any sort of discount on apple products whilst under the age of 18, whether straight through apple or using for example NUS cards.
    Barny
    Message was edited by: barnyiz2cool

Maybe you are looking for

  • Migration from Photoshop CC to Photoshop CC 2014 looses all settings?

    Hi! I installed Photoshop CC 2014, started it and agreed to migrate the Photoshop CC setting to Photoshop CC 2014. But all my workbench settings are gone. And some of my performance settings also. Please fix that. In my case, it's already too late, b

  • Tool cost capturing and calibration of tool:

    Hi, to capture tool cost, we defined tool as fhmi material type and included in bom. Accordingly it is issued to production (thru alternate unit) and tool cost is collected in production order.  Now we need to do calibration also for that tool. To do

  • Embarrassing ESSCMD question (re: error logs)

    Hi all you kind folks,This is one that is probably incredibly obvious, but I just can't find the answer. I use various ESSCMD scripts to load oodles of data into Essbase cubes. The data files are very large. My scripts are set up basically like this

  • Find the log files from EIM?

    Please, tell me where I can find the log files from EIM. I have already checked the directory /siebel/siebsrvr/log but the files there are old. Regards, Slavi

  • Error when uploading data using generic

    Hi, I have created a gereic datasrc using view & i took the following fields MATNR     Material WERKS     Plant PBDNR     Req.plan number BDZEI     Reqmts pointer LAEDA     Last change MEINS     Base Unit FIXMG     Planned qty In the transfer rules o