Java Mailing List Archive

http://www.dba.5341.com/

Home » Home (12/2007) » oracle l »

Re: OT: Linux sqlplus scriting question

z b

2006-05-23

Replies:

Someone has to mention this..

I hope that isn't your prod password. ;-)

 
On 5/23/06, Jeffrey Beckstrom <JBECKSTROM@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@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?
 
Jeffrey Beckstrom
Database Administrator
Greater Cleveland Regional Transit Authority
1240 W. 6th Street
Cleveland, Ohio 44113

©2008 dba.5341.com - Jax Systems, LLC, U.S.A.