表空間查看和歸檔日誌清理

https://blog.csdn.net/lebron3v/article/details/80992969spa

http://blog.itpub.net/29618264/viewspace-2140729/.net

 

SELECT
owner,
segment_name,
round( sum( bytes / 1024 / 1024 / 1024 ), 2 ) gb_size
FROM
dba_segments
WHERE
owner = '用戶名'
AND segment_type = 'TABLE' -- 若是是分區表, 則 segment_type = 'TABLE PARTITION'
GROUP BY
owner,
segment_name
ORDER BY
3 DESC;blog

相關文章
相關標籤/搜索