为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。 【DM版本】:达梦8 【操作系统】:centos 【CPU】: 【问题描述】*:这些统计数据,在数据库中能统计出来吗?有具体方法吗
可以通过:select table_rowcount(owner,table_name) 行数, table_used_space(owner,table_name)/1024.0/1024*page 大小mb, * from dba_tables where owner='用户名' order by 大小mb desc; 统计各用户的表数据行数和占用空间大小,但是每年的增长量这些,需要有个基准,比如去年是1t,今年变成了1.5t,那么增长量就是0.5t。
可以通过:select table_rowcount(owner,table_name) 行数,
table_used_space(owner,table_name)/1024.0/1024*page 大小mb,
*
from dba_tables
where owner='用户名'
order by 大小mb desc; 统计各用户的表数据行数和占用空间大小,但是每年的增长量这些,需要有个基准,比如去年是1t,今年变成了1.5t,那么增长量就是0.5t。