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';

 

 

 

oracle数据库中的实例和用户的关系

 它们是多对一关系。
解释:一个用户只能属于一个数据库,但是一个数据库中可以有多个用户。
扩展:实际上这里面还有表空间的概念,一个数据库可以有多个表空间,一个用户可以默认一个表空间,但是可以操作多个表空间,多个用户可以同时用一个表空间。

参考:https://zhidao.baidu.com/question/204452672862070405.html

参考:Oracle12C查询自建用户(非系统自带)

posted @ 2022-12-14 21:24  aspirant  阅读(195)  评论(0编辑  收藏  举报