實體資料庫配置與儲存管理-1
調整表格空間和資料檔的大小
- 使用ALTER DATABASE來調整smallfile表格空間大小
- 避免經常手動調整表格空間大小,在修改或建立資料檔時使用autoextend、next和maxsize。
- autoextend - 設為on時,資料檔是可擴充的。
- next<size> - 當資料需要擴充時,下一個分配磁碟空間的容量,單位是bit。<size>可以用K、M、G、T表示。
- maxsize<size> - 設為unlimited時,資料檔是無限制的,最大可到8EB。或者 用maxsize設定資料檔的最大bit。<size>可以用K、M、G、T表示。
- 使用ALTER TABLESPACE來調整bigfile表格空間
- 建立bigfile表格空間
create bigfile tablespace dmarts
datafile '/u05/oradata/dmarts.dbf' size 250m
autoextend on next 50m maxsize unlimited
extend management local
segment space management auto;
- 表格空間層及操作
alter tablespace dmarts
resize 1000m;
好處是不用知道datafile儲存在哪裡
沒有留言:
張貼留言