Database Reference
In-Depth Information
The response file in use is the same as previously described in the silent install section above, and the oraInst.loc
file likewise is the same as previously used in the Grid Infrastructure part of the chapter. The RPM can then be built
using the rpmbuild command as shown in the below output:
[rpmbuild@server1 SPECS]$ rpmbuild -ba --rebuild db.spec
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.xMaFZt
+ umask 022
+ cd /home/rpmbuild/rpmbuild/BUILD
+ rm -rf /home/rpmbuild/rpmbuild/BUILDROOT/Database-12.1.0.1-0.el6.x86_64
+ mkdir -p /home/rpmbuild/rpmbuild/BUILDROOT/Database-12.1.0.1-0.el6.x86_64/etc
+ mkdir -p /home/rpmbuild/rpmbuild/BUILDROOT/Database-12.1.0.1-0.el6.x86_64/opt/oracle
+ cp oraInst.loc /home/rpmbuild/rpmbuild/BUILDROOT/Database-12.1.0.1-0.el6.x86_64/etc/
+ cp db.rsp /home/rpmbuild/rpmbuild/BUILDROOT/Database-12.1.0.1-0.el6.x86_64/opt/oracle
+ /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
+ /usr/lib/rpm/brp-strip-static-archive
+ /usr/lib/rpm/brp-strip-comment-note
Processing files: Database-12.1.0.1-0.el6.x86_64
warning: File listed twice: /etc/oraInst.loc
Provides: config(Database) = 12.1.0.1-0.el6
Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/rpmbuild/rpmbuild/BUILDROOT/
Database-12.1.0.1-0.el6.x86_64
Wrote: /home/rpmbuild/rpmbuild/SRPMS/Database-12.1.0.1-0.el6.src.rpm
Wrote: /home/rpmbuild/rpmbuild/RPMS/x86_64/Database-12.1.0.1-0.el6.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.gkp4kz
+ umask 022
+ cd /home/rpmbuild/rpmbuild/BUILD
+ rm -rf /home/rpmbuild/rpmbuild/BUILDROOT/Database-12.1.0.1-0.el6.x86_64
+ exit 0
Once the RPM is built, it is simple to install using the YUM command, referencing the location of the RPM:
# yum install Database-12.1.0.1-0.el6.x86_64.rpm
After a little while the database software should be installed and ready to assume an operational role.
Summary
In this chapter you learned how to install Oracle Grid Infrastructure and the Oracle database. There are many good
reasons for installing Oracle Restart, including the benefit ASM gives over file systems such as ext3. The maintenance
overhead you might hear as a counterargument is not as high as in the 10g days. Regardless of the existence of Oracle
Restart you will use the same patch command since Oracle Restart and the database are patched together. So instead
of having to patch three Oracle homes, the opatch auto option will detect Oracle homes and automatically apply the
right patch to the home, as well as any custom scripts that made the application of recommended patches prior to
11.2 so labor intensive a true joy.
 
Search WWH ::




Custom Search