View the user information using the default password in the ORACLE database

Source: Internet
Author: User

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;

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.