oracle建表空间和用户语句



--创建表空间
CREATE TABLESPACE RICE2013
DATAFILE 'D:\app\lenovo\oradata\rice\rice2013.dbf' size 800M
EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
--索引表空间
CREATE TABLESPACE RICE2013_INDEX
DATAFILE 'D:\app\lenovo\oradata\rice\rice2013_index.dbf' size 512M
EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;

--创建用户
create user rice identified by rice2013
default tablespace RICE2013;

--赋权限
grant connect,resource to rice;
grant create any sequence to rice;
grant create any table to rice;
grant delete any table to rice;
grant insert any table to rice;
grant select any table to rice;
grant unlimited tablespace to rice;
grant execute any procedure to rice;
grant update any table to rice;
grant create any view to rice;

--导入导出命令
ip导出方式: exp rice/rice2013@127.0.0.1:1521/orcl file=f:/f.dmp full=y
exp rice/rice2013@orcl file=f:/f.dmp full=y
imp rice/rice2013@orcl file=f:/f.dmp full=y ignore=y




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值