1.首先使用sqlPlus登录用户

2.创建表空间:
create tablespace demo datafile 'D:\oracle\demo.dbf' size 150M autoextend o
n next 50M maxsize 300M extent management local;
效果图:

3.创建用户并指定空间
create user demo identified by demo default tablespace demo;
效果图:

如果创建过程中失误可以使用下面的SQL删除表空间及物理数据文件
drop tablespace tablespace_name including datafiles;
4.给用户授权
grant resource,dba,connect to demo;
效果图:

329

被折叠的 条评论
为什么被折叠?



