原文地址为:
oracle怎么查看用户属于哪个表空间
转载请注明本文地址: 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
alter user 用户名 default tablespace 表空间名字 ;--创建时候指定表空间
alter table schema.AC01 move tablespace AA; --分配到指定表空间
转载请注明本文地址: oracle怎么查看用户属于哪个表空间