Oracle user password Modification Scheme

Source: Internet
Author: User

In actual applications, sometimes we do not know the Oracle user password, but if we need to perform some operations with its users, however, you cannot modify the password of this user. At this time, you can use some tips to complete the operation.

The procedure is as follows:

 
 
  1. SQL*Plus: Release 9.2.0.5.0 - Production on 
    Copyright (c) 1982, 2002, Oracle Corporation. 
    All rights reserved.  
  2. SQL> connect sys/oracle as sysdba  

Connected.

 
 
  1. SQL> select username,password from dba_users;  
  2. USERNAME  PASSWORD  
  3. SYS8A8F025737A9097A  
  4. SYSTEM 2D594E86F93B17A1  
  5. DBSNMP E066D214D5421CCC  
  6. TOAD  A1BA01CF0DD82695  
  7. OUTLN 4A3BA55E08595C81  
  8. WMSYS 7C9BA362F8314299  

You have selected 6 rows.

 
 
  1. SQL> connect system/oracle 

Connected.

 
 
  1. SQL> connect sys/oracle as sysdba 

Connected.

Modify the Oracle user password. Change the system password to manager.

 
 
  1. SQL> alter user system identified by manager; 

The user has changed.

 
 
  1. SQL> select username,password from dba_users;  
  2. USERNAME  PASSWORD  
  3. SYS8A8F025737A9097A  
  4. SYSTEM D4DF7931AB130E37  
  5. DBSNMP E066D214D5421CCC  
  6. TOAD  A1BA01CF0DD82695  
  7. OUTLN 4A3BA55E08595C81  
  8. WMSYS 7C9BA362F8314299  

You have selected 6 rows.

 
 
  1. SQL> connect system/manager 

Connected.

Then, you can perform any operations you want.

 
 
  1. SQL> connect sys/oracle as sysdba 

Connected.

Change the user's system password to a previous value.

 
 
  1. SQL> alter user system identified by values '2D594E86F93B17A1'; 

The user has changed.

 
 
  1. SQL> connect system/oracle 

Connected.

 
 
  1. SQL> connect sys/oracle as sysdba 

Connected.

 
 
  1. SQL> connect system/manager  
  2. ERROR:  
  3. ORA-01017: invalid username/password; logon denied  

Warning: you are no longer connected to ORACLE.

The above content describes how to change the password of an Oracle user, hoping to help you in this regard.

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.