Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: RBO to CBO
> My short answer based on your ambiguity.
>
> 1. Set up a test server
> 2. Run DBMS_STATS
> 3. Unhint any hinted code
> 4. Test
> 5. Rehint as necessary
Just a refinement to Daniel's list: run DBMS_STATS to gather object statistics AND system statistics
> Be sure to work through various permutations of the
> optimizer_index_caching and optimizer_index_cost_adj
> parameters.
For an OLTP system I'll set OPTIMIZER_MODE to FIRST_ROWS_n (choose n according to your application, usually 10 or 100 is good).
Chris
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=