GaussDB T分布式集群数据库每日维护必做必知
时间:2025-11-03 18:18:37 出处:数据库阅读(143)

复制set line 300 set pages 2000 set timing off col tablespace_name for a25 col sum_GB for a15 col free_GB for a15 col use_precent for a15 select b.tablespace_name,分布 round(sum(b.bytes) / 1024 / 1024 / 1024, 0) sum_GB, round(sum(nvl(a.bytes, 0)) / 1024 / 1024 / 1024, 0) free_GB, round((sum(b.bytes) - sum(nvl(a.bytes, 0))) / sum(b.bytes), 4) * 100 use_precent, count(*) from (select tablespace_name, file_id, sum(bytes) bytes from adm_free_space groupby tablespace_name, file_id) a, adm_data_files b where a.file_id(+) = b.file_id and a.tablespace_name(+) = b.tablespace_name groupby b.tablespace_name having round((sum(b.bytes) - sum(nvl(a.bytes, 0))) / sum(b.bytes), 4) * 100 >= 0 orderby 4 desc; 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.
分享到:
温馨提示:以上内容和图片整理于网络,仅供参考,希望对您有帮助!如有侵权行为请联系删除!
猜你喜欢
- 电脑安装系统教程(轻松学会如何使用电脑安装操作系统)
- 海尔T6笔记本电脑拆机教程(一步步教你拆解和维修海尔T6笔记本电脑)
- IBMT60重装系统教程(详细操作指南帮您重新配置电脑系统)
- 制作UEFI启动的系统U盘装系统教程(一步步教你制作UEFI启动的系统U盘,轻松装系统)
- 解决HP电脑开机黑屏无反应问题的方法(如何解决HP电脑开机黑屏无反应的困扰)
- OPPOA37手机的性能与功能评估(一款性价比高的智能手机,满足日常使用需求)
- 使用U盘安装系统教程——利用SSD进行快速安装(一步步教你如何使用SSD加速U盘安装系统)
- 正版Win8安装Win7系统教程(以正版Win8为基础,安装Win7系统的详细步骤和注意事项)
- 华硕S400E3317CA——性能卓越的笔记本电脑(华硕S400E3317CA引领移动办公新潮流)