oracle的一些命令

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;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值