Database Reference
In-Depth Information
around the process. Once you understand the SPEC file syntax the process is really powerful, but the initial learning
curve is steep. The SPEC file for the Oracle Restart installation has the following content, and resides in the SPEC
directory as grid.spec :
[rpmbuild@server1 SPECS]$ cat grid.spec
Name: GridInfrastructure
Version: 12.1.0.1
Release: 1%{?dist}
Summary: installation of Grid Infrastructure for Enterprise Linux 6.x
Group: Applications/Databases
License: Commercial
URL: http://engineering.example.com/builds/
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires: oracle-rdbms-server-12cR1-preinstall
%description
This RPM checks for the required RPMs on Oracle Linux 6.x and adds them
as dependencies when needed.
Additionally, the RPM deploys the /etc/oraInst.loc file as per the standard
document, with /u01/app/oraInventory as the central inventory.
This RPM is not suitable for a RAC installation, it can only install Oracle
Restart. It will install the software as the grid user.
After deploying the files the Oracle Universal Installer is invoked with the
silent response file from /opt/oracle/grid.rsp, and required configuration
assistants are executed. Be patient!
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc
mkdir -p $RPM_BUILD_ROOT/opt/oracle
cp oraInst.loc $RPM_BUILD_ROOT/etc/
cp grid.rsp $RPM_BUILD_ROOT/opt/oracle
cp cfgrsp.properties $RPM_BUILD_ROOT/opt/oracle
%post
GRID_OWNER=grid
GRID_HOME=/u01/app/grid/product/12.1.0.1/grid
# mount the software
umount /mnt
mount -t nfs stagingServer:/export/oracle/x64/ /mnt
if [ $? -ne 0 ]; then
echo "FATAL error trying to mount the binares from the staging server"
exit 1
fi
Search WWH ::




Custom Search