Re: dbstart with wrong shell / wrong systax

From: Mark D Powell <Mark.Powell2_at_hp.com>
Date: Sun, 31 Jan 2010 16:37:49 -0800 (PST)
Message-ID: <ca91292b-81ba-4cbd-824a-face60e1a30c_at_y12g2000yqh.googlegroups.com>



On Jan 31, 9:03 am, Sven Hilmer <shil..._at_invalid.invalid> wrote:
> 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
>
> --
> Sven-Olaf Hilmer, Solaris System Engineerhttp://www.hilmer-informatik.ch

Have you just tried changing shell to specify !/bin/ksh. We use the korn shell for our Oracle setting and starting scripts.

HTH -- Mark D Powell -- Received on Sun Jan 31 2010 - 18:37:49 CST

Original text of this message