Hi
Please find mor details below.
Logs
/usr/sap/SID/DVEBMGS00/work - for abap
\usr\sap\<SID>\JC<InstNo>\j2ee\cluster\server<n>\log - for java
What is your database version. Have you tried R3trans -d or R3trans -x. are you able to access databse. Is your databse ON before SAP.
Check on all those things.. Hope it helps.
Regards,
Deepanshu Sharma
PS : Award points if it helps.