create tablespace xxx datafile '/data/xxx00.dbf' size 500M;
create user xxx identified by passwd default tablespace tbs_xxx temporary tablespace temp;
create table xxx (id integer, name varchar2(255));
create index idx_xxx_col on xxx(col_name) tablespace INDX;
create table xxx partition by range(id)(
partition xxx_part_01 values less than(1000) tablespace TBS_xxx,
partition xxx_part_02 values less than(2000) tablespace TBS_xxx
) pctfree 1 pctused 2 initrans 1 maxrans 250 storage ( initial 64k next 100M minextents 1 maxextents 500 pctincrease 0) as select * from xxx_c ;
create index idx_xxx_id on xxx(id) tablespace INDX global partition by range(id)();
alter user xxx identified by passwd;
alter tablespace xxx online/offline;
alter tablespace xxx add datafile '/data/xxx01.dbf' size 100m;
alter tablespace xxx datafile '/data/xxx01.dbs' resize 1000m;
alter tablespace xxx default storage(initextent 100M nextextent 100M minextent 1 maxextent 250 pctincrease 0);
alter rollback segment rbs0 offline;
alter table xxx add column_name varchar2(255) ;
alter table xxx modify column_name varchar2(300);
alter table xxx drop column_name;
alter index xxx rebuild;
alter table xxx move tablespace tbs_xxx;