如何在 oracle 11g 中的特定表空间中查找用户?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45264729/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 03:26:36 来源:igfitidea点击:
How to find users in a particular tablespace in oracle 11g?
提问by Somadder Abhijit
I have created a new tablespace and also some users. I have assigned those users to the tablespace. What is the query for finding out the users for the tablespace?
我创建了一个新表空间和一些用户。我已将这些用户分配给表空间。查找表空间用户的查询是什么?
回答by Kaushik Nayak
SELECT TABLESPACE_NAME,USERNAME
FROM DBA_TS_QUOTAS
WHERE TABLESPACE_NAME = '<your_tablespace>';
If Tablespace quotas are not available, then:
如果表空间配额不可用,则:
select USERNAME, DEFAULT_TABLESPACE, TEMPORARY_TABLESPACE
from DBA_USERS
where DEFAULT_TABLESPACE='<your_tablespace>';