I don't know how to log on with another user using the User Password

Source: Internet
Author: User

I don't know how to log on with another user using the User Password Sometimes we need to use a user to log on to the system, but do not know the user's password. The solution is to first use the System user to modify the user's password and log on, after processing, change the password. The following is a test: Microsoft Windows XP [version 5.1.2600] (c) Copyright 1985-2001 Microsoft Corp. c:/Documents and Settings/Hawk> sqlplus/nolog SQL * Plus: Release 10.1.0.2.0-production on Sunday August 13 20:45:30 2006 copyright (c) 1982,200 4, Oracle. all rights reserved. SQL> connect system/system @ ora10g is connected. /* View the user's dinya password */SQL> select password from dba_users where username = 'dinya '; PASSWORD------------------------------0F1F7F3040ACD46A <-------- The encrypted password SQL> connect dinya/test @ ora10g is connected. /* The real password is test. If you do not know that the password is test, only the encrypted password */SQL> connect system/system @ ora10g is connected. /* Log on to the system */SQL> alter user dinya identified by AAAA. The user has changed the password. SQL> connect dinya/AAAA @ ora10g is connected. SQL> select * from dual; D-X SQL> connect system/system @ ora10g connected. /* Change the password back to the original password */SQL> alter user dinya identified by values '0f1f7f3040acd46a'; the user has changed. SQL> connect dinya/test is connected. SQL> -- end --

 

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.