当前位置: 首页 > news >正文

Oracle权限(二)权限相关的动态性能视图与数据字典视图

001 DBA_USERS

DBA_USERS 描述了数据库中所有的用户信息。

相关视图:

USER_USERS 描述了当前用户的信息。该视图不包括 PASSWORDPROFILEPASSWORD_VERSIONSEDITIONS_ENABLED, 和AUTHENTICATION_TYPE 列.

Column Description
USERNAME 用户名
USER_ID 用户ID
PASSWORD 为了支持AUTHENTICATION_TYPE 列,该列已被弃用
ACCOUNT_STATUS 帐号(用户)状态,一共9种:
  • OPEN

  • EXPIRED

  • EXPIRED(GRACE)

  • LOCKED(TIMED)

  • LOCKED

  • EXPIRED & LOCKED(TIMED)

  • EXPIRED(GRACE) & LOCKED(TIMED)

  • EXPIRED & LOCKED

  • EXPIRED(GRACE) & LOCKED

LOCK_DATE 帐号被锁定的日期(如果帐号处于锁定状态)
EXPIRY_DATE 帐号过期的日期
DEFAULT_TABLESPACE 数据的默认表空间
TEMPORARY_TABLESPACE 默认的临时表空间名或临时表空间组名
CREATED 用户创建日期
PROFILE 用户资源概要文件名
INITIAL_RSRC_CONSUMER_GROUP 用户的初始资源消费者组
EXTERNAL_NAME 用户外部名
PASSWORD_VERSIONS Shows the list of versions of the password hashes (also known as "verifiers") existing for the account.

The PASSWORD_VERSIONS column value includes 10G if an old case-insensitive ORCL hash exists and 11G if a SHA-1 hash exists.

Note that one or both of these verifiers can exist for any given account.

EDITIONS_ENABLED Indicates whether editions have been enabled for the corresponding user (Y) or not (N)
AUTHENTICATION_TYPE Indicates the authentication mechanism for the user:
  • EXTERNAL - CREATE USER user1 IDENTIFIED EXTERNALLY;

  • GLOBAL - CREATE USER user2 IDENTIFIED GLOBALLY;

  • PASSWORD - CREATE USER user3 IDENTIFIED BY user3;


002 DBA_SYS_PRIVS

DBA_SYS_PRIVS 描述了授予给用户和角色的系统权限。

Column Description
GRANTEE Grantee name, user, or role receiving the grant
PRIVILEGE System privilege
ADMIN_OPTION Indicates whether the grant was with the ADMIN option (YES) or not (NO)

003  ROLE_ROLE_PRIVS

ROLE_ROLE_PRIVS describes the roles granted to other roles. Information is provided only about roles to which the user has access.

Column Description
ROLE Name of the role
GRANTED_ROLE Role that was granted
ADMIN_OPTION Signifies that the role was granted with ADMIN option


004 ROLE_SYS_PRIVS

ROLE_SYS_PRIVS describes system privileges granted to roles. Information is provided only about roles to which the user has access.

Column Description
ROLE Name of the role
PRIVILEGE System privilege granted to the role
ADMIN_OPTION Indicates whether the grant was with the ADMIN option (YES) or not (NO)


005 ROLE_TAB_PRIVS

ROLE_TAB_PRIVS describes table privileges granted to roles. Information is provided only about roles to which the user has access.

Column Description
ROLE Name of the role
OWNER Owner of the object
TABLE_NAME Name of the object
COLUMN_NAME Name of the column, if applicable
PRIVILEGE Object privilege granted to the role
GRANTABLE YES if the role was granted with ADMIN OPTION; otherwise NO

 

006 DBA_TAB_PRIVS

DBA_TAB_PRIVS describes all object grants in the database.

Related View

USER_TAB_PRIVS describes the object grants for which the current user is the object owner, grantor, or grantee.

Column Description
GRANTEE Name of the user or role to whom access was granted
OWNER Owner of the object
TABLE_NAME Name of the object. The object can be any object, including tables, packages, indexes, sequences, and so on.
GRANTOR Name of the user who performed the grant
PRIVILEGE Privilege on the object
GRANTABLE Indicates whether the privilege was granted with the GRANT OPTION(YES) or not (NO)
HIERARCHY Indicates whether the privilege was granted with the HIERARCHY OPTION (YES) or not (NO)


007 DBA_COL_PRIVS

DBA_COL_PRIVS describes all column object grants in the database.

Related View

USER_COL_PRIVS describes the column object grants for which the current user is the object owner, grantor, or grantee.

Column Description
GRANTEE Name of the user or role to whom access was granted
OWNER Owner of the object
TABLE_NAME Name of the object
COLUMN_NAME Name of the column
GRANTOR Name of the user who performed the grant
PRIVILEGE Privilege on the column
GRANTABLE Indicates whether the privilege was granted with the GRANT OPTION (YES) or not (NO)


008 DBA_ROLES

DBA_ROLES describes all roles in the database.

Column Description
ROLE Name of the role
PASSWORD_REQUIRED This column is deprecated in favor of the AUTHENTICATION_TYPEcolumn
AUTHENTICATION_TYPE Indicates the authentication mechanism for the role:
  • NONE - CREATE ROLE role1;

  • EXTERNAL - CREATE ROLE role2 IDENTIFIED EXTERNALLY;

  • GLOBAL - CREATE ROLE role3 IDENTIFIED GLOBALLY;

  • APPLICATION - CREATE ROLE role4 IDENTIFIED USINGschema.package;

  • PASSWORD - CREATE ROLE role5 IDENTIFIED BY role5;


009 DBA_ROLE_PRIVS

DBA_ROLE_PRIVS describes the roles granted to all users and roles in the database.

Related View

USER_ROLE_PRIVS describes the roles granted to the current user.

Column Description
GRANTEE Name of the user or role receiving the grant
GRANTED_ROLE Granted role name
ADMIN_OPTION Indicates whether the grant was with the ADMIN OPTION (YES) or not (NO)
DEFAULT_ROLE Indicates whether the role is designated as a DEFAULT ROLE for the user (YES) or not (NO)


010 V$PWFILE_USERS

V$PWFILE_USERS lists all users in the password file, and indicates whether the user has been granted the SYSDBASYSOPER, and SYSASM privileges.

Column Description
USERNAME Name of the user that is contained in the password file
SYSDBA Indicates whether the user can connect with SYSDBA privileges (TRUE) or not (FALSE)
SYSOPER Indicates whether the user can connect with SYSOPER privileges (TRUE) or not (FALSE)
SYSASM Indicates whether the user can connect with SYSASM privileges (TRUE) or not (FALSE)



未完待续

相关文章:

  • 线程的实现
  • Java 动态生成复杂 Word
  • Competition-based User Expertise Score Estimation-20160520
  • 地址转换协议ARP
  • netstat -aon|findstr 8888 终止进程
  • 判断jQuery元素是否隐藏
  • 第二阶段—个人工作总结01
  • IO流的操作规律
  • C#创建https请求并使用pfx证书
  • Xcode 7 缺少 *.dylib库的解决方法
  • [C#基础]说说lock到底锁谁?
  • Shell学习笔记---重定向输入、输出(原创)
  • 堆的一些简单应用
  • dtrace4linux_Example
  • jQuery.extend 函数详解
  • 《微软的软件测试之道》成书始末、出版宣告、补充致谢名单及相关信息
  • axios请求、和返回数据拦截,统一请求报错提示_012
  • Java超时控制的实现
  • Java精华积累:初学者都应该搞懂的问题
  • node 版本过低
  • Python学习笔记 字符串拼接
  • STAR法则
  • WePY 在小程序性能调优上做出的探究
  • 从@property说起(二)当我们写下@property (nonatomic, weak) id obj时,我们究竟写了什么...
  • 从tcpdump抓包看TCP/IP协议
  • 给第三方使用接口的 URL 签名实现
  • 基于Vue2全家桶的移动端AppDEMO实现
  • 利用jquery编写加法运算验证码
  • ​卜东波研究员:高观点下的少儿计算思维
  • ​力扣解法汇总946-验证栈序列
  • #FPGA(基础知识)
  • (04)odoo视图操作
  • (1)SpringCloud 整合Python
  • (10)工业界推荐系统-小红书推荐场景及内部实践【排序模型的特征】
  • (39)STM32——FLASH闪存
  • (done) NLP “bag-of-words“ 方法 (带有二元分类和多元分类两个例子)词袋模型、BoW
  • (附源码)计算机毕业设计ssm高校《大学语文》课程作业在线管理系统
  • (过滤器)Filter和(监听器)listener
  • (免费领源码)Java#Springboot#mysql农产品销售管理系统47627-计算机毕业设计项目选题推荐
  • (十八)devops持续集成开发——使用docker安装部署jenkins流水线服务
  • (原创) cocos2dx使用Curl连接网络(客户端)
  • . ./ bash dash source 这五种执行shell脚本方式 区别
  • .NET Core IdentityServer4实战-开篇介绍与规划
  • .net 反编译_.net反编译的相关问题
  • @converter 只能用mysql吗_python-MySQLConverter对象没有mysql-connector属性’...
  • @kafkalistener消费不到消息_消息队列对战之RabbitMq 大战 kafka
  • [ CTF ]【天格】战队WriteUp- 2022年第三届“网鼎杯”网络安全大赛(青龙组)
  • [ 蓝桥杯Web真题 ]-Markdown 文档解析
  • [ 云计算 | Azure 实践 ] 在 Azure 门户中创建 VM 虚拟机并进行验证
  • [Android] Upload package to device fails #2720
  • [Angularjs]asp.net mvc+angularjs+web api单页应用之CRUD操作
  • [Assignment] C++1
  • [Bugku]密码???[writeup]
  • [BZOJ1060][ZJOI2007]时态同步 树形dp
  • [C/C++] -- 二叉树