本文講述了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數據庫程序設計有所幫助。