1827286 Members
2984 Online
109717 Solutions
New Discussion

Script error...

 
SOLVED
Go to solution
Carlo Henrico_1
Regular Advisor

Script error...

Please help, what is wrong here. I get the following in the boot log:

Output from "/sbin/rc2.d/S99dbora start":
----------------------------
/sbin/rc2.d/S99dbora[8]: [!: not found.
/sbin/rc2.d/S99dbora[20]: su: not found.

The dbora script is as follows (6 - 8):

ORA_HOME=/oracle/app/product/816
ORA_OWNER=oracle
if [! -f $ORA_HOME/bin/dbstart]

and line 20:
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart &

Thank you

Carlo
Live fast, die young - enjoy a good looking corpse!
2 REPLIES 2
Bruce Regittko_1
Esteemed Contributor
Solution

Re: Script error...

Hi,

You need to have spaces surrounding the [ and the ] characters. As for the su command, try using an absolute path before the command, i.e., /usr/bin/su.

--Bruce
www.stratech.com/training
Tommy Palo
Trusted Contributor

Re: Script error...

You need to have spaces after/before the brackets:
if [ ! -f $ORA_HOME/bin/dbstart ]

and line 20:
You don't have /usr/bin in your PATH, so eiter add that or do:
/usr/bin/su - $ORA_OWNER -c $ORA_HOME/bin/dbstart &

Keep it simple