在Oracle中查询表的大小
Oracle 查询 大小
2023-09-27 14:25:11 时间
SELECT segment_name AS TABLENAME,round(BYTES/1024/1024,2) FROM user_segments WHERE segment_name='表名'。 查出来的是M为单位;
select tt1.table_name,
tt1.length1,
tt2.rownums,
round(tt1.length1 * tt2.colnum * tt2.rownums / 1024 / 1024, 2) as sum_MB
from (select t.table_name, sum(t.DATA_LENGTH) as length1
from dba_tab_columns t, ecp_temp t1
where t.owner = 'BIDPRO'
and t.table_name = t1.tablename
group by t.table_name) tt1,
ecp_temp tt2
where tt1.table_name = tt2.tablename;
相关文章
- oracle分析函数技术详解(配上开窗函数over())
- Oracle数据库:oracle多表查询,等值连接,非等值连接,自连接的sql语句和规则
- [转]ORACLE WITH AS 用法(相当于查询开始前构造临时表,提高效率)
- oracle 日期to_char转换24小时制12小时制
- 关于oracle sql语句查询时表名和字段名要加双引号的问题
- oracle中的用户详解 【转】
- 《高并发Oracle数据库系统的架构与设计》一1.3 在Oracle的世界里
- Oracle Database Releases and Support Timelines
- Oracle-创建新表,创建备份表,对表中插入多条数据
- Oracle-trunc函数、round 函数、ceil函数和floor函数---处理数字函数使用
- 查询oracle安装过补丁没有
- [Oracle]跨DBLINK的JOIN查询的数据库缓存问题15783452141
- [Oracle]如何查看 10046 trace 中的 tim= ... 的具体时刻
- oracle 10g standby database 实时应用 redo 数据
- oracle之ROWNUM的查询应用
- 彻底搞懂oracle的标量子查询
- oracle多表查询
- oracle闪回查询
- 学习python第四天——Oracle查询
- Oracle 监听器
- Oracle-分组统计查询
- Oracle-多表查询