ORACLE Database view User information using the default password after the Oracle database is created, many auxiliary users will be created. If these user accounts do not change the password, they will all use the default password, the default passwords of some accounts are already public secrets, posing a threat to database security. 1. Use the following statement to query the current user account with the default password:
SQL> select * fromdba_users_with_defpwd orderby1; there is only one field "USERNAME" in the accounts view. After the account password is changed, the user account disappears from the dba_users_with_defpwd view.
For example:
(1) change the password of the APPQOSSYS User: SQL> alteruser APPQOSSYS identifiedby pwdpwdpwd; (2) query whether the default password of the APPQOSSYS user is used: SQL> select * from dba_users_with_defpwd where username = 'appqosss ';
At this time, the APPQOSSYS user information cannot be found from the dba_users_with_defpwd view, indicating that the APPQOSSYS account has no default password. 2. If you want to query the details of the default user account, for example, the lock status and creation date, you can use the following statement:
Select. username, B. user_id account ID, B. ACCOUNT_STATUS access status, B. LOCK_DATE lock time, B. expiry_date expiration time, B. created creation time fromdba_users_with_defpwd a, dba_users bwhere. username = B. username;