Oracle创建表空间以及用户语句

记录一下常用的语句,便于以后使用…

create tablespace TABLESPACENAME
datafile 'E:\Data\ORACLEDATA\XXX.dbf' size 200M
autoextend on next 100M maxsize unlimited logging
extent management local autoallocate
segment space management auto;

CREATE USER USERNAME IDENTIFIED BY PASSWORD DEFAULT TABLESPACE TABLESPACENAME TEMPORARY TABLESPACE TEMP;

grant connect,resource,DBA to USERNAME ;

posted on 2018-01-18 15:53  jingkunliu  阅读(713)  评论(0编辑  收藏  举报

导航