Home  >  Article  >  Database  >  查询Oracle 数据库中带有lob字段的某一个表的大小

查询Oracle 数据库中带有lob字段的某一个表的大小

WBOY
WBOYOriginal
2016-06-07 16:50:421704browse

注意:由于lob字段有独立的lob segment来存储,故对于带有lob字段的表,不能仅仅查询dba_segments. 以下脚本来自: How to Compu

注意:由于lob字段有独立的lob segment来存储,,故对于带有lob字段的表,不能仅仅查询dba_segments.

以下脚本来自:

How to Compute the Size of a Table containing Outline CLOBs and BLOBs[Article ID 118531.1]

--------------------------------------------------------------------------------

Linux-6-64下安装Oracle 12C笔记

在CentOS 6.4下安装Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虚拟机中安装步骤

Debian 下 安装 Oracle 11g XE R2

--------------------------------------------------------------------------------

经过修改:改为了NVL(SUM(S.BYTES),0)

SQL> col "TOTAL TABLE SIZE" format 99999999999999

---注意:以下sql可以直接执行。为了方便复制该脚本,因此不贴SQL语句的log,而是放上了执行时的SQL语句。

本文永久更新链接地址:

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn