亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

oracle數據庫表空間使用率查詢

小樊
86
2024-07-16 02:03:43
欄目: 云計算

To check the tablespace usage in an Oracle database, you can query the DBA_TABLESPACES view. Here is an example SQL query that will show the usage of each tablespace in the database:

SELECT tablespace_name,
       ROUND((1 - (free_space / total_space)) * 100, 2) AS used_percent
FROM
  (SELECT tablespace_name,
          SUM(bytes) / 1024 / 1024 AS total_space,
          SUM(maxbytes) / 1024 / 1024 AS max_space,
          SUM(bytes - decode(autoextensible, 'YES', maxbytes, bytes)) / 1024 / 1024 AS free_space
   FROM dba_data_files
   GROUP BY tablespace_name);

This query will return the name of each tablespace in the database along with the percentage of space that is currently being used. The used_percent column will show how much of each tablespace is currently in use.

0
隆林| 龙门县| 庆元县| 崇阳县| 荣成市| 绥芬河市| 玛纳斯县| 隆回县| 英吉沙县| 宝丰县| 读书| 奉贤区| 乐至县| 盐源县| 开封市| 霍城县| 东至县| 夏邑县| 眉山市| 南华县| 东城区| 集贤县| 临江市| 伊春市| 逊克县| 库车县| 桐梓县| 楚雄市| 梅州市| 海城市| 棋牌| 眉山市| 宁阳县| 平山县| 宜川县| 郯城县| 芷江| 连江县| 惠水县| 平陆县| 湘潭市|