Use EM to view the tablespace View

Source: Internet
Author: User

Use EM to view the tablespace View

Now let's take a look at how to use EM to view the table space view.
Under Administration-Storage-Tablespaces, you can view table space indicators:

For example, the table space usage, total size, remaining space, and percentage are displayed. You can also perform simple operations on the table space. Click the table space name to View Details:


In addition, we can use the following SQL statement to query table space usage:

SELECT a. tb_name tablespace name,
C. contents type,
C. extent_management zone management,
B. total/1024/1024 tablespace size m,
(B. total-a. free_sp)/1024/1024 m used,
A. free_sp/1024/1024 remaining m,
Substr (B. total-a. free_sp)/B. total * 100, 1, 5) Utilization
FROM (SELECT tablespace_name tb_name, SUM (nvl (bytes, 0) free_sp
FROM dba_free_space
Group by tablespace_name),
(SELECT tablespace_name tb_name, SUM (bytes) total
FROM dba_data_files
Group by tablespace_name) B,
(SELECT tablespace_name tb_name, contents, extent_management
FROM dba_tablespaces) c
WHERE a. tb_name = B. tb_name
AND c. tb_name = B. tb_name;

The three data dictionary tables dba_free_space, dba_data_files, and dba_tablespaces respectively describe the tablespace free size, data file size, and table space usage.

Related Article

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.