/*檢視各表空間分配情況*/
select tablespace_name, sum(bytes) / 1024 / 1024
from dba_data_files
group by tablespace_name;
/*檢視各表空間空閒情況*/
select tablespace_name, sum(bytes) / 1024 / 1024
from dba_free_space
group by tablespace_name;
;/*檢視表空間是否自動增長*/
select file_name, tablespace_name, autoextensible from dba_data_files;
/*更改資料表大小(10g)*/
alter database datafile '/ora/oradata/radius/undo.dbf' resize 10240m;
/*檢視表空間是否自動擴充套件*/
select file_name, tablespace_name, autoextensible from dba_data_files;
/*每次自動增長200m*/
/*每次自動增長200m,資料表最大不超過1g*/
Oracle 表空間管理
一 建立表空間f create tablespace mytablespace datafile 建立乙個名為mytablesapce的表空間 path filename1.dbf size 2048m autoextend off,指明資料檔案在存放地點,並關閉檔案的自動擴充套件功能,如果開啟了這...
oracle 表空間管理
表空間是資料庫的邏輯組成部分,從物理上講資料庫資料存放在資料檔案中 從邏輯上講,資料庫則是存放在表空間中,表空間是由乙個或者多個資料檔案組成。oracle資料庫邏輯結構組成部分 資料庫是由表空間組成,而表空間又是由段構成,段是由區構成,而區是又oracle資料庫的塊組成這樣的一種結構,這樣可以提高資...
ORACLE 表空間管理
1.create tablespaces sql create tablespace tablespace name datafile c oracle oradata file1.dbf size 100m,sql c oracle oradata file2.dbf size 100m mini...