本文讲述了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;
希望本文所述对大家oracle数据库程序设计有所帮助。