How can I modify the username and password of the oracle database ?, Oracle Database

Source: Internet
Author: User

How can I modify the username and password of the oracle database ?, Oracle Database

It is common for students who do not frequently use databases to forget their usernames and passwords. Here we will introduce how to modify the username and password of the oracle database.

Go to the cmd command interface (the shortcut key is win + R ).

Change the administrator user password (1): Enter sqlplus "/as sysdba" on the command interface to successfully connect to the Administrator identity.

Modify the administrator password (2): Enter

Alter user system identified by 123456;

This command is used to set the password of the administrator user system to 123456.

Change the password of a common user (1): You must first link the user as an administrator. On the command interface, enter sqlplus "/as sysdba" to connect the user as an administrator.

Change the password of a common user (2): enter the password on the SQL command INTERFACE

Alter user username identified by 123456;

This command sets the password of the administrator user username (User username created earlier) to 123456.

Now you can connect to the database through the administrator user and common user. Open the cmd command again, enter sqlplus on the command interface, prompt to enter the user name, and then enter the modified password.

 

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.