How to find the users list in oracle 11g db?

前端 未结 6 1419
Happy的楠姐
Happy的楠姐 2021-01-30 12:37

How to find out the users list, which is all created in the oracle 11g database. Is there any command to find out the users list which we can execute f

6条回答
  •  佛祖请我去吃肉
    2021-01-30 12:49

    I tried this query and it works for me.

    SELECT username FROM dba_users 
    ORDER BY username;
    

    If you want to get the list of all that users which are created by end-user, then you can try this:

    SELECT username FROM dba_users where Default_TableSpace not in ('SYSAUX', 'SYSTEM', 'USERS')
    ORDER BY username;
    

提交回复
热议问题