■表領域のresize
alter database datafile '/data/undo01.dbf' resize 1500M
■既存データファイルの自動拡張を停止
ALTER DATABASE DATAFILE '/u01/oradata/pro/SYS01.ORA' AUTOEXTEND OFF;
ALTER DATABASE TEMPFILE '/u01/oradata/pro/TMP01.ORA' AUTOEXTEND OFF;
■デフォルト表領域の変更
alter database default tablespace 表領域名;
■表領域のデータファイルの追加
永続/UNDO表領域の場合
Alter tablespace 表領域名 add datafile size 4000m autoextend off;
一時表領域の場合
Alter tablespace 表領域名 add tempfile size 4000m autoextend off;
■表領域の削除
念のためオフラインに
alter tablespace 表領域名 offline
drop tablespace 表領域名
[including contents] [cascade constraints]
※データファイルも消したい場合は
drop tablespace 表領域名 including contents and datafiles
最終更新:2010年01月08日 13:23