SQL> conn accounting/accounts as sysdba
Connected to an idle instance.
means that your oracle database is not started.
SQL> conn accounting/accounts as sysdba
Connected to an idle instance.
SQL> startup
should try to start the db. if that works without errors, after that, the connection without the as sysdba should work just fine also.