CBO vs RBO [message #262966] |
Tue, 28 August 2007 11:36 |
rubhatta
Messages: 7 Registered: August 2007
|
Junior Member |
|
|
We are upgrading our Oracle database from 8i to 10g. We have some SQL statements that use the Rule hint. Since RBO is not supported in 10g, what will be the impact of the Rule hints on the performance? How do I handle the same?
One of the SQL statements looks like this:
SELECT /*+ RULE */ d.lig_fo_id, o.order_key_id,o.source_system_id
FROM order_hdr_info o, order_dtl_info d
WHERE o.order_key_id = d.order_key_id
AND o.source_system_id = d.source_system_id
AND o.cof_list_id > 'A%'
AND (o.division is null or o.division = '')
Kindly let me know what I should do.
Thanks.
|
|
|
|
|
Re: CBO vs RBO [message #262997 is a reply to message #262983] |
Tue, 28 August 2007 13:52 |
rubhatta
Messages: 7 Registered: August 2007
|
Junior Member |
|
|
Thank you for your replies.
I should probably compare the execution plans using /*+RULE*/ and
/*+CHOOSE*/ (to force the CBO). If the plan seems to work better with the RULE hint should I keep it that way or try to tune the query better for CBO?
What would you suggest?
|
|
|
|