Oracle SQL查询,用于列出数据库中的所有模式 [英] Oracle SQL Query for listing all Schemas in a DB
本文介绍了Oracle SQL查询,用于列出数据库中的所有模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想删除我们的oracle DB上一些未使用的模式.
I wanted to delete some unused schemas on our oracle DB.
如何查询所有架构名称?
How can I query for all schema names ?
推荐答案
使用sqlplus
sqlplus/作为sysdba
sqlplus / as sysdba
运行:
SELECT *
FROM dba_users
您只希望用户名执行以下操作:
Should you only want the usernames do the following:
SELECT username
FROM dba_users
这篇关于Oracle SQL查询,用于列出数据库中的所有模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文