Re: Installing Oracle in an SSH console?

  • From: Kjetil Strønen <kjetil@xxxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Wed, 30 Jun 2010 14:11:42 +0200

On Wed, 2010-06-30 at 14:36 +0300, Octavian Rasnita wrote:
> Hi,
>  
> Is it possible to install Oracle in command line mode in an SSH
> console?

Sure - google "oracle database silent install"...

I've done this successfully at a couple of sites - at one site, where
frequent scratch-and-start-over was needed, I wrapped it up in a script,
to be run as root:
(part of larger script; setting of variables, creation of database, etc
skipped)
(beware of broken lines)
#########
install_grid() {
  #Install CRS / Oracle ClusterWare 
  echo "Installing CRS"
  su - ${TARGET_USER} -c "unset DISPLAY;${STAGE_ROOT}/grid/runInstaller
-silent -responseFile=${STAGE_ROOT}/grid/response/crs_install.rsp
ORACLE_BASE=${TARGET_ORABASE} ORACLE_HOME=${GRID_OH}
oracle.install.option=CRS_SWONLY oracle.install.asm.OSDBA=${ASM_DBA}
oracle.install.asm.OSOPER=${ASM_OPER} oracle.install.asm.OSASM=
${ASM_ASM} -waitforcompletion" >> ${LOGFILE} 2>&1

  sh ${GRID_OH}/root.sh >> ${LOGFILE} 2>&1

  #Configure Oracle Restart (single node)
  ${GRID_OH}/perl/bin/perl -I${GRID_OH}/perl/lib \
    -I${GRID_OH}/crs/install ${GRID_OH}/crs/install/roothas.pl >>
${LOGFILE} 2>&1
}

install_db_oh() {
  #Install Database OH
  echo "Installing database OH"
  su - ${TARGET_USER} -c "unset DISPLAY;
${STAGE_ROOT}/database/runInstaller -silent -responseFile=
${STAGE_ROOT}/database/response/db_install.rsp ORACLE_BASE=
${TARGET_ORABASE} ORACLE_HOME=${DB_OH}
oracle.install.option=INSTALL_DB_SWONLY
oracle.install.db.InstallEdition=EE oracle.install.db.DBA_GROUP=
${DB_DBA} oracle.install.db.OPER_GROUP=${DB_OPER} -waitforcompletion
DECLINE_SECURITY_UPDATES=true" >> ${LOGFILE} 2>&1

  sh ${DB_OH}/root.sh >> ${LOGFILE} 2>&1
}

install_grid
install_db_oh
#######

(You may need to add "-ignoreSysPrereqs" and/or "-ignorePrereq"
depending on your server-setup - OUI is sometimes too strict on
requirements, IMHO. If you *do* use them, be sure you know that you can
safely do so)

Works quite well, even over a satellite link...

--Kjetil

Other related posts: