การขยาย Tablespace ใน Oracle Database
การขยาย Tablespace ใน Oracle Database มีสอง วิธี คือ
1) เพิ่ม Datafiles
2) ขยายขนาดของ Datafiles ที่มีอยู่แล้ว
SQL> desc dba_tablespaces;
SQL> select tablespace_name from dba_tablespaces;
SQL> desc dba_data_files;
SQL> select file_name,tablespace_name,bytes from dba_data_files;
file_name จะแสดงทั้งชือ path และชื่อ file
ขยาย tablespace โดยการเพิ่ม datafile
alter tablespace CRM_INDEX add datafile '/crm_mig/oradata/crmda/crm_index02.dbf' size 5g;
ขยาย tablespace โดยการเพิ่มขนาดของ datafile ที่มีอยู่แล้ว
ALTER DATABASE DATAFILE /ora01/oracle/oradata/booktst_users_02.dbf’ resize 150M
<< หน้าแรก