i am installing oracle 8.1.6 on linux 6.2

after installing oracle i am able to connect with svrmgrl
but
when connecting as sytem i get an error saying slsid and oracle_sid not defined when it is already defined
i double checked with echo $ORACLE_SID

what could be the reason.