Oracle中关于权限与规则简单总结:

 --1,管理员登录
conn sys/orcl@orcl as sysdba; --2,创建用户方案---必须管理员身份才能操作
create user username identified by password;
(create user wangwu identified by w123;) --3,删除用户方案
drop user username cascade; ---4,修改密码
alter user username identified by newpassword; --5,用户解锁和上锁---必须管理员身份才能操作
alter user username account lock; --登录被锁
(alter user scott account lock;)
alter user username account unlock; --登录解锁
(alter user scott account unlock;) --6,授权角色(系统权限) -- 三大默认角色
grant privilegename to username; --授予角色语法
connect --包含登录、创建表、视图、序列
Resource --包含创建存储过程触发器
Dba --包含所有的系统权限 --eg:管理员 创建王五用户,然后给它开发角色
(create user wangwu identified by w123;)
(grant connect,resource to wangwu;) --6.2,回收权限(系统权限)
revoke privilegename from username;
(revoke connect from wangwu;) --7,授权(对象权限)
grant privilegename on userone.table to usertwo; --eg:授权用户(ken)可以查询用户(Scott)的表(emp)
grant select on scott.emp to ken;
--eg:授权用户(wangwu)可以查询用户(scott)的表(emp)
grant update on scott.emp to wangwu; --7.2,回收权限(回收对象权限)
revoke privilegename on userone.table from usertwo; revoke select on scott.emp from ken;
revoke update on scott.emp from wangwu; --8,权限的传递
--with admin option传递系统权限
--with grant option 传递对象权限
create user userone identified by one;
create user usertwo identified by two; --eg: with admin option 在userone下面可以 将 create session 系统权限授权给其他用户
grant create session to userone with admin option; --eg: with grant option 在userone下面可以 将 select 对象权限授权给其他用户
grant select on scott.emp to userone with grant option ; --9,规则 profile
--创建规则(密码失败3次,锁定100天)
create profile notLoginDay limit failed_login_attempts 3 password_lock_time 100;
--添加规则
alter user scott profile notLoginDay;

oracle 权限、规则的更多相关文章

  1. Oracle权限管理详解

    Oracle权限管理详解 转载--CzmMiao的博客生活 Oracle 权限 权限允许用户访问属于其它用户的对象或执行程序,ORACLE系统提供三种权限:Object 对象级.System 系统级. ...

  2. oracle权限

    Oracle 权限 权限允许用户访问属于其它用户的对象或执行程序,ORACLE系统提供三种权限:Object 对象级.System 系统级.Role 角色级.这些权限可以授予给用户.特殊用户publi ...

  3. oracle权限管理学习

      Oracle 权限 权限允许用户访问属于其它用户的对象或执行程序,ORACLE系统提供三种权限:Object 对象级.System 系统级.Role 角色级.这些权限可以授予给用户.特殊用户pub ...

  4. Oracle权限相关查询

    Oracle权限相关查询着实视图有点多,记录下常用的语句,方便查询:1.查看所有用户:  select * from dba_users;  select * from all_users;  sel ...

  5. Oracle权限管理详解(2)

    详见:https://blog.csdn.net/u013412772/article/details/52733050 Oracle数据库推荐以引用博客: http: http:.html http ...

  6. Oracle权限管理详解(1)

    详见:https://www.cnblogs.com/yw0219/p/5855210.html Oracle 权限 权限允许用户访问属于其它用户的对象或执行程序,ORACLE系统提供三种权限:Obj ...

  7. 浅谈Oracle权限体系

    对于数据库来讲,安全性的重要程度不言而喻,今天我们就来聊一聊Oracle的权限体系. 1.账户管理 在此之前,先解释下一个容易混淆的概念:模式.所谓模式,指的是用户账户所拥有的一组对象(比如表,索引, ...

  8. oracle权限语句大全

    Oracle 系统默认的几个用户: sys --------网络管理用户,具有最高数据库管理权限 system------本地管理用户,权限次于sys scott-------普通用户,默认是锁住的( ...

  9. Oracle 权限(grant、revoke)

    200 ? "200px" : this.width)!important;} --> 数据库版本:11GR2 一.介绍 在oracle中没有其他数据库系统中的数据库的概念, ...

随机推荐

  1. HDU 6109 数据分割 【并查集+set】 (2017"百度之星"程序设计大赛 - 初赛(A))

    数据分割 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submis ...

  2. swt_table 回车可编辑Esc取消

    package 宿舍管理系统; import java.util.Hashtable; import org.eclipse.swt.SWT; import org.eclipse.swt.custo ...

  3. bzoj3957: [WF2011]To Add or to Multiply

    gay队牛逼! 我们可以强行拆一下柿子,最终得到的值会是m^k*x+m^k*u(k)*a+m^k-1*u(k-1)*a……m^0*u(0)*a 其中u表示后面有i个m的a有多少个 答案就是k+∑u 枚 ...

  4. YTU 2427: C语言习题 整数排序

    2427: C语言习题 整数排序 时间限制: 1 Sec  内存限制: 128 MB 提交: 391  解决: 282 题目描述 用指向指针的指针的方法对n个整数排序并输出.要求将排序单独写成一个函数 ...

  5. poj 1789 Truck History 解题报告

    题目链接:http://poj.org/problem?id=1789 题目意思:给出 N 行,每行7个字符你,统计所有的 行 与 行 之间的差值(就是相同位置下字母不相同),一个位置不相同就为1,依 ...

  6. Oracle:sequence问题研究

    一直以来,以为sequence是不间断地持续增长的:但今天发现sequence是会跳号,这种情况发生在RAC环境下.在单实例环境下,应该不存在的. sequence截图如下: 数据库表中发生了跳号: ...

  7. WAS:节点不同步问题

    刀片服务器硬盘坏了,换了硬盘后,通过dmgr无法重启该节点上的server. 单机./starServer 后,服务虽然启动了,但后台一直提示如下: [-- ::: CST] RoleViewLead ...

  8. Tomcat 系统架构与设计模式之一

    Tomcat 系统架构与设计模式,第 1 部分: 工作原理 来自:http://www.ibm.com/developerworks/cn/java/j-lo-tomcat1/index.html 这 ...

  9. POJ1474:Video Surveillance(求多边形的核)(占位)

    A friend of yours has taken the job of security officer at the Star-Buy Company, a famous depart- me ...

  10. javascript之数组的6种去重方法

    去重 var arr=[11,11,333,4,4,5,66,66,7]; // 方法一:在新数组内判断不存在时加入 var newarr1=[]; function quchong1(){ for( ...