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

Source: Internet
Author: User
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;

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.