Welcome 微信登录

首页 / 数据库 / MySQL / Oracle创建用户并授予角色权限语句

用Oracle用户进入数据库sqlplus /nolog
conn / as sysdba
1         建立用户
Create User orcldba Identified by zcs001;2         创建角色
Create  role orclrole;3         授权给角色
grant create session to  orclrole;
grant select on v_$sysstat               to orclrole;
grant select on v_$system_event          to orclrole;
grant select on v_$rowcache              to orclrole;
grant select on v_$librarycache          to orclrole;
grant select on V_$INSTANCE              to orclrole;
grant select on V_$STATNAME              to orclrole;
grant select on V_$SESSION               to orclrole;
grant select on v_$process               to orclrole;
grant select on V_$SESSTAT               to orclrole;
grant select on dba_data_files to orclrole;
grant select on dba_free_space  to orclrole;4         授予角色给用户
Grant orclrole to orcldba;Oracle 数字与空值的排序问题Oracle通过过程定期取数相关资讯      Oracle教程 
  • Oracle中纯数字的varchar2类型和  (07/29/2015 07:20:43)
  • Oracle教程:Oracle中查看DBLink密  (07/29/2015 07:16:55)
  • [Oracle] SQL*Loader 详细使用教程  (08/11/2013 21:30:36)
  • Oracle教程:Oracle中kill死锁进程  (07/29/2015 07:18:28)
  • Oracle教程:ORA-25153 临时表空间  (07/29/2015 07:13:37)
  • Oracle教程之管理安全和资源  (04/08/2013 11:39:32)
本文评论 查看全部评论 (0)
表情: 姓名: 字数