--说明:datafile是指定创建位置,指向oracle数据库的默认位置;
--autoextend 设置容量为自动增长,50M是自增的大小
create tablespace SPRINGBOOT
datafile 'E:/JAVA/Orcal/database/SPRINGBOOT'
size 1M autoextend on next 50M maxsize unlimited;
--说明:identified by后为用户登录密码;
--default tablespace为默认表空间;
--profile设为系统默认;
--ACCOUNT UNLOCK解锁用户
create user SPRINGBOOT
identified by "SPRINGBOOT"
default tablespace SPRINGBOOT
profile DEFAULT
ACCOUNT UNLOCK;
--分别给用户授dba权限和表空间授无限增长权限
grant dba to SPRINGBOOT;
grant unlimited tablespace to SPRINGBOOT;