1752661 Members
5812 Online
108788 Solutions
New Discussion юеВ

Re: startup script

 
Yogeeraj_1
Honored Contributor

Re: startup script

hi,

can you post the rc.log for further verifications?

and also

cd /sbin
ll */*dbora*


revert!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
sh5490
Frequent Advisor

Re: startup script

hi yograj,
pls find the required info.

we are using soft link for dbora3 script
# pwd
/sbin
# ll */*dbora*
-rwxr-x--- 1 root dba 0 May 8 19:20 init.d/dbora
-rwxrwxrwx 1 root dba 1888 Apr 25 14:09 init.d/dbora1
-rwxrwxrwx 1 root dba 988 Apr 10 17:09 init.d/dbora2
-rwxr-x--- 1 root dba 1041 Apr 25 14:08 init.d/dbora3
-rw-r--r-- 1 root sys 902 Apr 25 14:05 init.d/dborahange
lrwxr-xr-x 1 root sys 18 Apr 25 23:04 rc1.d/K100dbora -> /sbin/init.d/dbora
lrwxrwxr-x 1 root sys 18 May 13 10:35 rc2.d/K100dbora3 -> /sbin/init.d/dbora
-rwxr-x--- 1 bin bin 939 Apr 28 15:07 rc2.d/S99dbora.org
lrwxr-xr-x 1 root sys 18 Apr 25 23:03 rc3.d/K10dbora -> /sbin/init.d/dbora
lrwxrwxr-x 1 root sys 18 May 13 10:35 rc3.d/S99dbora3 -> /sbin/init.d/dbora
lrwxrwxr-x 1 root sys 18 May 13 10:34 r -> /sbin/init.d/dbora

thanks

shabir
Yogeeraj_1
Honored Contributor

Re: startup script

hi Shabir,

> -rwxr-x--- 1 root dba 0 May 8 19:20 init.d/dbora


can you change the permission and ownership as follows:
chown bin:bin /sbin/init.d/oradb
chmod 755 /sbin/init.d/oradb


also post the output of:
cat /etc/rc.config.d/dbora

this should show something like:

SRV2:sbin/init.d>cat /etc/rc.config.d/dbora
# ORACLE DATABASE configuration
#
# ORACLE_START_STOP : Set to 1 to start ORACLE DATABASE
#
ORACLE_START_STOP=1

SRV2:sbin/init.d>


revert!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Fabien GUTIERREZ
Frequent Advisor

Re: startup script

the answers is in your rc.log file

/sbin/rc2.d/S99dbora.org[7]: hostname: not found.
/sbin/rc2.d/S99dbora.org[12]: touch: not found.
starting Oracle Net Listener
/sbin/rc2.d/S99dbora.org[23]: su: not found.
Starting Oracle databases
/sbin/rc2.d/S99dbora.org[26]: su: not found.

PATH ie absolute PATH for those command are not defined in the script so just correct it and it ll works fine
Yogeeraj_1
Honored Contributor

Re: startup script

Fabien GUTIERREZ:
> the answers is in your rc.log file
No really.
If you look at the "ll */*dbora*" output, S99dbora.org is not a link but a script created in the rc2.d directory.
-rwxr-x--- 1 bin bin 939 Apr 28 15:07 rc2.d/S99dbora.org


The intended script "dbora" startup does not even appear in the rc.log!!
lrwxrwxr-x 1 root sys 18 May 13 10:35 rc3.d/S99dbora3 -> /sbin/init.d/dbora


Thats presumes a step in the configuration that has not been done properly..

Shabir: please post the requested information as per my last post.


thanks
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Fabien GUTIERREZ
Frequent Advisor

Re: startup script

let's check if the #! pragma in your shell is referencing a shell in /sbin
if not problem may comes from that point
sh5490
Frequent Advisor

Re: startup script

ho yogeeraj,

thanks for u reply

pls find the output
bash-3.2# cat /etc/rc.config.d/dbora
ORACLE_START=1
export ORACLE_START

thanks

shabir

sh5490
Frequent Advisor

Re: startup script

hi yoograj,
after rebooting the server ,pls the folowing entries are found in /etc/rc.log file


usage: /sbin/rc2.d/S99dbora {start|stop}
Output from "/sbin/rc2.d/S99dbora start":
----------------------------
/sbin/rc2.d/S99dbora[9]: hostname: not found.
/sbin/rc2.d/S99dbora[14]: touch: not found.
starting Oracle Net Listener
/sbin/rc2.d/S99dbora[25]: su: not found.
Starting Oracle databases
/sbin/rc2.d/S99dbora[28]: su: not found.

usage: /sbin/rc2.d/S99dbora.org {start|stop}
Output from "/sbin/rc2.d/S99dbora.org start":
----------------------------
/sbin/rc2.d/S99dbora.org[7]: hostname: not found.
/sbin/rc2.d/S99dbora.org[12]: touch: not found.
starting Oracle Net Listener
Starting Oracle databases
/sbin/rc2.d/S99dbora.org[23]: su: not found.
/sbin/rc2.d/S99dbora.org[26]: su: not found.


thanks

shabir
MarkSyder
Honored Contributor

Re: startup script

It seems to be telling you it can't find the commands hostname, su, etc. If you can edit the script, put the full path in.

Mark
The triumph of evil requires only that good men do nothing
Yogeeraj_1
Honored Contributor

Re: startup script

hi Shabir,

There is something with the script itself. We need to check what Fabien mentioned previously.

"let's check if the #! pragma in your shell is referencing a shell in /sbin if not problem may comes from that point"

Can you post your dbora script?

revert!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)