Home  >  Article  >  Database  >  Oracle 脚本之查看压缩表格

Oracle 脚本之查看压缩表格

WBOY
WBOYOriginal
2016-06-07 17:45:491267browse

1、查询内是否有压缩表格存在

  引用

  SELECT u.name AS owner,

  o.name AS table_name

  FROM sys.tab$ t,sys.obj$ o,sys.user$ u

  WHERE BITAND (t.spare1, 131072) = 131072

  AND o.obj# = t.obj#

  AND o.owner# = u.user#;

  2、以下查询表空间是否压缩

  引用

  SELECT name

  FROM sys.ts$

  WHERE BITAND (flags, 64) = 64;

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