Tablespace Creation
The examples below create tablespaces for permanent data tables and temporary sort tables.
CREATE TABLESPACE ts01 DATAFILE '/data/disk9/filexx01.dbf' SIZE 1000M MINIMUM EXTENT 500K DEFAULT STORAGE ( INITIAL 500K NEXT 500K MINEXTENTS 1 MAXEXTENTS 200 PCTINCREASE 0 ) PERMANENT ONLINE ; CREATE TABLESPACE sort99 DATAFILE '/data/disk11/sortxx99.dbf' SIZE 100M MINIMUM EXTENT 1M DEFAULT STORAGE ( INITIAL 2M NEXT 2M MAXEXTENTS 40 PCTINCREASE 0) TEMPORARY ONLINE ; CREATE TABLESPACE ts01 DATAFILE '/data/disk9/filexx01.dbf' SIZE 1000M MINIMUM EXTENT 500K DEFAULT STORAGE ( INITIAL 500K NEXT 500K MINEXTENTS 1 MAXEXTENTS 200 PCTINCREASE 0 ) PERMANENT ONLINE ; /* auto extend */ CREATE TABLESPACE prod_idx_01 DATAFILE '/u3/oradata/prod/prod_idx_01.dbf' SIZE 300M AUTOEXTEND ON NEXT 10M MINIMUM EXTENT 320K DEFAULT STORAGE ( INITIAL 320K NEXT 320K MINEXTENTS 1 MAXEXTENTS UNLIMITED PCTINCREASE 0 ) PERMANENT ONLINE ;
No comments:
Post a Comment