libstdc++-4.1.2 (32 bit) libstdc++-devel 4.1.2 make-3.81 sysstat-7.0.2 unixODBC-2.2.11 unixODBC-2.2.11 (32 bit) unixODBC-devel-2.2.11 unixODBC-devel-2.2.11 (32 bit)
1.12 Oracle数据库所需包 LDAP package If you did not perform a default Linux installation, you intend to use LDAP, and you want to use the scripts odisrvreg, oidca, or schemasync, then install the Korn shell RPM for your Linux distribution. Intel C/C++ Compiler 10.1 or later and the version of GNU C and C++ compilers listed previously for the distribution are supported for use with these products. Note: Intel C/C++ Compiler v10.1 can be used only with the standard template libraries in the supported gcc versions to build Oracle C++ Call Interface (OCCI) applications. Oracle XML Developer's Kit is supported with the same compilers as OCCI. Pluggable Authentication Modules for Linux (Linux PAM) Oracle ODBC Drivers Install the latest Linux PAM (Pluggable Authentication Modules for Linux) library for your Linux distribution. PAM provides greater flexibility for system administrators to choose how applications authenticate users. On Linux, external scheduler jobs require PAM. If you intend to use Open Database Connectivity (ODBC), then you should install the most recent ODBC Driver Manager for Linux. You should obtain the most current ODBC driver from your operating system vendor. You can read about ODBC at the following URL: http://www.unixodbc.org The ODBC RPMs are only needed if you plan on using ODBC. If you do not plan to use ODBC, then you do not need to install the ODBC RPMs for Oracle Clusterware, Oracle ASM, or Oracle RAC. To use ODBC, you must also install the following additional 32-bit ODBC RPMs, depending on your operating system: Oracle Linux 4, and Red Hat Enterprise Linux 4: unixODBC-2.2.11 (32 bit) or later
Pro*C/C++, Oracle Call Interface, Oracle C++ Call Interface, Oracle XML Developer's Kit (XDK)
unixODBC-devel-2.2.11 (32 bit) or later Asianux Server 3, Oracle Linux 5, and Red Hat Enterprise Linux 5: unixODBC-2.2.11 (32 bit) or later unixODBC-devel-2.2.11 (32 bit) or later Oracle JDBC/OCI Drivers You can use the following optional JDK version with the Oracle JDBC/OCI drivers; however, it is not required for the installation: ? ? JDK 6 Update 10 (Java SE Development Kit 1.6.0_21) JDK 1.5.0-24 (JDK 5.0) with the JNDI extension Note: By default, JDK 1.5 is installed with this release. Oracle Real Application Clusters For a cluster file system, use the following option: OCFS2 ? Version 1.2.9 or later To check your OCFS version, enter the following command: modinfo ocfs2 To check the version of OCFS2 tools and OCFS2 console, enter the following command: rpm -qa| grep ocfs2 Ensure that ocfs2console and ocfs2-tools are at least version 1.2.7 For information about OCFS2, refer to the following Web site: http://oss.oracle.com/projects/ocfs2/ For OCFS2 certification status, refer to the Certify page on My Oracle Support. http://oss.oracle.com/projects/ocfs2/ For OCFS2 certification status, refer to the Certify page on My Oracle Support.
6. 检查软件需求
1.13 确认Linux发行版
cat /proc/version
1.14 确认内核版本
uname -r
1.15 查询安装包
rpm -q binutils
rpm -q compat-libstdc++ rpm -1 elfutils rpm -q gcc rpm -q glibc rpm -q ksh rpm -q libaio rpm -q libgcc rpm -q libstdc++ rpm -q make rpm -q sysstat rpm -q unixODBC
1.16 查看OCFS是否安装
/sbin/modinfo ocfs2 如果没有则下载安装一个 http://oss.oracle.com/projects/ocfs2/
7. 校验和设置UDP和TCP内核参数
1.17 查看参数
cat /proc/sys/net/ipv4/ip_local_port_range
1.18 配置/etc/sysctl.conf
net.ipv4.ip_local_port_range = 9000 65500
1.19 重启网络
/etc/rc.d/init.d/network restart
8. NTP配置
1.20 可以使用群集同步时间服务代替NTP,当群集发NTP协议没有启用时,群集会自
动使用时间同步。停止时间同步服务步骤如下:
# /sbin/service ntpd stop # chkconfig ntpd off
# mv /etc/ntp.conf /etc/ntp.conf.org.
1.21 如果使用群集时间同步,执行如下命令检查
crsctl check ctss
1.22 如果使用NTP,那么增加-x参数,防止时间回退
? 编辑文件/etc/sysconfig/ntpd
# Drop root to id 'ntp:ntp' by default.
OPTIONS=\
# Set to 'yes' to sync hw clock after successful ntpdate
SYNC_HWCLOCK=no
# Additional options for ntpdate NTPDATE_OPTIONS=\ ? 重新启动 NTP service.
# /sbin/service ntp restart
1.23 配置NTP
1.23.1 linux硬件时间设置
? 默认情况下Linux运行使用的是CPU tick,不会获取BIOS里面存的系
统时间,在系统开机时会自动从BIOS里面获取。 ? 系统时间可以用date设置:date –set ―月/日/年时:分:秒‖ ? 硬件时间使用clock和hwclock设置:
hwclock –show 显示硬件时间
hwclock –set –date=―月/日/年时:分:秒‖ ? 将系统时间写入硬件时间
hwclock –systohc hwclock -w
? 将硬件时间写入系统时间
hwclock –hctosys hwclock –s
1.23.2 不同机器间时间同步,在配置NTP服务前首先使用ntpdate同步机器间的
时间,因为时间差异过大时NTP不会同步 ntpdate hostname
1.23.3 配置NTP
1.23.3.1 配置/etc/ntp.conf文件
配置权限
restrict default nomodify notrap noquery # 关闭所有的 NTP 要求封包 restrict 127.0.0.1 #这是允许本级查询
restrict 192.168.0.0 mask 255.255.255.0 nomodify
#在192.168.0.0/24网段内的服务器就可以通过这台NTP Server进行时间同步了
server 0.pool.ntp.org
server 1.pool.ntp.org server 2.pool.ntp.org
server 127.127.1.0 # 本地时间,在NTP服务端配置
fudge 127.127.1.0 stratum 10 # 本地时间,在NTP服务端配置 server 192.168.0.1 # 远程主机,在NTP客户端配置
fudge 192.168.0.1 stratum 10 # 远程主机,在NTP客户端配置 driftfile /var/lib/ntp/drift #用于保存漂移时间 1.23.3.2 启动NTP服务
service ntpd start 或 /etc/init.d/ntpd start
1.23.3.3 查看端口确认是否启动NTP
netstat –in | grep 123
1.23.3.4 查看NTP与上层主机同步情况:ntpstat
1.23.3.5 查看NTP与上层主机的关系:ntptrace –n 127.0.0.1
1.23.3.6 查看NTP与上层主机的状态ntpq -p
9. 安装cvuqdisk包
cvuqdisk用于CVU查找共享磁盘,在grid_home/grid目录下 1.24 查看是否安装cvuqdisk
rpm -qi cvuqdisk
1.25 如果安装,卸载cvuqdisk
rpm -e cvuqdisk
1.26 配置环境变量
CVUQDISK_GRP=oinstall; export CVUQDISK_GRP
1.27 安装包
rpm -iv package
10. 使能Intelligent Platform Management Interface (IPMI)
IPMI提供监视系统硬件和固件的接口
安装见Oracle Clusterware Administration and Deployment Guide
11. 在安装期间自动配置SSH
如果没有配置其它认证方式,在安装期间Oracle可以自动配置SSH
12. 配置Grid Infrastructure Software Owner用户环境
1.28 Grid Infrastructure Software Owner环境要求
设置software owner用户(grid,oracle)的umask为022,确保建立文件的权限是644。
设置software owner用户(grid,oracle)处理器权限为ulimit 设置DISPLAY环境变量
1.29 配置Grid Infrastructure Software Owner用户环境
1.29.1 设置主机显示权限
xhost + 主机名
1.29.2 登录安装目录确认默认shell
su – grid
eche $SHELL
1.29.3 编辑shell启动文件
Bash shell (bash): $ vi .bash_profile