Cant use HINT's

hello all,
this is 10g on AIX(RAC). i have been trying to use a index on a query forcefully by using a HINT ..here is the query.
SELECT m.* FROM law.messages m inner join law.log_events l on l.bod_id = m.bod_id and l.type = 'LogEventException' WHERE ((m.source_date_time between
to_date('2008-10-01 14:58:00', 'yyyy/mm/dd hh24:mi:ss') and
to_date('2008-10-02 14:58:00', 'yyyy/mm/dd hh24:mi:ss')) and m.bod_id!='unknown') ORDER BY m.source_date_time desc;
and my question it still not using an index i want it to use. the index name is IDX_MSG_SOURCE_DATE_TIME .....its on message table...wat am i doing wrong here?? this is wat i using the hint as...
SELECT /*+ index (message idx_msg_source_date_time)*/ m.* FROM law.messages m inner join law.log_events l on l.bod_id = m.bod_id and l.type = 'LogEventException' WHERE ((m.source_date_time between
to_date('2008-10-01 14:58:00', 'yyyy/mm/dd hh24:mi:ss') and
to_date('2008-10-02 14:58:00', 'yyyy/mm/dd hh24:mi:ss')) and m.bod_id!='unknown') ORDER BY m.source_date_time desc;
i look at the explain plan and everything...it dosent use the index i want it to use..so wat am i doing wrong?? i did drop and re-created the index...gatherd stats for the index...tables and whole schema as well...still no results...
the query dose pick up the index or shall i say use a index on log_Event table ....but dont use index on message table...which is making this query run forever...
Edited by: user630084 on Oct 14, 2008 10:33 AM
Edited by: user630084 on Oct 14, 2008 10:36 AM

Hi,
check the EP of below sql. it should use the index.
SELECT /*+ index (m idx_msg_source_date_time)*/ m.* FROM law.messages m inner join law.log_events l on l.bod_id = m.bod_id and l.type = 'LogEventException' WHERE ((m.source_date_time between
to_date('2008-10-01 14:58:00', 'yyyy/mm/dd hh24:mi:ss') and
to_date('2008-10-02 14:58:00', 'yyyy/mm/dd hh24:mi:ss')) and m.bod_id!='unknown') ORDER BY m.source_date_time desc;
Thanks,
krishna B

