Have you set the

Code:
  export ORACLE_SID=O9IDB
in your environment. Then make sure that your listeners are up and functioning using

Code:
 lsnrctl status
  
 if down then:
  
    lsnrctl start
for connecting as follows
Code:
  sqlplus scott/[email protected]
Hope this is the problem

-Sam