sql >> Database >  >> RDS >> Oracle

Ware grootte van de tabelruimte in oracle

Probeer dit:

-- Available space, by tablespace

SELECT * FROM
  (SELECT tablespace_name FROM dba_tablespaces)
LEFT OUTER JOIN
  (SELECT tablespace_name, SUM(bytes) AS total_bytes
     FROM dba_data_files
     GROUP BY tablespace_name)
  USING (tablespace_name)
LEFT OUTER JOIN
  (SELECT tablespace_name, sum(bytes) AS used_bytes
     from dba_segments
     GROUP BY tablespace_name)
  USING (tablespace_name)
LEFT OUTER JOIN
  (SELECT tablespace_name, SUM(bytes) AS free_bytes
     FROM dba_free_space
     GROUP BY tablespace_name)
  USING (tablespace_name);


  1. Partitiefunctie COUNT() OVER mogelijk met DISTINCT

  2. Lichtgewicht WordPress-installatie:WordPress installeren met SQLite

  3. Hoe importeer ik een Excel-spreadsheet in de SQL Server 2008R2-database?

  4. Oracle SQL:niet-bestaande waarden ophalen uit de IN-clausule