欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Oracle建表空间、建用户、为用户授权语句

程序员文章站 2022-06-11 22:07:07
...
新建表空间:
 create tablespace mzhdb
datafile 'e:\OracleXE\oradata\XE\mzhdb.dbf' size 200M
autoextend on next 10M maxsize unlimited logging
extent management local autoallocate
segment space management auto;

新建用户:
create user mzh
identified by mzh
default tablespace mzhdb
temporary tablespace temp
account unlock

给用户授权:
grant dba to mzh;
grant connect to mzh;
grant resource to mzh;