2026-03-12 20:23:15
This commit is contained in:
14
tpt/xi.sql
Normal file
14
tpt/xi.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
-- 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.
|
||||
|
||||
prompt eXplain the execution plan for sqlid &1 child &2....
|
||||
|
||||
-- with ADAPTIVE included:
|
||||
-- select * from table(dbms_xplan.display_cursor('&1',CASE WHEN '&2' = '%' THEN null ELSE '&2' END,'ALLSTATS LAST +COST +ROWS +ADAPTIVE +PEEKED_BINDS +PARTITION'));
|
||||
|
||||
-- without ADAPTIVE included:
|
||||
select * from table(dbms_xplan.display_cursor('&1',CASE WHEN '&2' = '%' THEN null ELSE '&2' END,'ALLSTATS LAST +COST +ROWS +PEEKED_BINDS +PARTITION'));
|
||||
|
||||
-- with 19c HINT_REPORT
|
||||
-- select * from table(dbms_xplan.display_cursor('&1',CASE WHEN '&2' = '%' THEN null ELSE '&2' END,'ALLSTATS LAST +COST +ROWS +PEEKED_BINDS +PARTITION +HINT_REPORT'));
|
||||
|
||||
Reference in New Issue
Block a user