how do see how much space is used and free in a tablespace
Answer Posted / anil kumar prajapati
olumn "Tablespace" format a13
column "Used MB" format 99,999,999
column "Free MB" format 99,999,999
column "Total MB" format 99,999,999
select
fs.tablespace_name "Tablespace",
(df.totalspace - fs.freespace) "Used MB",
fs.freespace "Free MB",
df.totalspace "Total MB",
round(100 * (fs.freespace / df.totalspace)) "Pct. Free"
from
(select
tablespace_name,
round(sum(bytes) / 1048576) TotalSpace
from
dba_data_files
group by
tablespace_name
) df,
(select
tablespace_name,
round(sum(bytes) / 1048576) FreeSpace
from
dba_free_space
group by
tablespace_name
) fs
where
df.tablespace_name = fs.tablespace_name;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the recovery models for a database? : sql server DBA
how can you initialize log miner?
What is fill factor? : sql server DBA
What view(s) do you use to associate a user's SQLPLUS session with his o/s process?
how to restore files with rman?
You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?
How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?
How would you go about verifying the network name that the local_listener is currently using?
What do the 9i dbms_standard.sql_txt() and dbms_standard.sql_text() procedures do?
What spfile/init.ora file parameter exists to force the CBO to make the execution path of a given statement use an index, even if the index scan may appear to be calculated as more costly?
what is the use of ocr?
How to bind a cobol module to a given job? I am not able to understand this concept.Can anyone help me out as how to carry out this task?
how can you communicate with operating system files from oracle?
how can you find out if a table can be redefined?
how can you record information about current session?