Thanks! But I tried to login as sysdba in a script, i got the following error...

ERROR at line 1:
ORA-01034: ORACLE not available

My database is up and I have no problem connecting manually.