Statistics on Oracle tablespace

Source: Internet
Author: User

Every time the server administrator notifies that a file occupies too much hard disk space, it is estimated that the tablespace of the Oracle database has become larger. There is no way. You need to be aware of the number of tablespaces currently occupied. Therefore, we will summarize several common table space statistics methods, but they are not very comprehensive. We will continue to sort out the updates in future work.

1. Statistics on the size of each tablespace:

Select Tablespace_Name, Sum (bytes)/1024/1024 From Dba_Segments Group By Tablespace_Name

2. Total statistics of all tablespaces:

Select B. name, sum (. bytes/1000000) total space from v $ datafile a, v $ tablespace B where. ts # = B. ts # group by B. name;

3. view the remaining tablespace:

SELECT tablespace_name tablespace, sum (blocks * 8192/1000000) residual space m from dba_free_space group by tablespace_name;

Oracle Undo image data exploration

Oracle ROLLBACK and Undo)

The Undo tablespace cannot be opened because it is damaged.

How to handle Undo tablespace failures

Oracle Undo tablespace reconstruction and restoration

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.