詳解Oracle11g和12c的v$pwfile_user視圖及區(qū)別
作者:波波說運(yùn)維
V$PWFILE_USERS 列出的是password文件里已授予sysdba、sysoper權(quán)限的用戶,如果查詢沒有記錄,那就有可能沒有了password文件了。下面介紹一下11g和12c的v$pwfile_user視圖。
V$PWFILE_USERS 列出的是password文件里已授予sysdba、sysoper權(quán)限的用戶,如果查詢沒有記錄,那就有可能沒有了password文件了,沒有了密碼文件當(dāng)然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.
- SELECT * FROM v$pwfile_users ORDER BY username;
二、 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.
責(zé)任編輯:趙寧寧
來源:
今日頭條