新建表空间、用户、授权

--新建表空间
create tablespace T_BS datafile 'E:\oracle\icdbs\T_BS_001.dbf' size 1024m autoextend off extent management local;
--索引表空间
create tablespace I_BS datafile 'E:\oracle\icdbs\I_BS_001.dbf' size 1024m autoextend off extent management local;

--扩大表空间数据文件
alter tablespace T_BS add datafile 'E:\oracle\icdbs\T_BS_002.dbf' size 1024m autoextend off ;

--新建用户
create user bs identified by bs default tablespace T_BS temporary tablespace TEMP;
--赋权
grant resource to bs;
grant CONNECT to bs;
grant create view to bs;
grant create table to bs;
grant create synonym to bs;
grant debug connect session to bs;
grant unlimited tablespace to bs;
--修改用户密码
alter user bs identified by "bs";


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值