Can this be fixed?

I'm on 9i R2 Patch 7.
We use CBO and the Statistics on all the Tables are current. It happens daily.
The explain plan for the query below uses a HASH JOIN, does not make use of Indexes and takes 30 seconds to complete.
SELECT Column1, Column2
FROM Table X LEFT OUTER JOIN Table Y ON X.Column = Y.Column
The Explain Plan for the query below uses a NESTED LOOP JOIN, makes use of Indexes and completes in 1 second.
SELECT Column1, Column2
FROM Table X INNER JOIN Table Y ON X.Column = Y.Column
So, the ultimate question is how do I get the CBO to use an Index for the LEFT OUTER JOIN? Why is the LEFT OUTER JOIN so expensive.
Is there a way to fix this? The LEFT OUTER JOIN is required.

Hey dude,
It is true that full table scan is sometimes much cheaper than index scan.
Actually when indexes are used, it will try to acumulate as much memory as possible from database buffer cache. In that process index scans can accumulate all the memory available and the whole application will get screwed up.
But full table scan uses only fixed set of blocks in the memory. CBO will take this into consideration to calculate the cost of the query. So, as the number of records (including rowid scans) increases cost of index scan increases as compared to table scan.
This is vast topic and difficult to understand. But it is true that full table scans can be cheaper costwise compared to index scan. The main reason is when performing full table scans only that query will be slow but wrong index scan can screw up the whole application.
Also please note that there are couple of init.ora parameters where you can change the relative cost between full table scan and index scan.

Similar Messages

  • I have downloaded the most recent version of Iphoto and it no longer works period. I lost all photos, and the app crashes every time I try to open it. How can this be fixed?

    I have downloaded the most recent version of Iphoto and it no longer works period. I lost all photos, and the app crashes every time I try to open it. How can this be fixed?

    Post the first 50 lines only of the crash report
    Regards
    TD 

  • HT1212 Hi, one of my daughters friends tried to access her ipod causing it to become disabled; i do not want her to lose all her photos, she accesses my itunes account which is on ICLOUD, will she lose all her data - can this be fixed?

    Hi, one of my daughters friends tried to access her ipod causing it to become disabled; i do not want her to lose all her photos, she accesses my itunes account which is on ICLOUD, will she lose all her data - can this be fixed? I do not think it has been synced with a computer before.

    Disabled
    If you previously synced to the computer then you may be able to recover use of the iPod without erasing the iPod by following the instructions here:
    Disabled Recovery-must use syncing computer.
    Otherwise y will have to restore and thus erase the iPod
    You can restore from backup
    If not in backup then:
    - If you used PhotoStream then try getting them from your PhotoStream. See that topic of:
    iOS: Importing personal photos and videos from iOS devices to your computer
    - Maybe from the restored iPod via How to perform iPad recovery for photos, videos
    Wondershare Dr.Fone for iOS: iPhone Data Recovery - Wondershare Official     
    http://www.amacsoft.com/ipod-data-recovery.html
    -iPod touch Deleted Photo Recovery Tips You Should Know
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.
    If you previously synced to the computer then you may be able to recover use of the iPod without erasing the iPod by following the instructions here:
    Disabled Recovery-must use syncing computer.

  • Safari 5.1.7 does not open PDF How can this be fixed?

    I have been having to use Firefox to see PDF's.  How can this be fixed in Safari 5.1.7 ?

    Back up all data.
    Quit Safari. In the Finder, select Go ▹ Go to Folder... from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then launch Safari and test.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • A majority of the time, I go to watch videos on youtube the first two seconds of the video load and then the video freezes. I am not able to watch anything after that point. Can this be fixed at the genius bar?

    Youtube will not load videos beyond 2 seconds. How can this be fixed?

    Try contacting YouTube's tech support and/or post in their forums. 
    Make sure you are using the latest version of Adobe Flash Player. 
    Is your RAM maxed out?  Care to share which OS you are using? 

  • HT201210 My iPad is not recognized by Finder or iTunes when it is plugged into the computer.  i ran the Restore sequence and got an error message stating "The iPad could not be restored.  An unknown error occurred (1611).  Can this be fixed?

    My iPad is not recognized by Finder or iTunes when it is plugged into the computer.  i ran the Restore sequence and got an error message stating "The iPad could not be restored.  An unknown error occurred (1611).  Can this be fixed?

    iTunes: Specific update-and-restore error messages and advanced troubleshooting - http://support.apple.com/kb/TS3694 - relating to iPad, iPhone, iPod touch, iTunes
    Security software issues covered in: iTunes: Troubleshooting security software issues - http://support.apple.com/kb/TS3125

  • When I add an event to my exchange calendar in my iphone5 it no longer syncs with ms exchange, can this be fixed?

    We use MS Exchange for our business Contacts, Email and Calendars. When I add an event to my exchange calendar in my iphone5 it will not syncronize to my exchange server, it does works from ms exchange to the phone. Can this be fixed?

    This functionality generally works fine for most people.
    It's going to come down to specific details regarding your Exchange Server version and a whole lot of stuff.

  • I have an iPhone 4 still running 6.1.3 software.  A few days ago it stopped working through my car's USB connection.  How can this be fixed?

    I have an iPhone 4 still running 6.1.3 software.  A few days ago it stopped working through my car's USB connection (I have a 2010 Honda Civic Hybrid).  I can no longer control my music through my car's stereo system.  I am unable to choose what song, album, playlist, etc. to be played and cannot skip songs.  When I try to skip, it reverts back to the first song.  When I choose what to be played directly on my phone, it can only be played for about 30 seconds through my car's stereo system before it stops and displays the message "Unsupported Version."  How can this be fixed?  (Also, I know it is my iPhone and not my car because someone I know has the same exact car as me from 2009 and it did the same thing on theirs.)
    Any help would be greatly appreciated.  This problem is extremely frustrating and the alternative of trying to change music directly on my phone while driving is a risk I am not willing to consider.  Thanks!

    Alright, sorry for not having browsed this page a bit more before stating my question. I have just found some other similar topics on this problem. Please don't reply this thread unless there actually is a solution to the problem, because at current time there is not.

  • HT5598 My Apple IPad keeps crashing when ever I'm in any application. It crashes to the desk top with all my apps. How can this be fixed?

    My IPad crashes every time I use an application. It keeps crashing to the desk top where all the other apps are at. It doesn't matter what application I'm in either. How can this be fixed?

    Hey Hlrj09,
    I'd check out this article and follow the troubleshooting steps within:
    iOS: Troubleshooting applications purchased from the App Store
    http://support.apple.com/kb/ts1702
    Even though it is geared towards applications purchased from the App Store and you're experiencing the issue with all apps, most of the steps would still be applicable to your situation. I would also take a look at the troubleshooting assistant to see if that helps:
    Frozen or unresponsive iPad
    http://www.apple.com/support/ipad/assistant/ipad/
    Hope that helps,
    David

  • PSE 10 installed on windows 7 desktop and recently updated on windows laptop.  now PSE doesn't work on either machine.  How can this be fixed?

    PSE 10 installed on windows 7 desktop and recently updated on windows laptop.  now PSE doesn't work on either machine.  How can this be fixed?

    uninstall pse 10 (properly using the adobe uninstaller).
    clean - Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    then try reinstalling using the adobe installation file(s).
    if you see an activation count error while trying to reinstall contact adobe support, https://helpx.adobe.com/contact.html
    and ask for an activation count reset.

  • I have Norton 360 on my computer and with the older version of Firefox, Norton remembered all my passwords but this new version of Firefox doesn't. How can this be fixed or is there a way to fix this?

    I have Norton 360 on my computer. I use Firefox regularly and I downloaded the latest version of Firefox. I was able to use Norton 360 in Firefox. Norton saved all my passwords I use online. Now the latest update of Firefox does not allow me to use Norton 360. Is this compatibility problem with Firefox or with Norton? Can this be fixed? If so, how? What do I need to do?

    Works for me on Linux with Firefox 10.0.1
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • I am running OS 10.6.8 and Safari 5.1.  Option-Command-Escape now brings up Front Row.  How can this be fixed?

    I am running OS 10.6.8 and Safari 5.1.  Option-Command-Escape now brings up Front Row.  How can this be fixed?
    Also, trying to copy portions of articles from Safari (5.1) to MS Word now results in the twirling ball. Any solutions?

    Try using the other Option (Alt) key. The reason I suggest that - the real command combo for Front Row is Command-Escape; yet yours was being activated when you pressed Command-Option-Escape. That would indicate that Finder was not responding to the inclusion of Option in the key combo. The simplest explanation for that would be that the Option key you are using is not working for some reason.
    One other 'simple' possibility - just to make sure (in case you are using a non-Apple keyboard), Option is the key adjacent to each Command key.

  • My 2 TB Time Capsule's memory is full because it will not automatically delete old files as it is supposed to, so it is giving me zero backup of my two computers now.  How can this be fixed so my Time Capsule deletes the old data and saves the new?

    My 2 TB Time Capsule’s memory is full because it will notautomatically delete old files as it is supposed to, so it is giving me zerobackup of my two computers now. How can this be fixed so my Time Capsule deletes the old data and savesthe new?
    Neither my local computer consultant nor I have been ableto change any of the settings in Time Machine to correct this problem.  Working with the choices in the TimeMachine, there does not appear that there is any way to change the frequency ofthe backups either, so, after a year has elapsed, the time capsule is full, andmy only choice appears to be to erase all the current data on the Time Capsuleand start over, something that I do not want to at all let alone repeat on anannual basis.  My questions are:
    What can be done to have my Time Capsule delete old filesas it is supposed to do, so it has memory available to allow my computers toback up? 
    Is this a software problem that can be fixed online or isdoes this require a mechanical fix of defective hardware?

    How much data is being backed-up from each Mac?  (see what's shown for Estimated size of full backup under the exclusions box in Time Machine Prefs > Options).
    Is there any other data on your Time Capsule, besides the backups?
    Most likely, there just isn't room.  Time Machine may be trying to do a very large (or full) backup of one or both Macs, and can't.  Since it won't ever delete the most recent backup, there has to be enough room for one full backup plus whatever it's trying to back up now, plus 20% (for workspace).
    Also see #C4 in Time Machine - Troubleshooting for more details.

  • I just bought a new samsung 22" monitor and after talking to them found out it needs higher resolution then displayed in my settings,text resolution is bad. do I take back or can this be fixed?

    I just bought a new Samsung 22" monitor. The text resolution is really bad. After talking to Samsung, I found that the needed resolution is higher then what my Mini-Mac shows available. Can this be fixed or do I return the monitor?

    Let's try again...
    my cable goes from the "Thunderball" port on my mini with an adaptor to convert it to the regular cable
    You mean the Thunderbolt port.
    What Mac mini do you have? Apple menu > About This Mac.
    What Samsung monitor do you have?
    What cables are you using?
    Have you tried holding Option and click the Scaled resolutions button in System prefs > Displays?

  • Itunes will not open without re-booting pc following recent "upgrade". How can this be fixed?

    Itunes will not open without re-booting pc following recent "upgrade". How can this be fixed?

    I do the download for the new version, it goes smooth, and then when I try to open it up, it pops up in my Task Manager for a moment and then disappears. No error messages, just disappears.
    hmmmm. can you check something for me? (this might give us a heads up on the nature of the itunes problem.)
    try launching your QuickTime. does it:
    (a) launch perfectly fine?
    (b) fail to launch with an error message? (if so, what does it say?)
    (c) exhibit other peculiar behavior? (if so, could you describe it for us?)

  • I rented a movie on my iPad. It downloaded fine but would only play 36 minutes, 5 seconds worth of the movie; although the time kept running for the length of the movie. Can this be fixed or do I need to get a refund?

    I rented a movie on my iPad. It downloaded fine but would only play 36 minutes, 5 seconds worth of the movie; although the time kept running for the length of the movie. Can this be fixed or do I need to get a refund?

    You can try a rest:
    Reset iPad:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - If that does work, contact iTunes and request a redownload.  You can ask for a refund though.

Maybe you are looking for

  • Need solu to Append the data frm different files..Element 'Rec' not expecte

    i need solution to append the data coming from different files. sample file is of format Header Records Data Records i need to append the data coming from files to single file which consist of single header and data records from all the four files. U

  • Motion randomly stopped opening

    I downloaded Motion from the App Store summer of 2011, have upgraded every time it came out and now have 5.0.3, which Apple says is compatible with OS X 10.6.8, which is what I am running. It has worked perfectly for months and then today it suddenly

  • Getting this weird message when connecting to itunes w/my 5th G Ipod Video

    Hi was wondering if anyone has encountered this. I just purchased this ned 5G Ipod video connected to my itunes 7.0.1 and worked fine. While I am downloading video podcasts I got this error saying that Itunes has detected and ipod in recovery mode an

  • Display Report on a portal

    I have a 6i report. I can log into oracle apps and run the thing and look at the output. very pretty. What I also have is a portal, in which I am using portal builder. i am very new to all this. when i went to "add item" on the page i want to add a r

  • Where do I enter in a serial number for photoshop cs6?

    On installation i clicked on trial because i couldnt find my serial number and then when i found my serial number i opened photoshop. Well now i cant figure out where i go to enter in my serial number so that its no longer doing a trial. Any help wou