本文讲述了Oracle修改表空间大小的方法。分享给大家供大家参考,具体如下:
1)查看各表空间分配情况
1
2
3
4
5
6
7
8
9
|
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)查看各表空间空闲情况
1
2
3
4
5
6
7
8
9
|
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;
希望本文所述对大家Oracle数据库程序设计有所帮助。