Script đo lường mức độ tăng trưởng dung lượng CSDL Oracle theo tháng
SELECT /*+ NO_MERGE */ TO_CHAR(creation_time, 'YYYY-MM') creation_month, ROUND(SUM(bytes)/POWER(10,6)) mb_growth, ROUND(SUM(bytes)/POWER(10,9)) gb_growth, ROUND(SUM(bytes)/POWER(10,12), 1) tb_growth FROM v$datafile GROUP BY TO_CHAR(creation_time, 'YYYY-MM') ORDER BY TO_CHAR(creation_time, 'YYYY-MM');
Xem thêm:
- Q116 Examine the description of the PROMOTIONS table
- End-User là gì?
- INTERVAL data types – Sử dụng kiểu dữ liệu INTERVAL trong Oracle Database
- Q133 Which two statements are true about undo segments and the use of undo by transactions in an Oracle database instance?
- Dynamic Performance Views Oracle Database