-- ********************************************************************
-- * Copyright Notice : (c)2008 OraPub, Inc.
-- * Filename : sqls4
-- * Author : Craig A. Shallahamer
-- * Original : 17-AUG-98
-- * Last Update : 20-JAN-00
-- * Description : Show SQL statement text for a given SQL ID
-- * Usage : start sqls4.sql SQL ID
-- ********************************************************************
def hash=&&1
def osm_prog = 'sqls4.sql'
def osm_title = 'SQL Statement Text (SQL ID=&hash)'
col hv noprint
col ln heading 'Line' format 9,999
col text heading 'SQL Statement Text' format A65
start osmtitle
select t.hash_value hv,
t.piece ln,
t.sql_text text
from v$sql a,
v$sqltext t
where a.sql_id = t.sql_id
and a.sql_id = '&hash'
order by 1,2
/
undef hash
start osmclear