conn sh/sh
CREATE OR REPLACE PUBLIC SYNONYM my_plan_table for plan_table;
explain plan
for
select count(*) from sh.times;
SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
explain plan
set statement_id='st1'
into my_plan_table
for
select count(*) from sh.times;
SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY('my_plan_table', 'st1'));