Oracle创建角色与创建用户一样,基本的语法如下所示:
create role <角色名> identified by <验证口令>
例如创建角色 testrole,验证口令为:test
create role testrole identified by test;
使用grant命令为用户指定角色。
grant <角色名> to 用户名;
grant testrols to test;
使用revoke 删除用户角色
revoke <角色名> from 用户名;
Oracle创建角色与创建用户一样,基本的语法如下所示:
create role <角色名> identified by <验证口令>
例如创建角色 testrole,验证口令为:test
create role testrole identified by test;
使用grant命令为用户指定角色。
grant <角色名> to 用户名;
grant testrols to test;
使用revoke 删除用户角色
revoke <角色名> from 用户名;