Database Reference
In-Depth Information
there are other methods available to create an Oracle home, such as cloning. In the example shown in this
chapter it is assumed that the Dba has control over the application of patch set Updates. Cloning the Oracle home seems
elegant as well, but the overhead involved in creating a new (tested and validated!) golden image after each release of
a psU is enormous.
Note
The following sections provide a short explanation of how to create the RPM for Grid Infrastructure installation.
More details about the RPM building process can be found on the Fedora project's website. Fedora is the
“community” distribution made by Red Hat. Red Hat Enterprise Linux is based on an earlier Fedora release.
Preparing the RPM build environment
A few additional packages need to be installed on the host on which you are preparing to install the RPM. On Oracle
Linux these are:
rpmlint
rpmdevtools
Plus all their dependencies
It is not recommended to build RPMs as root. Often, the “rpmbuild” account is used, and that is the account used
in the following example.
If user rpmbuild does not exist, create it:
[root@server1 ~]# useradd -m -g users -G users rpmbuild
[root@server1 ~]# passwd rpmbuild
Changing password for user rpmbuild.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
Now log on as user rpmbuild to complete the process. When building RPMs, a certain directory structure is
assumed, such as a top directory ( $HOME/rpmbuild ) and certain subdirectories:
BUILD
BUILDROOT
RPMS
SOURCES
SPECS
SRPMS
The easiest way to create the required directories is to call the rpmdev-setuptree command in the user's home
directory. Thankfully this is all you need to do, as it will also create a small configuration file in ~/ .rpmmacros
pointing to the newly created directory tree.
The RPM build process is controlled via a specification or “SPEC” file. Documentation of SPEC files isn't too
great, especially since the format has changed over time. The SPEC file describes the steps you would normally follow
when compiling a piece of software from a source. The great benefit of the SPEC file is that it puts more structure
 
 
Search WWH ::




Custom Search