GaussDB T分布式集群数据库每日维护必做必知

IT科技2025-11-05 08:37:4829483
GaussDB T分布式集群数据库每日维护必做必知
复制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.
本文地址:http://www.bzuk.cn/news/161e7499764.html
版权声明

本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。

全站热门

掌握uptool教程,轻松应对工具操作(提升效率的关键工具,uptool简易教程)

面试官:不会有人不懂类加载器与双亲委派模型吧?

一篇文章带你弄懂Final关键字的相关知识

Python 中 Mock 到底该怎么玩?一篇文章告诉你

解决电脑关键事件错误的有效方法(保护您的电脑免受关键事件错误的影响)

2021年Web开发必须知道的7大优秀趋势

为什么要让你的代码尽可能简单

C语言指针-从底层原理到花式技巧,用图文和代码帮你讲解透彻

友情链接

滇ICP备2023006006号-33