热门关键字:  ubuntu  分区  函数  Fedora  linux系统进程

sybase角色分层和互斥

来源: 作者: 时间:2007-09-14 Tag: 点击:

5、授予用户lg3的chief_editor_role角色

grant role chief_editor_role to lg3

6、显示登录用户被授予的角色

sp_displayroles lg3

7、显示角色chief_editor_role包含的所有角色

sp_displayroles chief_editor_role

显示结果为:

role name

---------

author_role

editor_role

7、 查看登录用户lg3被激活的角色及在分层中子级别中的角色

sp_displayroles lg3,expand_down

显示结果:

role name parent role name level

--------- ---------------- -----------

chief_editor_role null 1

author_role chief_editor_role 2

editor_role chief_editor_role 2

author_role editor_role 3

commtentator_role editor_role 3

结论:通过以上实验我们知道,给角色之间增加了分层和互斥功能,使用户授权更加的安全和灵活。


最新评论共有 4 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册