首页 > 数据库 > Oracle > Installing Oracle10g RAC of Single Node with RAW Device on RHEL3 U3

Installing Oracle10g RAC of Single Node with RAW Device on RHEL3 U3

原创 Oracle 作者:wxhfriend 时间:2004-11-22 15:27:42 0 删除 编辑

Installing Oracle 10g ( Real Application Cluster with a Single Node, Using RAW Device simulate by DD command on RHEL3 U3


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 date (the response of answer MUST be yes)
    $ssh-keygen -t dsa
    $cd ~/.ssh
    $mv authorized_keys
    $ssh date

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
    #dd if=/dev/zero of=/opt/oracle/oradata//OCRDisk bs=1024 count=102400
    #dd if=/dev/zero of=/opt/oracle/oradata//VotingDisk bs=1024 count=20480
    #chown root.dba /opt/oracle/oradata//OCRDisk
    #chmod 640 /opt/oracle/oradata//OCRDisk
    #chown oracle.dba /opt/oracle/oradata//VotingDisk
    #chmod 644 /opt/oracle/oradata//VotingDisk
  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

PART II Installation Steps
9. install Cluster Ready Services (CRS)
    #su - oracle
    $cd /crs

10. install Oracle 10g software with RAC
    #su - oracle
    $cd /db

11. create Oracle 10g database with RAC
    #su - oracle
  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/, /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/, /etc/rc.d/rc5.d/, /etc/inittab
  /etc/rc.d/init.d/ is linked into /etc/rc.d/rc3.d/ & /etc/rc.d/rc5.d/, 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安装文档 (, zhoulm)

来自 “ ITPUB博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

上一篇: 小诗一首(转载)
请登录后发表评论 登录


  • 博文量
  • 访问量