When you can login as user oracle on the system where the Oracle system runs, it is quite simple to access the Oracle database as DBA:

export ORACLE_SID=yoursid
export ORACLE_HOME=/path/to/your/oracle/home
sqlplus / as SYSDBA

after that, you have DBA privileges and can e.g. change the password of any database use:

alter user system identified by newpassword