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

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