Step-By-Step Installation of 9.2.0.5 RAC on Linux
1. Configuring the Clusters Hardware. 2
1.1 Minimal Hardware list / System Requirements. 2
1.2 Installing the Shared Disk Subsystem.. 2
1.3 Configuring the Cluster Interconnect and Public Network Hardware. 2
2.1 UNIX Pre-installation tasks. 3
2.2 Configuring the Shared Disks. 7
2.3 Run the Oracle Universal Installer to install the 9.2.0.4 ORACM (Oracle Cluster Manager) 7
2.4 Configure the hangcheck-timer 8
2.5 Install Version 10.1.0.2 of the Oracle Universal Installer 10
2.7 Modify the ORACM configuration files to utilize the hangcheck-timer. 12
2.8 Start the ORACM (Oracle Cluster Manager) 13
3.2 Patch the RAC Installation to 9.2.0.5. 14
3.3 Start the GSD (Global Service Daemon) 15
3.4 Create a RAC Database using the Oracle Database Configuration Assistant 15
4.Administering Real Application Clusters Instances. 17
Please check the RAC/Linux certification matrix for information on currently supported hardware/software.
· Linux kernel version would be 2.4.21-4.EL (uname –r)
· Upgrade kernel
$ rpm -ivh kernel-2.4.9-e.48.i686.rpm
$ rpm -ivh kernel-smp-2.4.9-e.48.i686.rpm
$ rpm -Uvh kernel-headers-2.4.9-e.48.i386.rpm(直接upgrade 舊的不存在)
$ vi /etc/lilo.conf
image=/boot/vmlinuz-2.4.9-e.48
label=linux
initrd=/boot/initrd-2.4.9-e.48.img
read-only
root=/dev/sda1
lilo –v –v –v
shutdown –r now
/boot/grub/menu.lst
default=1
· Glibc Version Number glibc 2.3.2-95.3 (rpm –qa |grep glibc)
· Required OS Components (第二片CD)
· $rpm –qa |grep compat
compat-glibc-6.2-2.1.3.2
compat-egcs-objc-6.2-1.1.2.16
compat-libstdc++-6.2-2.9.0.16
compat-egcs-6.2-1.1.2.16
compat-egcs-g77-6.2-1.1.2.16
compat-libs-6.2-3
compat-egcs-c++-6.2-1.1.2.16
openmotif-2.1.30-11
$ rpm -q gcc cpp compat-libstdc++ glibc-devel kernel-headers binutils vnc-server
$ rpm –ivh unzip-5.50-2 (第一片)
$rpm –q rsh make
rsh-0.17-5
make-3.79.1-8
This is highly dependent on the subsystem you have chosen. Please refer to your hardware documentation for installation and configuration instructions on Linux. Additional drivers and patches might be required. In this article we assume that the shared disk subsystem is correctly installed and that the shared disks are visible to all nodes in the cluster.
[oracle@opcbrh1 oracle]$ more /etc/hosts
192.168.0.221 uwsapdb1.united.com.cn
192.168.0.222 uwsapdb2.united.com.cn
192.168.0.223 uwsapap1.united.com.cn
192.168.0.224 uwsapap2.united.com.cn
192.168.0.227 uwsapweb.united.com.cn
192.168.0.228 uwsapdb.united.com.cn
10.0.0.1 int-uwsapdb1.united.com.cn
10.0.0.2 int-uwsapdb2.united.com.cn
Use your favorite tool to configure these adapters. Make sure your public network is the primary (eth0).
/etc/sysctl.conf
kernel.core_uses_pid = 1
net.core.rmem_default= 262144
net.core.rmem_max= 262144
net.core.wmem_default= 262144
net.core.wmem_max= 262144
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
kernel.sysrq = 1
kernel.domainname = wintek.com.tw
kernel.sem = 250 32000 100 150
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.shmseg = 4096
kernel.shmall = 3279547
fs.file-max = 327679
kernel.msgmni = 2878
kernel.msgmnb = 30000
net.ipv4.ip_local_port_range = 1024 65536
/etc/security/limits.conf
oracle soft nofile 4096
oracle hard nofile 63536
oracle soft nproc 2047
oracle hard nproc 16384
$shutdown –r now
On Linux, the cluster software required to run Real Application Clusters is included in the Oracle distribution.
The Oracle Cluster Manager (ORACM) installation process includes eight major tasks.
These steps need to be performed on ALL nodes.
$groupadd dba
$useradd -g dba oracle
$passwd oracle
$vi /etc/xinetd.d/rsh
disable = no
$ /etc/rc.d/init.d/xinetd restart
$vi .rhosts (oracle user)
uwsapdb1
int-uwsapdb1
int-uwsapdb2
uwsapdb2
$vi /etc/securetty
rsh
uwsapdb1
$ touch /home/oracle/test
$ rcp /home/oracle/test sapdbrac2:/home/oracle/test1
$ rcp /home/oracle/test int-sapdbrac2:/home/oracle/test2
uwsapdb2
$ touch /opt/test
$ rcp /home/oracle/test sapdbrac1:/home/oracle/test1
$ rcp /home/oracle/test int-sapdbrac1:/home/oracle/test2
$ ls /opt/test*
/home/oracle/test /home/oracle/test1 /home/oracle/test2
uwsapdb1:
$ ls /home/oracle/test*
/home/oracle/test /home/oracle/test1 /home/oracle/test2
Establish Oracle environment variables: Set the following Oracle environment variables:
export CRS_HOME=/opt/oracle/product/9.2.0/oracm
export ORACLE_BASE=/opt//oracle
export ORACLE_HOME=/opt/oracle/product/9.2.0
export ORACLE_SID=sapprod
export ORACLE_TERM=xterm
export NLS_LANG=AMERICAN;
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
export THREADS_FLAG=native
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/usr/bin:/opt/oracle/OPatch:/sbin
export PATH
unset USERNAME
ulimit -n 63536
ulimit -u 16384
cd $ORACLE_HOME
It is best to save these in a .login or .profile file so that you do not have to set the environment every time you log in.
$ mkdir /var/opt/oracle
$ chown oracle.dba /var/opt/oracle
$ umask 022
Note: There is a verification script InstallPrep.sh available which may be downloaded and run prior to the installation of Oracle Real Application Clusters. This script verifies that the system is configured correctly according to the Installation Guide. The output of the script will report any further tasks that need to be performed before successfully installing Oracle 9.x DataServer (RDBMS). This script performs the following verifications:-
. ./InstallPrep.sh You are currently logged on as oracle /tmp test passed Note: If you get an error like this: InstallPrep.sh: line 45: syntax error near unexpected token `fi' or ./InstallPrep.sh: Command not found. Then you need to copy the script into a text file (it will not run if the file is in binary format). |
For more information on setting up OCFS for RAC on Linux, see the following MetaLink Note:
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29987/viewspace-51663/ ,如需转载,请注明出处,否则将追究法律责任。