ablog

不器用で落着きのない技術者のメモ

表領域を拡張する

  • 見やすいよう準備して、
SQL> col tablespace_name for a10
SQL> col file_name for a50
SQL> col bytes for 999999999999
  • 一時表領域を拡張する
SQL> alter database tempfile '/export/home/oracle/oradata/orcl/temp01.dbf' resize 201M;
SQL> select tablespace_name, file_name, bytes from dba_temp_files;
  • UNDO表領域を拡張する
SQL> alter database datafile '/export/home/oracle/oradata/orcl/undotbs01.dbf' resize 201M;
SQL> select tablespace_name,file_name,bytes from dba_data_files order by tablespace_name;
  • SYSTEM表領域を拡張する
SQL> alter database datafile '/export/home/oracle/oradata/orcl/system01.dbf' resize 301M;
SQL> select tablespace_name,file_name,bytes from dba_data_files order by tablespace_name;
  • SYSAUX表領域を拡張する
SQL> alter database datafile '/export/home/oracle/oradata/orcl/sysaux01.dbf' resize 131M;
SQL> select tablespace_name,file_name,bytes from dba_data_files order by tablespace_name;