Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: OT: Linux sqlplus scriting question

Re: OT: Linux sqlplus scriting question

From: David Sharples <davidsharples_at_gmail.com>
Date: Tue, 23 May 2006 14:06:15 +0100
Message-ID: <be592d550605230606y6c33a98m5afc585b1f6ce9a5@mail.gmail.com>


get rid of the << on the second EOF

or remove the entire sqlplus bit as you dont do anything with the return value

On 23/05/06, Jeffrey Beckstrom <JBECKSTROM_at_gcrta.org> wrote:
>
> I am trying to make a script to stop the OMS and restart it after running
> sqlplus. Right now testing with select from DUAL.
>
> # set Oracle_home
> ORACLE_HOME=/home/oracle/OracleHomes/db10g
> export ORACLE_HOME
>
> # stop OMS
> cd /home/oracle/OracleHomes/oms10g/opmn/bin
> ./opmnctl stopall
> /home/oracle/OracleHomes/db10g/bin/sqlplus /nolog <<EOF
> connect sysman/rtasys1_at_gridctrl
> select * from dual;
> exit
> <<EOF
> # start OMS
> cd /home/oracle/OracleHomes/oms10g/opmn/bin
> ./opmnctl startall
>
>
> The script is stopping after doing sqlplus, what am I missing?
>

--
http://www.freelists.org/webpage/oracle-l
Received on Tue May 23 2006 - 08:06:15 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US