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