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;