91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

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
六安市| 洪江市| 兰西县| 分宜县| 沂源县| 华容县| 绍兴市| 宝清县| 定兴县| 阿克苏市| 略阳县| 西充县| 象山县| 方正县| 通海县| 门头沟区| 博白县| 香格里拉县| 虎林市| 绥阳县| 扎鲁特旗| 新邵县| 宜宾县| 昭觉县| 深泽县| 休宁县| 曲阳县| 化隆| 林州市| 安陆市| 临澧县| 阜新市| 黑山县| 鄂托克旗| 灵武市| 巫溪县| 扬州市| 房产| 汝阳县| 岫岩| 泗水县|