Table space usage statistics [z]

Source: Internet
Author: User

SELECT UPPER (F.tablespace_name)"Table space Name", D.TOT_GROOTTE_MB"table space Size (M)", D.TOT_GROOTTE_MB-F.total_bytes"space Used (M)", To_char (ROUND (D.TOT_GROOTTE_MB-f.total_bytes)/D.TOT_GROOTTE_MB * -,                     2),               '990.99')"use than", F.total_bytes"free Space (M)", F.max_bytes"maximum block (M)"From (SELECT tablespace_name, ROUND (SUM (BYTES)/ (1024x768*1024x768),2) Total_bytes, ROUND (MAX (BYTES)/ (1024x768*1024x768),2) Max_bytes from SYS. Dba_free_space GROUP by Tablespace_name) F, (SELECT DD. Tablespace_name, ROUND (SUM (DD). BYTES)/ (1024x768*1024x768),2) Tot_grootte_mb from SYS. Dba_data_files DD GROUP by DD. Tablespace_name) D WHERE d.tablespace_name=f.tablespace_name ORDER by4DESC;

Table space usage statistics [z]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.