-- gsql.sql: full SQL text for a SQL_ID on one instance -- Copyright (c) HASHJOIN. MIT License (https://hashjoin.com/kb/license/) -- https://hashjoin.com/kb/oracle/sql-text-and-plan-for-a-sql-id/ -- -- Usage: @gsql.sql select sql_text from gv$sql where sql_id = '&&1' and inst_id = '&&2' /