Operating System - Linux
1827703 Members
2870 Online
109967 Solutions
New Discussion

script to start service automatically

 
Maaz
Valued Contributor

script to start service automatically

to start the Oracle DB and SAP(ERP), we did the following

su - orabit
bitesbitest:oracle> lsnrctl start
bitest:oracle>exit

su - bitadm
bitest:bitadm>startsap

I always did the above manually, please share the code(script) that automatically does the above at each reboot.

Regards
5 REPLIES 5
Jeeshan
Honored Contributor

Re: script to start service automatically

you can edit the rc.local file and add this kind of line to start automatically

su - oracle -c "/oracle/app/product/10.2.0/db_1/bin/lsnrctl start"
a warrior never quits
Maaz
Valued Contributor

Re: script to start service automatically

Salam ahsan

thanks for support ? but there is no rc.local in SUSE ;(

Jon Gomersall
Advisor

Re: script to start service automatically

Jeeshan
Honored Contributor

Re: script to start service automatically

w/salam

there is no any information about Linux version you mentioned in your thread.

any way, check out this link

http://www.dbasupport.com/forums/archive/index.php/t-40203.html
a warrior never quits
Maaz
Valued Contributor

Re: script to start service automatically

Salam ahsan

SLES 10 SP1.

and thanks for the continuous support