[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

How to force Oracle to use a specified index?

Asked by DrJekyll in Oracle 8.x

Is there a way to force Oracle to always use a specified index.  The hint does not guarantee this.
Is there another method?  Below is an example where I want to use the specified index.  However
Oracle uses 2 other indices.  The ones chosen by Oracle and the query never completes.  If I delete
those 2 indices Oracle has no choice but to use the ones specified and query runs fine.  The tables/indices are analyzed.  The hints are syntactically correct.
Any ideas?

SELECT /*+  INDEX (mbr3 mrts_batches_received_idx_02) */ mbr.date_of_service,
      mbr.batch_received_date, mbr.billing_area_id,
       mbr.charts_total, mbr.check_in_out, mbr.record_type, mbr.dept_id
    FROM mrts.mrts_batches_received mbr, mrts.mrts_rpt_billing_areas rba3
    WHERE rba3.billing_area_id = mbr.billing_area_id
      AND (mbr.record_type, mbr.billing_area_id, mbr.date_of_service) IN (
          SELECT /*+  INDEX (mbr3 mrts_batches_received_idx_01) */
                 mbr3.record_type, mbr3.billing_area_id, mbr3.date_of_service
               FROM mrts.mrts_batches_received mbr3
               WHERE mbr3.batch_received_date BETWEEN '01-oct-2007' AND  '01-nov-2007'
                 AND mbr3.dept_id = 'C'
                 AND mbr3.check_in_out = 'IN')
      AND (mbr.record_type = 'R'
      OR  mbr.record_type = 'M')
      AND mbr.date_of_service IS NOT NULL
    ORDER BY mbr.billing_area_id, date_of_service, record_type DESC;
[+][-]04/17/08 07:07 AM, ID: 21377186Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Oracle 8.x
Sign Up Now!
Solution Provided By: Milleniumaire
Participating Experts: 4
Solution Grade: B
 
[+][-]04/17/08 06:57 AM, ID: 21377069Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/17/08 07:01 AM, ID: 21377128Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/17/08 07:10 AM, ID: 21377225Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/17/08 02:01 PM, ID: 21381323Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/18/08 04:40 AM, ID: 21384884Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/21/08 05:46 AM, ID: 21401020Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/21/08 06:07 AM, ID: 21401235Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/21/08 10:53 AM, ID: 21404305Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 / EE_QW_2_20070628