Installation guide
Appendix B. Sample 39-oracle-multipath.conf
# multipath wants the devmaps presented as meaninglful device names
# so name them after their devmap name
SUBSYSTEM!="block", GOTO="end_mpath"
KERNEL!="dm-[0-9]*", ACTION=="add", PROGRAM=="/bin/bash -c '/sbin/lsmod | /bin/grep
^dm_multipath'", RUN+="/sbin/multipath -v0 %M:%m"
KERNEL!="dm-[0-9]*", GOTO="end_mpath"
PROGRAM!="/sbin/mpath_wait %M %m", GOTO="end_mpath"
ACTION=="add", RUN+="/sbin/dmsetup ls --target multipath --exec '/sbin/kpartx -a -p p' -j
%M -m %m"
PROGRAM=="/sbin/dmsetup ls --target multipath --exec /bin/basename -j %M -m %m",
RESULT=="?*", NAME="%k", SYMLINK="mpath/%c", GOTO="oracle_rules"
PROGRAM!="/bin/bash -c '/sbin/dmsetup info -c --noheadings -j %M -m %m | /bin/grep -q
.*:.*:.*:.*:.*:.*:.*:part[0-9]*-mpath-'", GOTO="end_mpath"
PROGRAM=="/sbin/dmsetup ls --target linear --exec /bin/basename -j %M -m %m", NAME="%k",
RESULT=="?*", SYMLINK="mpath/%c", GOTO="oracle_rules"
LABEL="oracle_rules"
RESULT=="asm[0-9]*p1", OWNER="12961", GROUP="oracle", MODE="dba", RUN+="/bin/chown
oracle:dba /dev/mapper/%c; /bin/chmod 660 /dev/mapper/%c"
OPTIONS="last_rule"
LABEL="end_mpath"
Appendix C. Sample oracle.spec file
# Custom Oracle base directory
%define oracle_base /u01/app/oracle/product
# Custom Oracle home name prefix
%define oracle_name_prefix RHT
# Oracle version and CPU release
%define oracle_version 10.2.0.4
%define oracle_cpu 2008.10
%define __os_install_post %{nil}
Name: oracle
Version: %{oracle_version}.%{oracle_cpu}
Release: 3%{?dist}
Summary: Oracle Database Server %{oracle_version} with CPU %{oracle_cpu}
Group: Applications/Database
License: Commercial
Source0: %{name}-%{oracle_version}-%{oracle_cpu}.tar.gz
NoSource: 0
AutoReqProv: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: oracle10g-platform
%description
Oracle Database Server %{oracle_version} with CPU %{oracle_cpu}.
%prep
#%setup
48 | www.redhat.com