oracle 权限

创建一个用户:  

  create user 用户名 identified by 密码;

修改用户密码:  

  password 用户名  alter user 用户名 identified by 密码

给用户赋权限:
   create user shunping identified by m123
   default tablespace users
   temporary tablespace temp
   quota 3m on user;

系统权限:是和数据库管理相关的权限
   create session   //登录权限
   create table     //创建表的权限
   create index     //创建索引的权限
   create view      //创建视图的权限
   create sequence  //序列权限
   create trriger   //触发器

对象权限:是和用户操作数据对象相关的权限
   update  //改
   insert  //增
   delete  //删
   select  //查

with grant option   //表示得到权限的用户,可以把权限继续分配;

with admin option  //如果是系统权限;

让tea自己拥有的对scott.emp的权限给到stu  

  conn scott/123456;    //换用户登录

  grant all on scott.emp to tea with grant option;   //把权限给tea,tea可以继续分配

  conn tea/tea;  

  grant select on scott.emp to stu;  //tea把权限给stu

原文地址:https://www.cnblogs.com/gonghuixin/p/6999755.html