Thanks for the question, Tony.
Asked: January 19, 2017 - 11:33 am UTC
Last updated: January 20, 2017 - 9:48 am UTC
Version: 11.2.0.4
Viewed 1000+ times
select /*EXAMPLE 1*/ count(*) from dba_objects where object_type = 'TABLE' and owner <> 'SYS' and created < sysdate - 50 and status = 'VALID'; select /*EXAMPLE 2*/ count(*) from dba_objects where object_type = 'TABLE' --and owner <> 'SYS' and created < sysdate - 50 and status = 'VALID'; set long 1000000 select sql_id, sql_fulltext from v$sql where sql_text like '%EXAMPLE%' and sql_text not like '%not this%'; SQL_ID SQL_FULLTEXT 80jgrj0m9phwt select /*EXAMPLE 1*/ count(*) from dba_objects where object_type = 'TABLE' and owner <> 'SYS' and created < sysdate - 50 and status = 'VALID' br5p55p6dgmhm select /*EXAMPLE 2*/ count(*) from dba_objects where object_type = 'TABLE' --and owner <> 'SYS' and created < sysdate - 50 and status = 'VALID'
Tony Killen, January 27, 2017 - 1:12 pm UTC
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library