Installing Oracle 10g (10.1.0.3.0) Real Application Cluster with a Single Node, Using RAW Device simulate by DD command on RHEL3 U3
[@more@]Hardware Configuration: P-M 1.6G(2M L3), 1G DDR333 RAM, ATI Mobility Radeon 9600 64M DDR, 1G Ethernet Adapter, 14' SVGA 1400*1050, 5K80 60G HDD(8M cache)
Software Configuration: RedHat Enterprise Linux 3 Advanced Server, update 3 (kernel 2.4.21-20.EL)
-----------------------------------
PART I Pre-Installation Steps
-----------------------------------
1. check the hardwork requirement
512MB RAM (#grep MemTotal /proc/meminfo)
1GB or twice the size of RAM swap (#grep SwapTotal /proc/meminfo)
400MB the size of /tmp (#df -k /tmp)(if not, Set the TEMP and TMPDIR environment variables)
1.5GB disk space for Oracle software (#df -k
OS architecture (#grep "model name" /proc/cpuinfo)
2. check the software requirement
#rpm -q make gcc glibc compat-db compat-gcc compat-gcc-c++ compat-libstdc++ compat-libstdc++-devel setarch openmotif21
#rpm -ivh
3. create the groups and user
#/usr/sbin/groupadd -g 500 oinstall
#/usr/sbin/groupadd -g 501 dba
#/usr/sbin/useradd -u 500 -g oinstall -G dba -c "Oracle Administrator" oracle
#/usr/sbin/passwd oracle
4. configure the kernel parameters
#echo 250 32000 100 128 > /proc/sys/kernel/sem
#echo 2097152 > /proc/sys/kernel/shmall
#echo 2147483648 > /proc/sys/kernel/shmmax
#echo 4096 > /proc/sys/kernel/shmmni
#echo 65536 > /proc/sys/fs/file-max
#echo 1024 65000 > /proc/sys/net/ipv4/ip_local_port_range
#echo 262144 > /proc/sys/net/core/rmem_default
#echo 262144 > /proc/sys/net/core/rmem_max
#echo 262144 > /proc/sys/net/core/wmem_default
#echo 262144 > /proc/sys/net/core/wmem_max
or open /etc/sysctl.conf, add or edit the following lines:
kernel.sem = 250 32000 100 128
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
#/sbin/sysctl -p
#/sbin/sysctl -a
5. configure the "hangcheck-timer" Kernel Module
#/bin/find /lib/modules -name "hangcheck-timer.o"
open /etc/modules.conf, add or edit the following line:
options hangcheck-timer hangcheck_tick=30 hangcheck_margin=180
or, run the following command:
#echo "options hangcheck-timer hangcheck_tick=30 hangcheck_margin=180" >> /etc/modules.conf
6. configure authentication for oracle ssh login
#su - oracle
$ssh
$ssh-keygen -t dsa
$cd ~/.ssh
$mv id_dsa.pub authorized_keys
$ssh
$exit
#
7. create the required directory and set the oracle environment
#chmod 777 /opt
#su - oracle
$mkdir -p /opt/oracle/crs
$mkdir -p /opt/oracle/oradata/
$mkdir -p /opt/oracle/product/10.1.0
$exit
#dd if=/dev/zero of=/opt/oracle/oradata/
#dd if=/dev/zero of=/opt/oracle/oradata/
#chown root.dba /opt/oracle/oradata/
#chmod 640 /opt/oracle/oradata/
#chown oracle.dba /opt/oracle/oradata/
#chmod 644 /opt/oracle/oradata/
NOTE: 1) the storage size for the Oracle Cluster Register (OCR) should be at least 100MB, MUST be ownered by root, be in the dba group, and have permissions set to 640.
2) the storage size for the Voting Disk should be at least 20MB, MUST be ownered by oracle, be in the dba group, and have permissions set to 644.
open /home/oracle/.bash_profile, set the oracle environment
#su - oracle
$vi .bash_profile
#Set the Oracle Environment
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.1.0
export CRS_HOME=$ORACLE_BASE/crs
export ORACLE_SID=rac1
#Set the Shell Environment
export PATH=$PATH:$CRS_HOME/bin:$ORACLE_HOME/bin
$exit
#
-----------------------------------
PART II Installation Steps
-----------------------------------
9. install Cluster Ready Services (CRS)
#su - oracle
$cd
$./runInstaller
10. install Oracle 10g software with RAC
#su - oracle
$cd
$./runInstaller
11. create Oracle 10g database with RAC
#su - oracle
$dbca
NOTE: 1) global database name can be up to 30 characters in length, but SID prefix contain no more than 5 characters
2) must be set the value of initial parammeter remote_login_passwordfile to none (SINGLE NODE ONLY)
-----------------------------------
PART III Post-Installation Steps
-----------------------------------
12. /etc/rc.d/init.d/init.crs, /etc/rc.d/init.d/init.crsd, /etc/rc.d/init.d/init.cssd, /etc/rc.d/init.d/init.evmd
???? (come on soon)
13. /etc/rc.d/rc3.d/S96init.crs, /etc/rc.d/rc5.d/S96init.crs, /etc/inittab
/etc/rc.d/init.d/init.crs is linked into /etc/rc.d/rc3.d/S96init.crs & /etc/rc.d/rc5.d/S96init.crs, and in the /etc/inittab file:
h1:35:respawn:/etc/init.d/init.evmd run >/dev/null 2>&1 h2:35:respawn:/etc/init.d/init.cssd fatal >/dev/null 2>&1 h3:35:respawn:/etc/init.d/init.crsd run >/dev/null 2>&1
14. Transparent Application Failover (TAF), tnsnames.ora & listener.ora
-----------------------------------
PART IV References
-----------------------------------
15. Oracle Database Installation Guide for UNIX (B10811-04)
16. Oracle Real Application Cluster Installation and Configuration Guide (B10766-05)
17. Installing Oracle Database 10g with RAC on RHEL 3 (Winner Puschitz)
18. Oracle 9i RAC for single linux安装文档 (ChinaUnix.net, zhoulm)
19. metalink.oracle.com
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/72654/viewspace-781613/ ,如需转载,请注明出处,否则将追究法律责任。