时间:2021-07-01 10:21:17 帮助过:5人阅读
--创建一个用户
create user xiaoyi identified by root;
--修改用户的密码
alter user xiaoyi identified by root;
--查看用户所拥有的表空间
select * from dba_users t where t.username=‘XIAOYI‘;
--创建一个表空间
create tablespace xy datafile ‘F:\app\mytablespace\xy_data.dbf‘ size 1000m;
--将表空间分配给用户
alter user xiaoyi default tablespace xy;
--给用户分配权限
grant create session,create table,create view,create sequence,unlimited tablespace to xiaoyi;
--查询用户所具有的权限
select * from session_privs;
--删除用户
drop use xiaoyi cascade;
oracle 创建用户
标签:create view 权限 -- alt ace seq sel size