首页 > 数据库 > Oracle > Oracle12C查询自建用户(非系统自带)
select username from dba_users where INHERITED='NO';
或者
SELECT username,account_status from dba_users where account_status = 'OPEN' and username not like '%SYS%' and username not like 'C##%' and username not like 'PDBADMIN' and username not like 'DBSNMP';
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23825935/viewspace-2717273/ ,如需转载,请注明出处,否则将追究法律责任。