数据库-oracle-04创建实例、表空间、用户、角色授权

1.创建表空间
create tablespace oracletesttablespace
datafile 'D:\01oracletest\test01tablespace\oracletesttablespace.dbf'
size 500m
autoextend on next 500m maxsize 1024m
extent management local;

2.创建临时表空间
create temporary tablespace oracletesttemptablespace
tempfile 'D:\01oracletest\test01tablespace\oracletesttemptablespace.dbf'
size 50m
autoextend on next 50m maxsize 50m
extent management local;

3.创建用户
create user test01 identified by orcl default tablespace oracletesttablespace
temporary tablespace oracletesttemptablespace;

4.授权(角色授权,可以通过role_sys_privs表查看角色权限)
grant dba to test01;

猜你喜欢

转载自blog.csdn.net/qq_29039853/article/details/88671764