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

Home -> Community -> Usenet -> c.d.o.server -> Installing 10g using a shell script.....

Installing 10g using a shell script.....

From: <amerar_at_iwc.net>
Date: 9 Nov 2006 08:18:31 -0800
Message-ID: <1163089111.382486.125430@e3g2000cwe.googlegroups.com>


Hi Everyone,

We are going to install 10g via batch mode on our servers. Basically we will have a shell script to install the 10g software and upgrade the database.

During our testing we noticed something, when the installer runs, the script does not wait for the installer to finish......it continues running???

I would think that it would wait for the command to complete.........

Below is a clip of the script.......can anyone offer any suggestions on how to make the script wait until the installer completes???



cd /ora10g/disk1/database
echo y | runInstaller -silent -responseFile /oraexp/oracle10g.rsp printf "\n\n\nOracle software installed successfully.....preparing to upgrade database.....\n\n\n"
sleep 5

### This section will upgrade the database from 9i to 10g ###
cd $ORAEXP
cp /ora2/app/oracle/product/10g/rdbms/admin/utlu102i.sql .

### Run Pre-Upgrade Information Tool ###
printf "Running Pre-Upgrade Information Tool......" sleep 5

sqlplus /nolog <<EOF

   connect / as sysdba
   SPOOL info.log
   @utlu102i.sql
   SPOOL OFF
   SHUTDOWN IMMEDIATE
   exit
EOF Received on Thu Nov 09 2006 - 10:18:31 CST

Original text of this message

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