oracle的用户权限操作
--查询当前用户角色(角色不用,对应的权限不同)
select * from role_sys_privs;
--dba是oracle数据库中最高权限的角色.
--切换到system用户下,创建表空间
create tablespace 表空间名称
datafile '文件地址/文件名.dbf'
size 100m --默认大小
autoextend on
next 10m; --自曾长大小.
--删除表空间
drop tablespace 表空间名称;
--删除表空间,一起删除dbf文件
drop tablespace 表空间名称 including contents and datafiles;
--创建用户
create user itheima
identified by itheima
default tablespace itheima;
--用户授权
grant dba to ithema;