PL/SQL (MOSC)

MOSC Banner

how to check tablespace total space, free space and used space.

in PL/SQL (MOSC) 1 commentAnswered

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.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center