sql;">
create user KD identified by 123456;
sql;">
grant connect to KD;
3、将Scott用户的emp表授权给KD可以查询@H_301_4@
sql;">
grant select on scott.emp to KD;
grant create table to KD;
4、回收权限@H_301_4@
sql;">
revoke select on scott.emp from KD;
5、表的增删改权限授权@H_301_4@
sql;">
grant select,inset,delete,update on scott.emp to KD;
revoke select,update on scott.emp from KD;
sql 错误: ORA-01940: 无法删除当前连接的用户@H_301_4@
sql;">
drop user KD;
会提示:错误: ORA-01922: 必须指定 CASCADE 以删除 'KD'@H_301_4@
sql;">
drop user KD cascade;
sql;">
select * from session_privs;
sql;">
select * from user_role_privs;
9、查看角色所有的权限@H_301_4@
sql;">
select * from dba_sys_privs;
select * from dba_sys_privs where grantee='CONNECT';
--create session
select * from dba_sys_privs where grantee='RESOURCE';
/*
create trigger
create sequence
create type
create procedure
create cluster
create operator
create indextype
create table
*/
select * from dba_sys_privs where grantee='DBA';
--有最高权限 所有的权限都有
创建一个开发人员并授权:@H_301_4@
sql;">
create user CURRY identified by 123456;
create connet,resource to CURRY;
sql;">
alter user HR account unlock;
sql;">
alter user HR identified by 123456;
以上所述是小编给大家介绍的纯Oracle的用户、角色以及权限相关操作,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对编程之家网站的支持!@H_301_4@ 原文链接:https://www.f2er.com/oracle/64838.html