Re: dbstart with wrong shell / wrong systax
Date: Mon, 01 Feb 2010 08:25:18 +1100
Message-ID: <87mxzunf0h.fsf_at_lion.rapttech.com.au>
"Michel Cadot" <micadot{at}altern{dot}org> writes:
> "Sven Hilmer" <shilmer_at_invalid.invalid> a écrit dans le message de news: hk42j0$nek$1_at_news.albasani.net...
> | hi all
> |
> | After installing Oracle database 11.2 on Solaris 10 x86
> | the dbstart script doesn't work because of the interpreter
> | is set to /bin/sh but the script uses syntax of ksh/bash .
> |
> | dbstart:
> | line 1:#!/bin/sh
> | ...
> | line 89:export ORACLE_HOME=$ORACLE_HOME_LISTNER
> |
> |
> | This export statement is illegal for bourne shell
> | so the script exits with an error message and doesn't the database processes
> |
> | How do you solve this problem?
> |
> | Sven
> |
> | --
> Change it to a syntax it accepts.
> It has been long since I used sh but it is valid for Korn shell.
>
It is also valid for bASH, but its been so long since I used vanilla sh, I can't remember if its valid there also.
I'd just change the script to either use bash or change that
>
export ORACLE_HOME=$ORACLE_HOME_LISTNER
to
ORACLE_HOME=$ORACLE_HOME_LISTNER>
export ORACLE_HOME
Tim
-- tcross (at) rapttech dot com dot auReceived on Sun Jan 31 2010 - 15:25:18 CST