DBAsupport.com Forums - Powered by vBulletin
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Hint not working properly

  1. #11
    Join Date
    Sep 2007
    Posts
    42

    Hint is not working properly

    Yes but what is causing the hint behave so whimsically? Is it because of CBO?

    Regards,
    Indrajit

  2. #12
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Could you please define "causing the hint behave so whimsically" - I'm pretty sure hint is doing what is supposed to do. If you don't trust explain plan then trace the query.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  3. #13
    Join Date
    Aug 2007
    Location
    Cyberjaya,kuala lumpur
    Posts
    340
    Indrajit ,

    A hint will be ignored if it is:

    o Syntactically incorrect. If the hint syntax has not been followed
    then the hint will be treated like a comment and ignored.

    o Semantically incorrect. If the hint is semantically incorrect
    (i.e. it references invalid or unusable constructs or if it conflicts
    with other hints) then it may be ignored.

    o Rule hints may be overridden by the presence of Cost Based only features.

    o The hint must reference the hinted objects correctly. Spelling mistakes in object
    names will cause hints to be ignored. Also if the object name in question
    contains 'special characters' you will need to double quote the name to
    allow the name to be picked up correctly.
    Thanks/Gopu

  4. #14
    Join Date
    Sep 2007
    Posts
    42

    Hint is not working

    I found a new thing. In qua database when I am running this query with hint it is fetching the data in 1 hour. But in prod database when I executed the query without hint it is taking hours and hours

  5. #15
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Quote Originally Posted by indrajit2002 View Post
    I found a new thing. In qua database when I am running this query with hint it is fetching the data in 1 hour. But in prod database when I executed the query without hint it is taking hours and hours
    Did you trace the query in both environments?
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  6. #16
    Join Date
    Sep 2007
    Posts
    42

    Hint is not working

    Yes traced both the session. Will upload both the trace files.

  7. #17
    Join Date
    May 2002
    Posts
    2,645
    Why all the brain damage on this? Just look at the execution plans and see if they are the same in terms of access and join methods. You can do that for yourself. You can also run 10053 trace event and see what the optimizer is doing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width