Reference Blog: http://blog.itpub.net/26015009/viewspace-717505/
Here's one way to do this: Use the ORAPWD.EXE tool to change the password.
Open a Command Prompt window and enter the following command:
Orapwd File=f:\app\administrator\product\11.2.0\dbhome_1\database\pwdoanet.ora password=123456
This command regenerates the database's
Password file。 The location of the password file is under the \database directory in the Oracle_home directory. This password is the password that modifies the SYS user. The password for other users except SYS does not change. (1) \database directory under the Oracle_home directory
(2) Pwdoanet.ora
It is the password file of the database instance, one instance corresponds to a file, the administrator password of which database instance to modify, which is generated (note that the original is deleted or renamed before executing the command, or the file already exists)
Generally modify the database user password, you need to first login administrator account, such as Sys
You can then execute the Modify command
Alter User by the new password;
If the account is locked, you can first log in to the SYS account and then unlock
Alter User
Forget how Oracle's sys password resets; How to modify the Oracle database user password