You can connect to the database locally using the combination of environment variables:
Depending on your OS:
Unix/Linux:
export ORACLE_HOME=
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_SID=
SQLPLUS / AS SYSDBA
Windows
set ORACLE_HOME=
set PATH=%PATH%||%ORACLE_HOME%\bin
set ORACLE_SID=
SQLPLUS / AS SYSDBA
Once connected, you could then alter the user to modify the password:
ALTER USER username IDENTIFIED BY password;