2026-03-12 20:23:15
This commit is contained in:
21
tpt/awr/other_xml.sql
Normal file
21
tpt/awr/other_xml.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
-- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com
|
||||
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
|
||||
|
||||
select
|
||||
-- sql_id
|
||||
-- , child_number
|
||||
-- , plan_hash_value
|
||||
substr(extractvalue(value(d), '/hint'), 1, 100) as outline_hints
|
||||
from
|
||||
xmltable('/*/outline_data/hint'
|
||||
passing (
|
||||
select
|
||||
xmltype(other_xml) as xmlval
|
||||
from
|
||||
dba_hist_sql_plan
|
||||
where
|
||||
sql_id = '&1'
|
||||
and other_xml is not null
|
||||
)
|
||||
) d
|
||||
/
|
||||
Reference in New Issue
Block a user