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. QT实现FTP服务器(二)

    QClientThread类的实现: #include "QClientThread.h" #include <QDebug> /******************* ...

  2. elasticsearch索引查询,日志搜素

    索引查询 http://10.199.137.115:9200/_cat/indices?format=json 返回json字符串的索引状态 增加索引名称过滤 http://10.199.137.1 ...

  3. 关于eclipse的resource文件没有发布到tomcat上的解决方案

    版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/luman1991/article/details/53457302

  4. HDU 1257:最少拦截系统

    最少拦截系统 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Sub ...

  5. MYSQL初级学习笔记五:连接查询!(视频序号:初级_37-41)

    知识点七:连接查询(37-41) 什么是连接查询: 连接查询是将两个或两个以上的表按某个条件连接起来,从中选取需要的数据.连接查询是同时查询两个或两个以上的表时使用的.当不同的表中存在相同意义的字段时 ...

  6. Maze 解题报告

    Maze Description   You are given a special Maze described as an n*m matrix, please find the shortest ...

  7. codeforces 447C. DZY Loves Sequences 解题报告(446A)

    题目链接:http://codeforces.com/problemset/problem/447/C 题目意思:给出 一个 包含 n 个数的序列你,从中需要找出这个序列的最长子串,满足在里面只修改其 ...

  8. DGA聚类 使用DBScan

    features = sc.parallelize(data_group[idx]).map(lambda x: (x.host_ip+'^'+x.domain, 1)).reduceByKey(op ...

  9. Python的多进程锁的使用

    很多时候,我们需要在多个进程中同时写一个文件,如果不加锁机制,就会导致写文件错乱 这个时候,我们可以使用multiprocessing.Lock() 我一开始是这样使用的: import multip ...

  10. Bootstrap-CSS:辅助类

    ylbtech-Bootstrap-CSS:辅助类 1.返回顶部 1. Bootstrap 辅助类 本章将讨论 Bootstrap 中的一些可能会派上用场的辅助类. 文本 以下不同的类展示了不同的文本 ...