Path: news.cambrium.nl!textnews.cambrium.nl!feeder2.cambriumusenet.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!192.87.166.28.MISMATCH!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!post1.tilbu1.nb.home.nl!cache4.tilbu1.nb.home.nl!not-for-mail
Date: Wed, 03 Feb 2010 09:47:30 +0100
From: Frank van Bortel <frank.van.bortel@gmail.com>
Reply-To: frank.van.bortel@gmail.com
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
Newsgroups: comp.databases.oracle.misc,comp.databases.oracle.server
Subject: Re: dbstart with wrong shell / wrong systax
References: <hk42j0$nek$1@news.albasani.net>
In-Reply-To: <hk42j0$nek$1@news.albasani.net>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <3107d$4b693823$524ba3af$11121@cache4.tilbu1.nb.home.nl>
X-Complaints-To: abuse.home.news@prolocation.net
Organization: @home
Lines: 47
NNTP-Posting-Host: 82.75.163.175 (82.75.163.175)
NNTP-Posting-Date: Wed, 03 Feb 2010 09:47:31 +0100
X-Trace: 3107d4b693823f7ee060a11121
Xref:  news.cambrium.nl comp.databases.oracle.misc:32943

Sven Hilmer 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 Engineer
> http://www.hilmer-informatik.ch
frank@cs-frank03:~$ bash
frank@cs-frank03:~$ echo $ORACLE_HOME_LISTNER

frank@cs-frank03:~$ echo $ORACLE_HOME

frank@cs-frank03:~$ export ORACLE_HOME_LISTNER=Blah
frank@cs-frank03:~$ echo $ORACLE_HOME_LISTNER
Blah
frank@cs-frank03:~$ export ORACLE_HOME=$ORACLE_HOME_LISTNER
frank@cs-frank03:~$ echo $ORACLE_HOME_LISTNER
Blah
frank@cs-frank03:~$ exit
exit
frank@cs-frank03:~$

Beware, LISTNER is usually written as LISTENER (note the extra E)
Also beware dbshut and dbstart usually are called during system
startup/shutdown, not meant for 'normal' operations

-- 

Regards, Frank van Bortel

Topposting in Usenet groups I regard as offensive - I will not reply
