Database Administration (MOSC)

MOSC Banner

Hi, I ask for explanation regrading field TOTAL_SIZE in v$pdbs.

edited Sep 20, 2016 5:00AM in Database Administration (MOSC) 1 commentAnswered

Using Oracle 12c, and having PDB name PDB1

Query:

SQL> select total_size / 1024 /1024 from v$pdbs;

TOTAL_SIZE/1024/1024

--------------------

            7883.375

But:

SQL> select sum(bytes) / 1024 /1024 from dba_data_files;

SUM(BYTES)/1024/1024

--------------------

           31595.375

(and this is even without taking into account  tempfile and logfile!)

On the OS level (only datafiles resides here)

% du -sm pdb1

32458   pdb1

so, what is TOTAL_SIZE actually contains? it doesn't show used space because querying frees pace shows more the 90% usages.

I retried with other pdbs, same results, always TOTAL_SIZE value is much smaller then the actual size.

I'll appreciate if someone can clarify it for me.

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