Environment Variables not set permanently before inst. of EH4 IDES

Dear Team,

We have done the EHP4 IDES installation on HP-UX with Oracle 10g. We have not set the environment variables permanently before installation of EHP4 IDES. We have given env. variables temporarily for that session. After installation We have done some post installation steps like Profile Parameter settings, SGEN. As our oraacrch got filled, system hanged. So obviously I need to restart my server. Soon after I tried to restart my server, I 'm getting error as SAPSYSTEMNAME not set and when tried to restart my database, getting error as start the Database DB must be restarted from remote Server.

I appreciate the team for the help in resolving the issue.

Thanks & Regards,