oracle–對象許可權

  • 2019 年 10 月 10 日
  • 筆記

sys用戶查詢ww用戶創建的表(已經commited)

select * from ww.wwTable;  

普通用戶lisi查詢ww用戶的表

grant select on wwTable to lisi;
select * from ww.wwTable;

對象授權操作

grant insert on wwTable to lisi;    grant all on wwTable to lisi;  

撤銷授權操作

revoke all  on wwTable from wwTable; 

將表中某些列許可權授予用戶(只有更新和插入)

grant update(name) on wwTable to lisi;
grant insert(id) on wwTable to lisi;

測試: update ww.wwTable set name = 'sss' where id = 5;

查詢列許可權

select 8 from user_con_privs;