Easily fix Oracle user password changes

Source: Internet
Author: User

We assume that in such an application scenario, the database needs to be transplanted and the Oracle user password of a user in the database is unknown. However, this password cannot be modified because it is used in other programs, in the new database system, the Oracle user password must be the same as the original password. A headache!

In this case, the usual method is not acceptable. View the information to obtain the method modified below.

Query the ciphertext of an Oracle user password

 
 
  1. SQL> select username,password from dba_users where username=\'JW_PUB1\';  
  2.  
  3. USERNAME PASSWORD 
  4. ------------------------------ ------------------------------  
  5. JW_PUB1 1141B75987409AA1  
  6.  
  7. SQL> select username,password from dba_users where username=\'PORTAL\';  
  8.  
  9. USERNAME PASSWORD 
  10. ------------------------------ ------------------------------  
  11. PORTAL A9B80747F4D3AF98  
  12.  
  13. SQL>   

Change Password

 
 
  1. SQL> alter user jw_pub1 identified by values \'1141B75987409AA1\';  
  2.  
  3. User altered.  
  4.  
  5. SQL> alter user portal identified by values \'A9B80747F4D3AF98\';  
  6.  
  7. User altered.  

Now that the Oracle user password is modified, you can test whether the verification program is successful.

  1. How to unlock users in Oracle
  2. Oracle System Administrator notice: Role permission management
  3. Authorization and management for five Oracle users
  4. Step 4: Change the Oracle user name
  5. Two-step Oracle user tablespace proficiency

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.