oracle查看用户属于哪个表空间

用如下语句查看:

1
select    username,default_tablespace    from    dba_users     where    username=   '用户名'   ;

查看结果(如查询scott用户的所属表空间):

1
select    username,default_tablespace    from    dba_users     where    username=   'SCOTT'   ;   --用户名需要大写

select username,default_tablespace from dba_users order by username

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章