扩展:
#查看表空间及其大小
SELECT t.tablespace_name, round(SUM(bytes / (1024 * 1024)), 0) ts_size
FROM dba_tablespaces t, dba_data_files d
WHERE t.tablespace_name = d.tablespace_name
GROUP BY t.tablespace_name;
#所有表空间
select * from user_tablespaces;
#当前用户表空间 切换到用户下面看看表空间
select username,default_tablespace from user_users;
#查看全部
select * from user_users;
查看用户及其表空间
#为用户赋予表空间权限
ALTER USER 用户 QUOTA UNLIMITED ON 表空间;
//例子
ALTER USER SYSTEM QUOTA UNLIMITED ON SYSTEM;
下面再去对表进行操作就可以了;
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有