首先要保证用户有权限才行 grant select on tablename to username
i agree with mycode(不写代码)
我想问一下greatplain: statio在什么地方。
mycode:你的查询表空间的方法好像不行
分配相应的角色,把角色授权给你所使用的用户。 查询表空间: select tablespace_name,sum(bytes)/1024/1024 from dba_data_files group by tablespace_name; 查询空余表空间: select tablespace_name,sum(bytes)/1024/1024 from dba_free_space group by tablespace_name; 以上的单位为M
在statio中有分配
同样可以查到表空间的信息
grant select on tablename to username
查询表空间:
select tablespace_name,sum(bytes)/1024/1024 from dba_data_files group by tablespace_name;
查询空余表空间:
select tablespace_name,sum(bytes)/1024/1024 from dba_free_space
group by tablespace_name;
以上的单位为M