Database Reference
In-Depth Information
# Here we invoke the installer. Testing for FATAL errors in the installer
# output. If there is, we abort and say so
su - $GRID_OWNER -c \
"/mnt/12.1.0.1/grid/runInstaller -silent -responseFile /opt/oracle/grid.rsp" \
2>&1 | grep FATAL
if [ $? -eq 0 ]; then
echo "FATAL error occured-installation NOT completed"
touch /tmp/gridInstall.failed
exit 2
fi
# wait 30x30 seconds for OUI to complete. Increase if needed!
cnt=0
while ! test -e $GRID_HOME/root.sh
do
echo "waiting for the software installation to complete"
sleep 30
cnt=$(( $cnt + 1 ))
if [ $cnt -eq 30 ]; then break ; fi
done
# execute the root.sh script and dependent scripts.
$GRID_HOME/root.sh
su - $GRID_OWNER -c \
"$GRID_HOME/cfgtoollogs/configToolAllCommands RESPONSE_FILE=/opt/oracle/cfgrsp.properties"
rm /opt/oracle/cfgrsp.properties
rm /opt/oracle/grid.rsp
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(0660, grid, oinstall)
/etc/oraInst.loc
/opt/oracle/grid.rsp
%attr(0600, grid, oinstall) /opt/oracle/cfgrsp.properties
%config /etc/oraInst.loc
%changelog
* Fri Sep 5 2013 Engineering <engineering@example.com>
- initial version
- requires more error checking
The SPEC file references three files, which need to be present in the BUILD directory. The grid.rsp file is the
same just used for the silent installation and can be used without modification. The oraInst.loc file will be deployed
to /etc and contains the pointer to the central inventory. It contains the following familiar lines:
[rpmbuild@server1 BUILD]$ cat oraInst.loc
inventory_loc=/u01/app/oraInventory
inst_group=oinstall
 
Search WWH ::




Custom Search