Oracle 视图 V$PWFILE_USERS 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图V$PWFILE_USERS用于查询pwfile中的用户记录。它用于显示 Oracle 数据库中所有有外部密码文件认证的用户。该视图可以为管理员提供有关用户认证的关键信息,例如密码文件中存在哪些用户,以及每个用户是否正处于OPEN状态。
在使用Oracle视图V$PWFILE_USERS之前,首先需要启用外部身份验证。 使用ALTER SYSTEMSET 配置参数REMOTE_LOGIN_passwordfile = “EXCLUSIVE”:
SQL > ALTER SYSTEM SET REMOTE_LOGIN_passwordfile = “EXCLUSIVE”;
接着,可以使用以下SQL语句查询V$PWFILE_USERS视图:
SQL > SELECT * FROM V$PWFILE_USERS;
此查询语句将产生以下结果:
USERNAME STATUS
——— ——–
User1 OPEN
User2 OPEN
User3 OPEN
官方英文解释
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.
| Column | Datatype | Description |
|---|---|---|
|
| Name of the user that is contained in the password file |
|
| Indicates whether the user can connect with |
|
| Indicates whether the user can connect with |
|
| Indicates whether the user can connect with |
|
| Indicates whether the user can connect with |
|
| Indicates whether the user can connect with |
|
| Indicates whether the user can connect with |
|
| Account status:
|
|
| Password profile name |
|
| The time of the last user login |
|
| Date the account was locked if account status was |
|
| Date of expiration of the account |
|
| Shows Certificate DN or Principal Name of externally authenticated users |
|
| Indicates the authentication mechanism for the user:
|
|
| This column has a value of |
|
| Shows the list of versions of the password hashes (also known as “verifiers”) existing for the account. The values for this column can include:
For more information about the 12C verifier, see Oracle Database Note that any combination of these verifiers can exist for any given account. |
|
| The ID of the container to which the data pertains. Possible values include:
|
Footnote 1 This column is available starting with Oracle Database 21c.
