VM 6+linux4.4+裸设备+ORACLE10G RAC 安装

原创 未完
----安装虚拟机
1、安装虚拟机VMware Workstation 6
2、安装操作系统LINUX AS 4.4
3、添加2块网卡,我使用的时HOSTNONLY方式
4、添加共享硬盘,我加入了一个盘为40G,一个30G,然后再两个虚拟机的vmdk文件种加入参数
disk.locking = "FALSE"
scsi1.sharedBus = "virtual"
----配置系统
5、登陆操作系统建立用户
# groupadd -g 500 oinstall
# groupadd -g 501 dba
# useradd -u 500 -d /home/oracle -g "oinstall"  –G "dba" -m  -s /bin/bash oracle
6、配置bash_profile
export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db
export ORA_CRS_HOME=$ORACLE_BASE/product/10.2.0/crs
export PATH=$PATH:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/bin
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export ORACLE_SID=pptest1
7、修改SYSCTL.COF
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename.
sysctl.conf 参数
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
kernel.shmall = 209715
kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmnikernel.sem = 250 32000 100 128
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
8 配置HOSTS
127.0.0.1               localhost.localdomain localhost
192.168.0.111           pptest1
192.168.0.112           pptest2
10.10.0.1               pt1_priv
10.10.0.2               pt2_priv
192.168.0.121           pt1_vip
192.168.0.122           pt2_vip
----配置CRS软件---
9 配置SSH信任
[ex0044]$ /usr/bin/ssh-keygen -t dsa
[ex0045]$ /usr/bin/ssh-keygen -t dsa
[ex0044]$ ssh ex0044 "cat ~/.ssh/id_dsa.pub" >> \ ~/.ssh/authorized_keys
[ex0044]$ ssh ex0045 "cat ~/.ssh/id_dsa.pub" >> \ ~/.ssh/authorized_keys
ex0044]$ scp ~/.ssh/authorized_keys ex0045:/home/oracle/.ssh/
10 配置裸设备
分区
fdisk
     RAW1 1G system /dev/sdb1
     RAW2 1G SYSAUX /dev/sdb2
     RAW5 1G UNDO1 /dev/sdb5
     RAW6 1G UNDO2 /dev/sdb6
     RAW7 500M EXAMPLE /dev/sdb7
     RAW8 3G USER /dev/sdb8
     RAW9 150M LOG11 /dev/sdb9
     RAW10 150M LOG12 /dev/sdb10
     RAW11 150M LOG13 /dev/sdb11
     RAW12 150M LOG21 /dev/sdb12
     RAW13 150M LOG22 /dev/sdb13
     RAW14 150M LOG23 /dev/sdb14
     RAW15 150M CONTROLFILE1 /dev/sdb15
     RAW24 150M CONTROLFILE2 /dev/sdc12
     RAW17 150M CONTROLFILE3 /dev/sdc5
     RAW18 500M TEMP /dev/sdc6
     RAW19 5M   SPFILE /dev/sdc7
     RAW20 5M   PASSWORD FILE /dev/sdc8
     RAW21 200M OCR /dev/sdc9
     RAW22 50M  VOTING DISK /dev/sdc10
     RAW23 5g   PP    /DEV/sdc11
编辑 /etc/sysconfig/rawdevices 加入绑定信息
/dev/raw/raw1 /dev/sda1
重启RAW服务
# /sbin/service rawdevices restart
设置权限
# chown root:dba /dev/raw/rawn
# chmod 640 /dev/raw/rawn
# chown oracle:oinstall /dev/dev/raw1
# chmod 660 /dev/raw/rawn
11、配置 hangcheck-timer
# vi /etc/rc.local
/sbin/insmod hangcheck-timer hangcheck_tick=30\
上一篇:ASP.NET Core配置环境变量和启动设置


下一篇:虚拟机安装oracle RAC