Similar Messages

  • Cant see my airplay icon, cant use my remote app on either of my devices

    Hi
    I have the gen 3 apple TV and somehow i can no longer airplay, from my mac book pro, ipad, ipad mini or iphone.  It used to work on all of my devices and now I cant see the icon. 
    When I open my remote app it tells me that I have to turn on Home sharing on my itunes or apple tv.  It is turned on, on all of my devices.
    I have been trying to trouble shoot this issue (all of my devices have the latest updates) and I still cant use my remote or air play
    Any suggestions on how to fix this?

    I was able to fix the issue by unpluging the apple tv, router, and modem all for about 2-3 minutes and then replugging them in

  • How do I transfer an app from itunes my pc to my iphone 4s? I cant use wifi as my chip fried at the last update

    How can I transfer an App purchased on iTunes on my pc to my iPhone 4s. I have tried synching but this does not make the app appear on my iPhone. I cant use wifi as my chip was fried on the latest update.

    When you tried syncing, did you connect the phone, then click on the phone icon near the top left of iTunes, then click on Apps under Settings in the sidebar, then find the app in question and click the Install button beside it before clicking Sync at the bottom right?

  • TS4268 Why i cant use my iMessage in my ipad mini? I use the same id and password in my iphone

    Someone help me with the problem i have. I cant log in into my iMessage in my iPad mini using the same account i am using in my iPhone. I checked the spelling of the password and username they are all correct but still i cant use it on iMessage. Somebody help me. Thanks

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Just enter your existing details, don't try creating a new account.

  • HT201343 My MBP is Early 2011 but dunno why cant use mirroring with apple TV, the icon cannot be found

    My MBP is Early 2011 but dunno why cant use mirroring with apple TV, the icon cannot be found. So cannot use mirroring.
    I have follow trouble shooting , they recommend to go system preference -> display , thus can find out the mirroring icon if no mean it doesnt support. But according to the web, Early 2011 MBP should be able to use, dunno why.

    Just realise I havent updated my OS to mountain lion and this is the reason why I cannot use mirroring before ^^
    Thanks all

  • I cant use facetime. but my sister can. we share the same account for itunes.but when i go to face itme and click on create a new account a blank screen pops up. what do i do?when i go to make a new facetime account nothing comes up

    i cant use facetime. but my sister can. we share the same account for itunes.but when i go to facetime on my ipod touch and click on create a new account a blank screen pops up and the only thing it says is cancel and account.  what do i do?

    Please follow these directions to delete the Mail "sandbox" folder.
    Back up all data.
    Triple-click the line below to select it:
    ~/Library/Containers/com.apple.mail
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected folder — not just its contents — to the Desktop. Leave the Finder window open for now.
    Quit and relaunch Mail, and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window. If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Post your results.
    Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • HT201303 I got a new computer and I authorized it but cant use my credit money to purchase songs without a credit card. I have credit on itunes account how do I get past the credit card question?

    I got a new computer and I cant use my money balance without it asking me to confirm a credit card. I have credit on itunes account I dont use credit cards it was an itunes card and I do not have it anymore .

    How to use your iPod to move your music to a new computer

  • My iphone 4 is in DFU mode.  However I still want the photos on the phone so I cant use the itune recover option.  Does anyone know of a work around

    My iphone 4 is in DFU mode.  However I still want the photos on the phone so I cant use the itune recover option.  Does anyone know of a work around

    actually its not in DFU which is suppose to be a black screen.  When it powers on there is an image of Itunes logo and the usb cord.  What happened is I did an update before I backed up my photos the phone worked great after the update no issues till it powered off.  When I turned it on again it had those two icons and was forcing me to sync with Itunes to system default which will wipe out my media. 
    Have you heard of any data recovery services

  • I cant use imessages, it tells me that it had an error while sending a message

    i cant use imessages, it tells me that it had an error while sending a message, but it can do all the other things.

    I have a third generation iPod touch, newest software version, wifi is on, address in contacts, phone number in contacts. I can start to send a message, it gets close to the end and then fails to deliver. I have read the trouble shooting guide and followed all directions. I can send from my iPad just fine, but not the iPod.  Any ideals?

  • What should i do i buy a second hand iphone 4s but its lock to the previous owner in find my iphone pls help me i cant use my iphone for a year already

    pls. help me about find my iphone lock. because i buy a second hand iphone 4s but still lock to the previous owner when i restore factory settings still searching for the previous owner of this phone still now i cant use this phone

    Hello jimmy ii
    The only option is to contact that person to have them remove Activation Lock from the iPhone. They can do it online and do not have to come to you. Check out the article below for more information.
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account
    http://support.apple.com/kb/TS4515
    Regards,
    -Norm G.

  • Cant use my iMessage in my macbook pro and receive my last emails

    i cant use my imessage in my mac cause its say that :   message cant log in to my email cause my login ID or pasword is incorrect
    but when i try to get ito my email account i can opened, the problem is only in my macbook pro.  the other problem is the last sync i did with my old iphone 3s to my macbook pro it show the emails of years ago but not the recent emails that i received also in my 4s iphone. So i dont know how to fix the problem, is it i have to change in someplace of the macbook pro the new password of my email account to receive and sync the last mails? how?

    Hello perl@
    Start your troubleshooting with the article below to activate iMessage on your Mac. Check to see if you can log in to the appleid.apple.com to access your account to see if it needs verification.
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/ts3970
    Regards,
    -Norm G.  

  • I got my ipod yesterday but it dosent have wifi and now i cant use my apps but it sais its on. how do you conect to wifi?

    so i set up my ipod after i got it and i put the server as itunes but i dont know  what happend that it dosent have wifi. it says  its on but now i cant use most of the apps it has.

    try rebooting the router, because it might not be a problem from the iPod

  • HT1766 hi i just got a brand new iphone 5s i tryed to set it up but it doesnt work. when i plug it in with itunes it does all the back up and restore and when its finished i still cant use the phone as i still ask me to start the set up from the beginning

    hi i just got a brand new iphone 5s i connected to itunes to restore all my data from the previous phone. when all the back up is finished i still cant use the phone as it ask me to restart again....  dont know what to do i tryed to restore 3/4 times but again when the restore is completed i still can't use the phone????

    Replacements via Apple tech support are usually refurbished units, not new stock, though none of us here can say with certainty what you will receive. But you will not be able to tell the difference between new stock and a refurbished unit, and refurbished units generally go through more extensive testing than do new units, so getting a refurb may well be better than getting new stock.
    Regards.

  • What is the disadvantage of using hints in query

    hi all,
    i am report developer, in my project we were using hits in the query ... so that the query performance has improved ..
    my question is if we use hints in the query will it give any effects.. means to say instead of using hints we can make use of execution plan..
    what is the use of execution plan i don't know.. but i have an ideal about it .. if we change the execution plan then that will be use full i think
    please reply me,, if am wrong please correct me.. am not that much good at execution plan and hints in oracle..
    please tel me the difference between hints and execution plan and which one is better ?
    Thanks
    Raja

    Hint are used to bias the execution plan of a query. So there is no 'which is bettter'. Hints may be used to generate a different execution plan, but you can't predict how an execution plan looks like in the end. This decision is done by the db engine.
    It best to start without any hints and let the query optimizer do the work. For queries you feel run to slow you can try to give hints and see if your assumption is correct (when the execution time is faster with hints).
    On the other side your question is not related to jdev. You may ask the question in the {forum:id=75} forum
    Timo

  • I have a new OS X now my Iphoto version 8.2 needs upgrading I downloaded 9.3 but I cant use it as I need a minimum of 9.1 how do I do this ?

    I have a new downloaded OS X now my Iphoto version 8.2 needs upgrading I downloaded 9.3 but I cant use it as I need a minimum of 9.1 how do I do this ?

    You can purchase the newest version of iPhoto on the Mac app store. Cost (in US dollars) is $14.99.
    It sounds like you downloaded an iPhoto update to take version 9.1 up to 9.3. You can't use it with version 8.x.
    Best of luck.

Maybe you are looking for

  • Invoking GP process from UWL

    I'd like to invoke a guided procedure on our EP (7.0 SP8 with Java stack) triggered by an organisational change in R/3 HR (4.6C). The Business Workflow is quite easy to set up, and a task can be seen & executed in UWL on portal. How do I easily start

  • Custom xml transformer provider for xml iview template

    I have been trying to get a custom simple xml transformer to work, which will show up in the xml iview template.  I have seen the SAP Help docs and the recent weblogs on the subject.  I can't get this simple transform functionality to work.  I can ge

  • Moving to a New Mac

    Greetings all. I am a fairly recent convert to Mac. I got an iMac about six months ago, loved it so much I got a Macbook Air for travel. This is about the Macbook Air. I have a great installation on my iMac, including Parallels with Windows 7. All ve

  • New update 1.1/masking preview doesn't show 75% of time

    hi masking preview when you hold option (mac) shows only 25% of the times I attempt to use it Any ideas, does this happen with other people ? D

  • Computer takes several minutes before connecting to the Internet

    When I start my computer, it connects to my router but it doesn't connect to the internet. All applications that require an active connection time out. However, all my other devices that are connected to my router can access the internet without any