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
how can you implement fine-grained auditing?
what is grd?
What is dcl? : sql server DBA
What are the different authentication modes in sql server and how can you change authentication mode? : sql server DBA
suppose you want to audit specific activities on sensitive data. How can you achieve that?
what are the differences of where and if in SAS?
Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?
How to craeate the New Database Schema in Oracle and mysql? Please tell me with Example?
Explain about your sql server dba experience? : sql server DBA
Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracle's. What database recovery options are available? Database is in archive log mode.
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 the different components in replication and what is their use? : sql server DBA
Why does Oracle not permit the use of PCTUSED with indexes?
Explain materialized views and how they are used.
Can you tell me about your experience with the administration of COTS system..? Also, how do you set up seed data..?