My simple sql statement:
SELECT USERNAME FROM ALL_USERS;
But I want to filter system users from the result. I searched but could not find anything that Oracle provided; so I tried this expression and it does not work:
select username from all_users where username not like '%SH%' or username not like '%SYS%' or username not in ('ANONYMOUS', 'DBSNMP', 'MGMT_VIEW', 'ORDPLUGINS', 'OUTLN', 'SI_INFORMATION_SCHEMA', 'WK_TEST', 'WKPROXY', 'XDB');
This does not work. How can I change my query to the desired result, or maybe there is something that provides the oracle for getting predefined system accounts?
source share