您的位置:首页 > 数据库 > Oracle

oracle创建表空间和用户

2014-06-04 23:02 507 查看
1.创建表空间dcspace:

create tablespace dcspace datafile 'D:\ORACLE11G64\ORADATA\ORCL\dcspace.DBF' size 1024m
autoextend on next 100m maxsize unlimited;


2.创建用户,并指定dcspace为默认表空间:

create user dc identified by 123 default tablespace dcspace temporary tablespace temp;


3.赋予权限:

grant connect to dc;
grant resource to dc;
grant exp_full_database to dc;
grant imp_full_database to dc;
grant create any view to dc;
grant select any table to dc;
grant create any table to dc;
grant create any index to dc;
grant create any sequence to dc;
grant execute any procedure to dc;
grant unlimited tablespace to dc;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: