如何理解Oracle11g和12c的v$pwfile_user视图及区别

本篇文章给大家分享的是有关如何理解Oracle11g和12c的v$pwfile_user视图及区别,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。

V$PWFILE_USERS  列出的是password文件里已授予sysdba、sysoper权限的用户,如果查询没有记录,那就有可能没有了password文件了,没有了密码文件当然sqlplus  sys/xx as sysdba这种用sys用sysdba用户就无法登录了。下面介绍一下11g和12c的v$pwfile_user视图。

一、v$pwfile_user表(11g)

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

如何理解Oracle11g和12c的v$pwfile_user视图及区别

SELECT * FROM v$pwfile_users ORDER BY username;

如何理解Oracle11g和12c的v$pwfile_user视图及区别

二、 v$pwfile_user表(12c)

V$PWFILE_USERS lists all users in the password file, and indicates whether the user has been granted the SYSDBA, SYSOPER, SYSASM,SYSBACKUP, SYSDG, and SYSKM privileges.

如何理解Oracle11g和12c的v$pwfile_user视图及区别

以上就是如何理解Oracle11g和12c的v$pwfile_user视图及区别,小编相信有部分知识点可能是我们日常工作会见到或用到的。希望你能通过这篇文章学到更多知识。更多详情敬请关注行业资讯频道。