Professional Documents
Culture Documents
sql
REM
REM You can modify the 'where executions<3' higher
REM or lower to increase or decrease the number of
REM rows back in the query
REM (works on 8i/9i/9.2)
spool /tmp/literals.out
select inst_id,hash_value,module,SQL_TEXT
from gv$sql
where executions<3
order by SQL_TEXT;
spool off
set termout on
set trimout off
set trimspool off
/*---------------------------------------------
Sample Output:
baseobject,type#,update$,insert$,delete$,refnewnam
e,refoldname,whenclause,definition,enabled,propert
y,sys_evts,nttrigcol,nttrigatt,refprtname,rowid
from trigger$ where
obj# =:1
*/