oracle

一、授权

  1. 系统权限
    • 系统包括  connection,resource,dba权限
    • 创建用户  create user 用户名 identified by 密码
    • 修改用户  alter  user 用户名 identified by 密码;
    • 删除用户   drop  user 用户名 (cascade);  添加cascade后,会删除用户名下所有资源;
    • 授予权限  grant connection,resource,dba to 用户名 ( with admin option); 添加with admin option后,此用户可以将权限传递;收回他的权限时,传递的权限不会收回
    • 收回权限  revoke connection,resourece from 用户名
  2. 实体权限
    • 实体包括  insert,delete,update,select,alter,index,execute,all权限
    • 授予权限  grant select,insert on 实体名  to 用户名 (with grant option); grant all on product to public;//public指所有用户,all不包括drop权限;with grant option只权限可以传递,但是收回他的权限时,传递的权限也会被收回
    • 收回权限  revoke select,insert on 实体名  from 用户名

二、其他

posted @ 2018-03-06 12:15  国际庄_码农  阅读(102)  评论(0)    收藏  举报