If you are using the Oracle Database, Then you can check the database size by login into the Oracle Database or by checking the filesystem size of Oracle Database.
The Oracle database having the Data files, Control Files, Online / Offline redo logs and Temporary files so all these files consists into every Oracle Database so, whenever you are checking the size of the database then you must have to check the size of all these files and the total size of all these files is actually a database size.
* Follow the below steps to check the Oracle Database size by login into database:
1. Login to OS with the oracle user:
su – oraecc
2. Connect to Database :
oraecc 6> sqlplus / as sysdba
3. Execute the below command get the exact oracle database size :
( select sum(bytes)/1024/1024/1024 data_size from dba_data_files ) +
( select nvl(sum(bytes),0)/1024/1024/1024 temp_size from dba_temp_files ) +
( select sum(bytes)/1024/1024/1024 redo_size from sys.v_$log ) +
( select sum(BLOCK_SIZE*FILE_SIZE_BLKS)/1024/1024/1024 controlfile_size from v$controlfile) “Size in GB”
Size in GB
It is showing the total Database size is 105 GB.
* Check the Oracle Database size from OS Level:
1. Login to OS
2. Go to the Oracle Database filesystem path:
3. Execute the below command to get the database size:
#du -sh sapdata*
The total size of the database is 105 GB.