当前位置: 首页 > 科技观察

v$pwfile_user视图详解及Oracle11g和12c的区别

时间:2023-03-12 07:58:55 科技观察

V$PWFILE_USERS列出了密码文件中被授予sysdba和sysoper权限的用户。如果查询没有记录,可能是没有密码文件,没有更多的密码文件当然sqlplussys/xxassysdba是不能用sysdba用户登录的。Let'sintroducethev$pwfile_userviewof11gand12c.一、v$pwfile_user表(11g)V$PWFILE_USERSlistsallusersinthepasswordfile,andindicateswhethertheuserhasbeengrantedtheSYSDBA,SYSOPER,andSYSASMprivileges.SELECT*FROMv$pwfile_usersORDERBYusername;二、v$pwfile_user表(12c)V$PWFILE_USERSlistsallusersinthepasswordfile,并指示用户是否已被授予SYSDBA、SYSOPER、SYSASM、SYSBACKUP、SYSDG和SYSKM权限。