question

OracleApprender avatar image
OracleApprender asked

What view would we use to look at the size of a data file?

What is the view name which we use to look for the size of a data file. Also what is the view name to look for the free space in a table space ? Thank you in advance for your reply.

oracleadministrationtablespace
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

KillerDBA avatar image
KillerDBA answered

You could look at this:

SELECT * FROM v$datafile

I'd also suggest you use the operating system directory command to check the OS' opinion of the file size.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

HillbillyToad avatar image
HillbillyToad answered

Check out the DBA_FREE_SPACE data dictionary view

Calculating freespace isn't so clear when you have the data files growing automatically with or without quotas.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

OracleApprender avatar image OracleApprender commented ·
Thank you. It is absolutely correct.
0 Likes 0 ·
OracleApprender avatar image
OracleApprender answered

DBA_DATA_FILES - This view is used to look for the size of a data file. DBA_FREE_SPACE - This view is used to look for the free space in a table space.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.