Oh one more thing -
when I give

sqlplus scott/tiger@sample1 - it connects correctly to the database.

but when I give sqlplus and then type username and password when prompted, it says
ERROR:
ORA-12545: Connect failed becoz target host or object does not exist.

same error for svrmgrl.

Any ideas, please.

Thanx,
Sri