Last active
August 29, 2015 14:26
-
-
Save mixomat/6cb2b252aafef0cf012b to your computer and use it in GitHub Desktop.
oracle tablespace size
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # used size | |
| select tablespace_name, 'MB'||' '||round(sum(bytes/1024/1024)) "Used_Size" from dba_data_files group by tablespace_name; | |
| # free size | |
| select tablespace_name, 'MB'||' '||round(sum(bytes/1024/1024)) "Free_Size" from dba_free_space group by tablespace_name; | |
| # extend tablespace size | |
| alter database datafile <tablespace_name> autoextend on next 128m maxsize 8192m; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment