-- getsql.sql: execution plan of a cursor in the shared pool (dbms_xplan.display_cursor) -- Copyright (c) HASHJOIN. MIT License (https://hashjoin.com/kb/license/) -- https://hashjoin.com/kb/oracle/sql-text-and-plan-for-a-sql-id/ -- -- Usage: @getsql.sql -- @getsql.sql 0ycvb78r4383w 0 set echo off set lines 400 set trims on col PLAN_TABLE_OUTPUT format a200 set pages 0 select * from table(dbms_xplan.display_cursor('&1',&2));