Oracle分配权限

以管理员身份登录数据库

创建用户:create user [username] identified by [password];

赋予登录权限:grant create session to [username];

赋予建表权限:grant create table to [username];

赋予表空间使用权限:grant unlimited tablespace to [username];

用户拥有建表权限,相应拥有增删查改权限

查看用户权限:select * from user_sys_privs;

撤销登录权限:revoke create session to [username];

撤销建表权限:revoke create table from [username];

撤销表空间使用权限:revoke unlimited tablespace from [username];

赋予所有用户建表权限:grant create session to public;

赋予用户当前表查询权限:grant select on [tablename] to [username];

赋予用户当前表所有权限:grant all on [tablename] to [username];

撤销用户当前表查询权限:revoke select on [tablename] from [username];

撤销用户当前表所有权限:revoke all on [tablename] from [username];

赋予用户当前表当前列更新权限:grant update ([column]) on [tablename] to [username];

赋予用户当前表当前列插入权限:grant insert ([column]) on [tablename] to [username];

系统权限传递:

grant alter table to [username] with admin option;

对象权限传递:

grant select on [tablename] to [username] with grant option;

-------------------------------------------------

grant create session,create table,create view,create any index to [username];

grant unlimited tablespace to [username];

-------------------------------------------------

最新文章

  1. rdc21n(研发与设计综合讨论)博客开通了!
  2. jquery的$.extend、$.fn.extend、 jQuery.extend( target, object1, [objectN])作用及区别
  3. Openstack Neutron DVR workflow
  4. [ACM_数学] LA 3708 Graveyard [墓地雕塑 圈上新加点 找规律]
  5. interviewbit :Min Steps in Infinite GridBookmark Suggest Edit
  6. NOI 1998 免费馅饼
  7. [转]Web UI 设计命名规范
  8. js刷新页面
  9. mysql-定时调用存储过程
  10. WinForm 文件操作
  11. NodeJS之queryString
  12. java 关于性别的处理
  13. 两分钟搞懂UiAutomator、UiAutomator2、Bootstrap的关系
  14. ZooKeeper 01 - 什么是ZooKeeper + 部署ZooKeeper集群
  15. Log4j的入门和使用
  16. Spring中AOP主要用来做什么。Spring注入bean的方式。什么是IOC,什么是依赖注入
  17. uboot——git代码仓
  18. apiCloud 上拉加载
  19. beego 定义一个存储变量的容器
  20. 洛谷P3265 [JLOI2015]装备购买 [线性基]

热门文章

  1. RocketMQ - 消费者启动机制
  2. git 合并dev分支到 master分支 (merge)
  3. global与nonlocal关键字、函数名的多种用法、函数的嵌套调用、函数的嵌套定义、闭包函数、装饰器简介
  4. windows pwn(一)
  5. 人工智能,丹青圣手,全平台(原生/Docker)构建Stable-Diffusion-Webui的AI绘画库教程(Python3.10/Pytorch1.13.0)
  6. 百度脑图kityminder
  7. 副三角形行列式转成上(下)三角形行列式为什么依次对换而不用第n行直接对换首行,第n-1行直接对换次行
  8. HP DC7800 升级CPU出现:Missing or Invalid Processor Microcode Update —— 解决方案:更新主板BIOS
  9. [Unity]射线的简单应用和对UGUI的检测
  10. Tkinter模块的使用【转】