Q
Problem solve Get help with specific problems with your technologies, process and projects.

Details for each datafile

How to find out the tablespace name, datafile name, datafile size, datafile free space, datafile used space and total used space for each datafile?

How to find out the tablespace name, datafile name, datafile size, datafile free space, datafile used space and total used space for each datafile?

For the tablespace name, file name and file size, you can query DBA_DATA_FILES.

For the rest of the information, visit my Web site. In the scripts section is a script titled ts_map.sql which shows you how I queried DBA_EXTENTS and DBA_FREE_SPACE to come up with a physical map of the segments allocated in a tablespace. From this script, you should be able to easily determine how to determine the free space for each datafile. The used space is the total space minus the free space.

Dig Deeper on Oracle database design and architecture

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close