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 -> Silent Install Question

Silent Install Question

From: <art_at_chicagorsvp.com>
Date: 13 Jul 2006 13:17:08 -0700
Message-ID: <1152821828.804867.262860@h48g2000cwc.googlegroups.com>


Hi All,

We are upgrading several servers to 9.2.0.7. We are going to do a silent install. Most of that works fine, however, there is a section when you are supposed to run root.sh.

In that script it checks for 3 files: dbhome, oraenv, coraenv

If these exist, it asks if you want to overwrite them. Well, that interupts the silent install. Below is the section of code where it asks the question. I'm wondering if there is a way to echo the answer "Y" and pipe it to the root.sh command.

So far I've been unsuccessful. I mean, of course you can pipe parameters to a script, but to get this command to use them.........

Any help is really appreciated.

Thanks in advance!!

FILES="dbhome oraenv coraenv"

for f in $FILES ; do
  if [ -f $f ] ; then
    $CHMOD 755 $f 2>&1 2>> $LOG
    short_f=`$ECHO $f | $SED 's;.*/;;'`
    lbin_f=$LBIN/$short_f
    if [ -f $lbin_f ] ; then
$ECHO $n "The file \"$short_f\" already exists in $LBIN.
Overwrite it? (y/n) $C"

      DEFLT='n'; . $ORACLE_HOME/install/utl/read.sh; OVERWRITE=$RDVAR     else
      OVERWRITE='y';
    fi
    if [ "$OVERWRITE" = "y" ] -o [ "$OVERWRITE" = "Y" ] ; then
$CP $f $LBIN 2>&1 2>> $LOG
$CHOWN $ORACLE_OWNER $LBIN/`$ECHO $f | $AWK -F/ '{print $NF}'`
2>&1 2>> $LOG
$ECHO " Copying $short_f to $LBIN ..."
    fi
  fi
done Received on Thu Jul 13 2006 - 15:17:08 CDT

Original text of this message

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