创建表空间

--sys登陆


--表空间

CREATE TABLESPACE pms
DATAFILE 'D:\oracle\product_2\tablespace\pms' size 100M
         EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO; 
--索引表空间
CREATE TABLESPACE pms_Index
DATAFILE 'D:\oracle\product_2\tablespace\pms_index' size 100M         
         EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;     


--2.建用户
create user pms identified by pms 
default tablespace pms;
 
--3.赋权
grant connect,resource to pms;
grant create any sequence to pms;
grant create any table to pms;
grant delete any table to pms;
grant insert any table to pms;
grant select any table to pms;
grant unlimited tablespace to pms;
grant execute any procedure to pms;
grant update any table to pms;

grant create any view to pms;


--删除表空间

drop tablespace dews including contents and datafiles

--删除用户

drop user dews cascade

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值