Oracle SQL Query for listing all Schemas in a DB

后端 未结 7 2035
谎友^
谎友^ 2020-12-12 12:20

I wanted to delete some unused schemas on our oracle DB.

How can I query for all schema names ?

相关标签:
7条回答
  • 2020-12-12 13:23

    Below sql lists all the schema in oracle that are created after installation ORACLE_MAINTAINED='N' is the filter. This column is new in 12c.

    select distinct username,ORACLE_MAINTAINED from dba_users where ORACLE_MAINTAINED='N';
    0 讨论(0)
提交回复
热议问题