Resetting
sql> ALTER USER [username] IDENTIFIED BY [password]
To Reset sys Password
(all actions from a local command line)
Prior to starting sqlplus, first set the oracle sid (shown here as xxxx) – where the oracle_sid is the name of the database you wish to amend.
Linux
TIP : If on linux, first execute “. oraenv ” which will set this sid and other necessary environment variables.
[oracle@DBNODE3 ~]$ . oraenv ORACLE_SID = [oracle] ? PRESTIGE The Oracle base for ORACLE_HOME=/opt/mnt1/app/oracle/product/11.2.0/dbhome_1 is /opt/mnt1 [oracle@DBNODE3 ~]$ sqlplus / as sysdba sql> alter user [username] identified by [password]
Windows
start > run > cmd
SET ORACLE_SID=xxxx sqlplus / AS sysdba sql> ALTER USER sys IDENTIFIED BY [password]