-
database size
Hi All,
help me to find out exact totall size of database.
Thanx
Sam
-
It depends on what you are looking for.
If you want to know the SGA size then log on to sqlplus as system and type "show sga".
If you want to know how much storage is allocated try the following:
-- megs allocated
SELECT ROUND(SUM(BYTES)/1024/1024) MB FROM DBA_EXTENTS;
-- megs by schema owner
SELECT OWNER, ROUND(SUM(BYTES)/1024/1024) MB
FROM DBA_EXTENTS
GROUP BY OWNER;
-- megs by tablespace
SELECT TABLESPACE_NAME, ROUND(SUM(BYTES)/1024/1024) MB
FROM DBA_EXTENTS
GROUP BY TABLESPACE_NAME;
-- total size of all files
SELECT ROUND(SUM(BYTES)/1024/1024) MB FROM DBA_DATA_FILES;
-- total size of each tablespaces
SELECT TABLESPACE_NAME, ROUND(SUM(BYTES)/1024/1024) MB
FROM DBA_DATA_FILES
GROUP BY TABLESPACE_NAME;
It really depends on what you are looking for. Hope this helps.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|