修改Oracle表空间的大小

  1)查看各表空间分配情况

SQL> select tablespace_name, sum(bytes) / 1024 / 1024  from dba_data_files group by tablespace_name;
 
TABLESPACE_NAME                SUM(BYTES)/1024/1024
------------------------------ --------------------
UNDOTBS1                                        100
SYSAUX                                          530
USERS                                             5
SYSTEM                                          700
EXAMPLE                                         100
 
5 rows selected

  2)查看各表空间空闲情况

SQL> select tablespace_name, sum(bytes) / 1024 / 1024  from dba_free_space  group by tablespace_name;  
 
TABLESPACE_NAME                SUM(BYTES)/1024/1024
------------------------------ --------------------
SYSAUX                                       26.125
UNDOTBS1                                    69.6875
USERS                                        0.9375
SYSTEM                                       1.1875
EXAMPLE                                       21.25
 
5 rows selected

  3)更改数据表大小(10G)

alter database datafile '/ora/oradata/radius/testNS.dbf' resize 10240m;
posted @ 2013-04-12 11:02  NW_KNIFE  阅读(633)  评论(0编辑  收藏  举报