現有表空間添加文件

  1. 新建表空間
create tablespace TAB_UD datafile 
'/u042/oradata/MPDATACENTER/TAB_UD_1.dbf' size 1G AUTOEXTEND ON NEXT 256M MAXSIZE UNLIMITED, 
'/u042/oradata/MPDATACENTER/TAB_UD_2.dbf' size 1G AUTOEXTEND ON NEXT 256M MAXSIZE UNLIMITED
default storage (initial 128K next 2M pctincrease 0);

create tablespace I_TAB_UD datafile 
'/u042/oradata/MPDATACENTER/I_TAB_UD_1.dbf' size 1G AUTOEXTEND ON NEXT 256M MAXSIZE UNLIMITED, 
'/u042/oradata/MPDATACENTER/I_TAB_UD_2.dbf' size 1G AUTOEXTEND ON NEXT 256M MAXSIZE UNLIMITED
default storage (initial 128K next 2M pctincrease 0);

2.現有表空間添加文件

alter tablespace TAB_UD add datafile '/u042/oradata/MPDATACENTER/TAB_UD_3.dbf' 
size 1G autoextend on next 256M maxsize UNLIMITED;

你可能感兴趣的:(現有表空間添加文件)