Home > Database > Oracle > body text

What should I do if I forget my username and password in Oracle?

青灯夜游
Release: 2020-08-22 13:19:40
Original
15275 people have browsed it

Solution: 1. Enter sqlplus through the cmd command console to enter sqlplus; 2. Search for "Oracle 11g default username, password", and a lot of related default username and password information will be displayed; 3. Use the default Verify the username and password one by one to see if you can log in.

What should I do if I forget my username and password in Oracle?

#What should I do if I forget the username and password set during installation? After checking the information on the Internet, I finally found the solution! Let’s see how it’s solved?

Solution:

Method 1:

First enter sqlplus: There are two ways to enter, one is through the cmd command Enter sqlplus on the computer, or directly enter Start-》Program-》Oracle-》Application Development-》sqlplus.

Search for "Oracle 11g default username, password", you can find a lot of related default username and password information, I won't post it here.

Then use the default username and password to verify one by one to see if anyone can log in.

If it displays: "invalid username/password;logon denied", continue to try other users. Until you find the user who appears: "error; the account is locked", write down the user name. For example, I found that the user ordsys is locked.

Re-log in to sqlplus, enter: "/as sysdba" at the "Please enter user name:" prompt, the screen displays "Connect to:..." and other information. Then the "SQL>" prompt appears. At this prompt, enter: "alert user ordsys account unlock;" Note that there is a semicolon, otherwise a "2" will automatically appear after input, waiting for you to continue input.

At this time, the screen displays: "The user has changed."

What should I do if I forget my username and password in Oracle?

Re-log in to sqlplus, and at the "Please enter user name:" prompt enter: "ordsys ", enter "ordsys" after "Enter password:", the console will display: "error; the password has expired", and then ask to enter a new password and confirm the new password. At this point, you can finally connect to the database through your username and password.

What should I do if I forget my username and password in Oracle?

Method 2:

You can also change the password for System sys and other users set when installing Oracle:

Log in to sqlplus /nolog

Connect to the database: connect /as sysdba

Change the user password (for example: change the sys user password to 123): alter user sys identified by 123;

What should I do if I forget my username and password in Oracle?

Method 3:

Use OEM to set user information. Enter the OEM interface, select the "Server" tab, find "User" and click on it.

What should I do if I forget my username and password in Oracle?

Select the user whose password needs to be changed, taking sys as an example:

What should I do if I forget my username and password in Oracle?

Click Edit to enter the user management page.

Modify the corresponding information as needed. It should be noted that if you want to access OEM through a browser, you must ensure that the corresponding Oracle service is turned on.

What should I do if I forget my username and password in Oracle?

## Find the corresponding service through "Control Interface"->"Management Tools"->"Service", as shown in the figure below, set it to "Start". Can.

What should I do if I forget my username and password in Oracle?

Recommended tutorial: "

Oracle Tutorial"

The above is the detailed content of What should I do if I forget my username and password in Oracle?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template