PLSQL创建表空间和用户并授权

来源:互联网 发布:java速成教程 编辑:程序博客网 时间:2024/06/05 21:51

首先使用sys登录



然后新建sql窗口


(创建表空间)说明:datafile是指定创建位置,指向oracle数据库的默认位置;
autoextend 设置容量为自动增长,50M是自增的大小

create tablespace tutu_new3 datafile 'G:\oradata\tutuqc\tutu_new3.dbf' size 300M autoextend on next 50M maxsize unlimited;


(创建用户)说明:identified by后为用户登录密码;
default tablespace为默认表空间;
profile设为系统默认;
ACCOUNT UNLOCK解锁用户;
create user ****** identified by "*******" default tablespace tutu_new3 profile DEFAULT ACCOUNT UNLOCK;

说明:分别给用户授dba权限
grant dba to tutu_new3;
0 0