I don't understand, if my hostname is sun9 and my DB name is test, how would this command look?

conn system/sun9@test

this returns

ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory