User Tools

Site Tools


how_to_get_sql_profile_hints

The following statement is used to obtain the sql profile hints

SELECT extractValue(value(h),'.') AS hint
  FROM sys.sqlobj$data od, sys.sqlobj$ so,
  table(xmlsequence(extract(xmltype(od.comp_data),'/outline_data/hint'))) h
  WHERE so.name = 'opt_estimate'
  AND so.signature = od.signature
  AND so.category = od.category
  AND so.obj_type = od.obj_type
  AND so.plan_id = od.plan_id;
  
  

Source: https://antognini.ch/2008/08/sql-profiles-in-data-dictionary/

how_to_get_sql_profile_hints.txt · Last modified: 2017/12/29 10:36 by admin