how to check tablespace total space, free space and used space.
Hi Team,
I am using Oracle 12 c version.
Question: How to find tablespace total space, free space and used space.
I have checked some queries on internet and find 2 conditions
Condition 1: find Used space from dba_segments and after that calculate free space
by using total space -used space.
Condition 2: find free space from dba_free_space and after that calculate used space by using total space - free space
Both the conditions taking total space from dba_data_files and both the conditions giving different results. Can anybody guide me which condition we should use to calcualate tablespace used space and free space.