SQL QUERY TO FIND THE NON SYS OBJECTS IN SYSTEM TABLESPACE

SQL QUERY TO FIND THE NON SYS OBJECTS IN SYSTEM TABLESPACE

Use this query to identify the objects which are not owned by SYS or SYSTEM user respect to icol$ in system tablespace

select b.owner,
            b.object_name,
            b.object_type,
            b.status
from
sys.icol$ a
inner join dba_objects b on ( a.obj# = b.object_id )
and b.owner not in ('SYS','SYSTEM')
order by 1 desc;

Leave a Reply

Discover more from XscalibaL

Subscribe now to keep reading and get access to the full archive.

Continue reading