This error mainly occurs due to incorrect ORACLE_SID value set.  Make sure you have set the ORACLE_HOME & ORACLE_SID value set properly.