oracle创建用户及表空间

oracle创建用户及表空间

---创建临时表空间
create temporary tablespace PMS_TEMP
TEMPFILE 'C:\app\49992\oradata\orcl\PMS_TEMP_DATA.DBF'
size 32M
AUTOEXTEND ON
NEXT 32M MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL;
-----创建 正式表空间
create tablespace PMS
logging
DATAFILE 'C:\app\49992\oradata\orcl\PMS_DATA.DBF'
size 32M
AUTOEXTEND ON
NEXT 32M MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL;

-----创建用户
create user PMS
identified by PMS
account unlock
default tablespace PMS
temporary tablespace PMS_TEMP
profile DEFAULT;
------赋予权限
grant dba to PMS;--连接数据库权限

posted @ 2021-10-29 18:01  yclizq  阅读(65)  评论(0编辑  收藏  举报