What query tells you how much space a tablespace named
"test" is taking up, and how much space is remaining?

Answer Posted / jaleel

TO CHECK TAKINGUP SPACE
SQL> select sum(bytes)/1024/1024 "TABLESPACESIZE:MB"
from dba_segments where tablespace_name='TEST';

TO CHECK FREE SPACE
SQL> select sum(bytes)/1024/1024 "TABLESPACESIZE:MB"
from dba_free_space where tablespace_name='TEST';

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to start SQL Server in minimal configuration mode?

7102


how can you find out if a table can be redefined?

686


Which dictionary view(s) would you first look at to understand or get a high-level idea of a given Advanced Replication environment?

1605


How to craeate the New Database Schema in Oracle and mysql? Please tell me with Example?

2014


Explain about your sql server dba experience? : sql server DBA

659






What would you do with an "in-doubt" distributed transaction?

1495


Provide an example of a shell script which logs into SQLPLUS as SYS, determines the current date, changes the date format to include minutes & seconds, issues a drop table command, displays the date again, and finally exits.

1602


how can you generate profile of pl/sql applications to identify performance bottlenecks?

691


What happens on checkpoint? : sql server DBA

654


What is the default port no on which sql server listens? : sql server DBA

670


How can you tell how much space is left on a given file system and how much space each of the file system's subdirectories take-up?

2140


What are the operating modes in which database mirroring runs? : sql server DBA

725


Define the SGA and: How you would configure SGA for a mid-sized OLTP environment? What is involved in tuning the SGA?

3400


how do we explain a project in cognos in an interview? please help me. Also how do we perform testing in cognos after creating reports?

3055


How do you trace the traffic hitting a sql server? : sql server DBA

939