To find the overall database size, run queries on the DBA_DATA_FILES, DBA_TEMP_FILES, and V_$LOG views to get the sizes of the datafiles, temp files, and redo logs respectively. A single query can then sum these sizes to provide the total database size in megabytes.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
109 views
Database Size
To find the overall database size, run queries on the DBA_DATA_FILES, DBA_TEMP_FILES, and V_$LOG views to get the sizes of the datafiles, temp files, and redo logs respectively. A single query can then sum these sizes to provide the total database size in megabytes.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
How do I find the overall database size?
Submitted by admin on Sat, 2005-10-15 12:25.
The biggest portion of a database's size comes from the datafiles. To find out how many megabytes are allocated to ALL datafiles: select sum(bytes)/1024/1024 "Meg" from dba_data_files; To get the size of all TEMP files: select nvl(sum(bytes),0)/1024/1024 "Meg" from dba_temp_files; To get the size of the on-line redo-logs: select sum(bytes)/1024/1024 "Meg" from sys.v_$log; Putting it all together into a single query: select a.data_size+b.temp_size+c.redo_size "total_size" from ( select sum(bytes) data_size from dba_data_files ) a, ( select nvl(sum(bytes),0) temp_size from dba_temp_files ) b, ( select sum(bytes) redo_size from sys.v_$log ) c /