SAP Message TW371 - Check your local system ID:

Diagnosis
System name and ORACLE_SID are inconsistent.

Procedure
Set the system name to ORACLE_SID
(HEAD SYST entry in the object directory TADIR.)