这篇文章主要介绍如何查询oracle clob占用空间,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
SELECT 'EDCRAWDATA' AS TABLE_NAME,
SUM(size_gb) AS TOTAL_GB
FROM (SELECT a.owner,
a.table_name,
a.column_name,
b.segment_name,
ROUND(b.BYTES / 1024 / 1024 / 1024) size_gb
FROM dba_lobs a,
dba_segments b
WHERE a.segment_name = b.segment_name
AND a.owner = 'EOL'
AND a.table_name = 'EDCRAWDATA'
UNION ALL
SELECT a.owner,
a.table_name,
a.column_name,
b.segment_name,
ROUND(b.BYTES / 1024 / 1024 / 1024) size_gb
FROM dba_lobs a,
dba_segments b
WHERE a.index_name = b.segment_name
AND a.owner = 'EOL'
AND a.table_name = 'EDCRAWDATA'
UNION ALL
SELECT A.owner,
'EDCRAWDATA',
'RAWDATA',
A.segment_name,
round(A.BYTES / 1024 / 1024 / 1024) size_gb
FROM DBA_SEGMENTS A
WHERE A.segment_name = 'EDCRAWDATA'
AND A.owner = 'EOL')
查询导出进度:
SELECT s.sid,
s.serial#,
dj.state,
dj.operation,
ds.job_name,
ds.session_type
FROM v$session s,
dba_datapump_sessions ds,
dba_datapump_jobs dj
WHERE s.SADDR = ds.saddr
AND ds.job_name = dj.job_name;
以上是“如何查询oracle clob占用空间”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注亿速云行业资讯频道!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。