Thanks Andytw. What if I don't know the table space name? Is there a command (s) to display all table spaces??
Main Topics
Browse All TopicsHi, I have an Oracle DB running on Unix Sun OS. I need to get the unix command to find out how much memory is allocated to a specific Oracle table space. What command would I use? Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
If you remove the where clause in the query in my post above, it will display all tablespaces. In addition the query below will also include temporary tablespaces:
SELECT tablespace_name,
SUM(bytes) / power(2,20) size_mb
FROM dba_data_files
GROUP BY tablespace_name
UNION
SELECT tablespace_name,
SUM(bytes) / power(2,20) size_mb
FROM dba_temp_files
GROUP BY tablespace_name;
An Oracle tablespace is only a logical grouping of database storages structures (tables, indexes, etc.). A tablespace consists of a number of datafiles, which can be seen by the OS. So when you ask about memory that a tablespace consumes I think of secondary storage (disk space).
In your latest post when you talk about "memory" do you mean physical memory (RAM)? If so, then that doesn't really make sense to me, since tablespaces don't take up physical memory. Do you want to see how much memory the database instance is consuming?
If so, you can easily do that by looking on your OS. In windows, the process is oracle.exe. For sun OS try the following link for more info:
http://www.experts-exchang
If not, then please clarify
Business Accounts
Answer for Membership
by: AndytwPosted on 2009-05-21 at 07:29:47ID: 24441843
The os (unix) doesn't know about Oracle tablespaces. To find out how much disk space is allocated to an Oracle tablespace you need to query the Oracle database. In SQL*PLus run the following:
Select allOpen in new window