After the Oracle database is created, many auxiliary users will be created. If these user accounts do not change their passwords, all of them use the default passwords.
After the Oracle database is created, many auxiliary users will be created. If these user accounts do not change their passwords, all of them use the default passwords.
After the Oracle database is created, many auxiliary users will be created. If these user accounts do not change their passwords, all of them will use the default passwords, and some accounts will already have their own public passwords, security threats to databases.
1. Use the following statement to query the current user account with the default password:
SQL> select * fromdba_users_with_defpwd orderby1;
USERNAME
APPQOSSYS
CTXSYS
EXFSYS
MDDATA
The dba_users_with_defpwd view has only one field "USERNAME". After you change the password for the account, 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) check whether the default password is used by the APPQOSSYS user:
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 default password is no longer used by the APPQOSSYS account.
2. If you want to query the details of the default user account, such as the lock status and creation date, you can use the following statement:
Select a. username account name, 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 B
Where a. username = B. username;