PS:如果你用的是图形化界面,只需要随便打开一个sql窗口直接把代码写进去运行即可,看情况吧,权限够用就可以(学习使用).
说明:普通用户是无法创建其他用户并且给予权限的,需要sys用户进行下一步操作:
create user 用户名 identified by 密码;
create user Ryan identified by root;
grant create session to 用户名;
grant create session to Ryan;
grant 权限 tablespace to 用户名;
grant unlimited tablespace to Ryan;
grant create tablespace to Ryan;
grant alter tablespace to Ryan;
grant drop tablespace to Ryan;
grant manage tablespace to Ryan;
grant create table to 用户名;
grant create table to Ryan;
grant create view to 用户名;
grant create view to Ryan;
grant create trigger to 用户名;
grant create trigger to Ryan;
grant create procedure to 用户名;
grant create procedure to Ryan;
grant create sequence to 用户名;
grant create sequence to Ryan;
grant debug connect session to 用户名
grant debug connect session to study;
查看当前用户所有的表:
select * from user_tables;