Re: Ignore histograms on sql level
Date: Tue, 19 Jan 2021 23:15:55 -0500
Message-ID: <a2809749-8684-b566-2ebe-c0735f59cfde_at_gmail.com>
I don't understand this. What would be the rationale behind making such a quick & dirty fix permanent? If the query needs disabling histograms to run properly, there is obviously something wrong with the query. This sort of black magic is fairly dangerous and will obviously present problems at upgrade times. I understand the need to get something running acceptably right now, if I could grow a hair for every time somebody wanted me to fix something right now, my bald spot would be gone and then some. However, making a permanent change using SQL_PATCH or DBMS_SPM is another thing entirely, at least in my humble opinion.
On 1/19/21 9:33 PM, Tanel Poder wrote:
> Cool,
>
> So with COLUMN_STATS you could use a SQL Patch to precisely disable
> histogram use for just one column of a single table in a single query.
>
-- Mladen Gogala Database Consultant http://mgogala.byethost5.com -- http://www.freelists.org/webpage/oracle-lReceived on Wed Jan 20 2021 - 05:15:55 CET