Rumah > Artikel > pangkalan data > Oracle 脚本之查看压缩表格
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;