2026-03-12 20:23:15

This commit is contained in:
root
2026-03-12 21:23:47 +01:00
parent eab4b36eca
commit 93039b8489
3332 changed files with 699614 additions and 0 deletions

38
vg/awr_sql_hints.sql Normal file
View File

@@ -0,0 +1,38 @@
@@header
/*
*
* Author : Vishal Gupta
* Purpose : Display Hints in a SQL Statement
* Parameters : 1 - SQLID
* 2 - Child Number
* Revision History:
* ===================
* Date Author Description
* --------- ------------ -----------------------------------------
* 01-May-12 Vishal Gupta First Draft
*
*/
set pages 50
DEFINE sql_id="&&1"
DEFINE child_no="&&2"
SELECT extractvalue(value(d), '/hint') AS outline_hints
FROM xmltable('/*/outline_data/hint'
passing ( SELECT xmltype(other_xml) AS xmlval
FROM v$sql_plan
WHERE sql_id LIKE NVL('&sql_id',sql_id)
AND child_number = &child_no
AND other_xml IS NOT NULL
)
) d
;
UNDEFINE sql_id
UNDEFINE child_no
@@footer