connect with sysdba
for XE- conn / as sysdba
for IE- conn sys as sysdba
then start up database by below command
startup;
once it get start means you can access oracle database now.
if you want connect another user you can write conn username/password
e.g. conn scott/tiger;
it will show connected........