usethis command on command prompt. after this it works
C:>set ORACLE_HOME=C:\app\name\product\21c\dbhomeXE
C:>set PATH=%ORACLE_HOME%\bin;%PATH%