Tips for modifying the Oracle user password

Source: Internet
Author: User

Kindles blog

Database Version: 9.2.0.5
Sometimes we may not know the password of a user, but we need to perform some operations with this user, and we cannot modify the password of this user. At this time, we can use some tips, to complete the operation.
The procedure is as follows:
SQL * Plus: Release 9.2.0.5.0-Production on Sunday November 21 13:32:34 2004
Copyright (c) 1982,200 2, oracle Corporation. All rights reserved.
SQL> connect sys/oracle as sysdba
Connected.
SQL> select username, password from dba_users;
USERNAME PASSWORD
------------------------------------------------------------
SYS 8A8F025737A9097A
SYSTEM 2D594E86F93B17A1
DBSNMP E066D214D5421CCC
TOAD A1BA01CF0DD82695
OUTLN 4A3BA55E08595C81
WMSYS 7C9BA362F8314299
You have selected 6 rows.
SQL> connect system/oracle
Connected.
SQL> connect sys/oracle as sysdba
Connected.
Change User system Password to manager
SQL> alter user system identified by manager;
The user has changed.
SQL> select username, password from dba_users;
USERNAME PASSWORD
------------------------------------------------------------
SYS 8A8F025737A9097A
SYSTEM D4DF7931AB130E37
DBSNMP E066D214D5421CCC
TOAD A1BA01CF0DD82695
OUTLN 4A3BA55E08595C81
WMSYS 7C9BA362F8314299
You have selected 6 rows.
SQL> connect system/manager
Connected.
Then, you can perform any operations you want.
SQL> connect sys/oracle as sysdba
Connected.
Change the user's system password to a previous value.
SQL> alter user system identified by values 2D594E86F93B17A1;
The user has changed.
SQL> connect system/oracle
Connected.
SQL> connect sys/oracle as sysdba
Connected.
SQL> connect system/manager
ERROR:
ORA-01017: invalid username/password; logon denied
Warning: you are no longer connected to orACLE.

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.