以前安装总结的,现把它贴出来,虽然10g现在慢慢越少了,但也有不少生产库跑10g的。

1.
vi /etc/hosts

10.168.39.243    orcldb1   
10.168.39.245   orcldb2   
192.168.39.243  orcldb1-priv       
192.168.39.245  orcldb2-priv      
10.168.39.242   orcldb1-vip        
10.168.39.244   orcldb2-vip

2.
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba -d /oracle oracle
useradd -g oinstall -G dba oracle
passwd oracle
id oracle

mkdir -p /oracle/product/10.2.0/crs_1
mkdir -p /oracle/product/10.2.0/db_1
mkdir -p /oraInventory
chown -R oracle:oinstall /oracle
chown -R oracle:oinstall /oraInventory
chmod -R 775 /oracle
chmod -R 775 /oraInventory

su - oracle
vi.bash_prifole
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK; export NLS_LANG
ORA_NLS33=$ORACLE_HOME/common/nls/admin/data; export ORA_NLS33
ORACLE_SID=orcl1; export ORACLE_SID
CRS_HOME=/oracle/product/10.2.0/crs_1; export CRS_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$CRS_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib; export LD_LIBRARY_PATH
export TNS_NAMES=$ORACLE_HOME/network/admin
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib; export CLASSPATH

stty erase ^H

su - root
vi /etc/sysctl.conf

kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144

sysctl -p

vi /etc/security/limits.conf

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

vi /etc/pam.d/login
session required /lib/security/pam_limits.so

vi /etc/rc.local
modprobe hangcheck-timer hangcheck-tick=30 hangcheck_margin=180

crontab -e
08 01  * * * /usr/sbin/ntpdate -u 10.168.192.10
08 13  * * * /usr/sbin/ntpdate -u 10.168.192.33

安装RPM包

RAW绑定
节点1:
Disk /dev/sdb: 107.3 GB, 107374182400 byte
Disk /dev/sdc: 1073 MB, 1073741824 bytes
Disk /dev/sdd: 1073 MB, 1073741824 bytes
Disk /dev/sde: 1073 MB, 1073741824 bytes
Disk /dev/sdf: 1073 MB, 1073741824 bytes
Disk /dev/sdg: 1073 MB, 1073741824 bytes
Disk /dev/sdh: 429.4 GB, 429496729600 bytes
Disk /dev/sdi: 429.4 GB, 429496729600 bytes

节点2:
Disk /dev/sdb: 107.3 GB, 107374182400 bytes
Disk /dev/sdc: 1073 MB, 1073741824 bytes
Disk /dev/sdd: 1073 MB, 1073741824 bytes
Disk /dev/sde: 1073 MB, 1073741824 bytes
Disk /dev/sdf: 1073 MB, 1073741824 bytes
Disk /dev/sdg: 1073 MB, 1073741824 bytes
Disk /dev/sdh: 429.4 GB, 429496729600 bytes
Disk /dev/sdi: 429.4 GB, 429496729600 bytes

/etc/sysconfig/rawdevices

/dev/raw/raw1 /dev/sdc
/dev/raw/raw2 /dev/sdd
/dev/raw/raw3 /dev/sde
/dev/raw/raw4 /dev/sdf
/dev/raw/raw5 /dev/sdg
/dev/raw/raw6 /dev/sdh
/dev/raw/raw7 /dev/sdi

UDEV
vi /etc/udev/rules.d/60-raw.rules
KERNEL=="raw[1-2]",OWNER="root",GROUP="oinstall",MODE="640"
KERNEL=="raw[3-9]",OWNER="oracle",GROUP="oinstall",MODE="660"

chkconfig --list rawdevices
service rawdevices restart

ll /dev/raw看权限改了没

互相ping PIP和私网IP

两个节点
su - oracle
mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa     ##########输入与oracle不同的口令或者空
ssh-keygen -t dsa            ##########输入与oracle不同的口令或者空

节点1
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
ssh orcldb2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh orcldb2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
scp ~/.ssh/authorized_keys orcldb2:~/.ssh/authorized_keys

两机相互执行,看看是否还需要输入密码
ssh orcldb1 date
ssh orcldb2 date
ssh orcldb1-priv date
ssh orcldb2-priv date
住:创建oracle用户尽量别-d 指定路径。要不权限问题ssh怎么都不通。

切换至node2 执行
ssh orcldb1 date
ssh orcldb2 date
ssh orcldb1-priv date
ssh orcldb2-priv date

安装集群软件
./runInstaller -ignoreSysPrereqs
接着图形化界面略过,到最后执行root.sh之前安装补丁p4679769,linux 下使用多路径时,需要安装该补丁。
clsfmt.bin这个文件覆盖到两个节点$CRS_HOME/bin下
执行./clsfmt ocr /dev/raw/raw1 测试
具体也可参考http://blog.csdn.net/tianlesoft/article/details/6039210

执行root.sh之前两个节点修改vipca和srvctl
if [ "$arch" = "i686" -o "$arch" = "ia64" ]
then
LD_ASSUME_KERNEL=2.4.19
export LD_ASSUME_KERNEL
fi
#End workaround
在fi 后新添加一行:
unset LD_ASSUME_KERNEL

找到如下内容:
LD_ASSUME_KERNEL=2.4.19
export LD_ASSUME_KERNEL
同样在其后新增加一行:
unset LD_ASSUME_KERNEL

CSS is active on all nodes.
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
Error 0(Native: listNetInterfaces:[3])
  [Error 0(Native: listNetInterfaces:[3])]
 
./oifcfg setif -global eth2/10.168.39.224:public
./oifcfg setif -global eth3/192.168.39.0:cluster_interconnect
./oifcfg getif

执行vipca

Linux5.5安装10g rac的更多相关文章

  1. vbox下Oracle Enterprise liunx5.4虚拟机安装10G RAC实验(四)

    接第3篇 http://www.cnblogs.com/myrunning/p/4003527.html 5.安装配置数据库 5.1安装数据库软件 5.2配置监听 5.3创建ASM磁盘 5.4创建服务 ...

  2. vbox下Oracle Enterprise liunx5.4虚拟机安装10G RAC实验(三)

    接第二篇 http://www.cnblogs.com/myrunning/p/3996183.html 4.安装集群软件 4.1验证安装环境 经过检查发现以下3个包检查未通过: compat-gcc ...

  3. vbox下Oracle Enterprise liunx5.4虚拟机安装10G RAC实验(二)

    接第一篇 http://www.cnblogs.com/myrunning/p/3993824.html 3.集群方面的配置 3.1配置hosts文件 此配置需要在两个节点都要配置. 3.2配置 Ha ...

  4. vbox下Oracle Enterprise liunx5.4虚拟机安装10G RAC实验(一)

    1.配置第一个虚拟机 1.1 安装后的登录界面 1.2 第1台机器(单数据配置方面) 1.2.1 验证安装包 1.2.2 修改内核参数 1.2.3添加安全限制 1.2.4关闭防火墙 1.2.5添加用户 ...

  5. 安装Oracle 10g RAC是否需要安装HACMP

    实际上无论在哪个操作系统(AIX,HP-UX,Solaris,Linux)上安装Oracle10g RAC都不再需要Vendor Clusterware(IBM的HACMP,HP的Service Gu ...

  6. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:4.安装Oracle RAC FAQ-4.1.系统界面报错Gnome

    1.错误信息:登录系统后,屏幕弹出几个错误对话框,无菜单.无按钮 GConf error: Failed to contact configuration server; some possible ...

  7. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:4.安装Oracle RAC FAQ-4.6.重新配置与缷载11R2 Grid Infrastructure

    1.[root@linuxrac1 ~]# /u01/app/oraInventory/orainstRoot.sh 2.[root@linuxrac2 ~]# /u01/app/oraInvento ...

  8. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:4.安装Oracle RAC FAQ-4.5.安装Grid,创建ASM磁盘组空间不足

    因之前分区时,分区的Last cylinder的值选了“1”,导致创建磁盘组空间不足.解决办法是先删除分区,重新创建分区并删除ASM磁盘,然后重建ASM磁盘 1. 先删除分区,重新创建分区: 1)查询 ...

  9. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:4.安装Oracle RAC FAQ-4.4.无法图形化安装Grid Infrastructure

    无法图形化安装: [grid@linuxrac1 grid]$ ./runInstaller Starting Oracle Universal Installer... Checking Temp ...

随机推荐

  1. ScriptableObject本地序列化后重启Unity后报The associated script can not be loaded.Please fix any compile errors and assign a valid script的坑

    踩坑 做编辑器一些设置序列化存在本地的时候,继承自ScriptableObject的类通过 创建的asset文件. 在重启Unity后查看这个asset发现上面的所有序列化属性丢失,报的错就是 在不存 ...

  2. PAT (Advanced Level) Practise:1027. Colors in Mars

    [题目链接] People in Mars represent the colors in their computers in a similar way as the Earth people. ...

  3. BeanUtils.copyProperties和PropertyUtils.copyProperties的使用区别

    http://caoyaojun1988-163-com.iteye.com/blog/1871316

  4. 安装系统时出现“windows无法安装到这个磁盘。选中的的磁盘采用GPT分区形式”

    安装系统到提示你不能安装在那个磁盘的一步,然后按住shift+F10呼出diskpart命令符,然后依次输入 diskpart list disk select disk 0 clean conver ...

  5. Binary Tree Preorder Traversal

    Given a binary tree, return the preorder traversal of its nodes' values. For example:Given binary tr ...

  6. Python实例1

    1.有1.2.3.4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 错解: 正解: 源码: #!/usr/bin/python for i in range(1,5): for j in ...

  7. HDU 5936 Difference

    题意: 有一个函数f(y, k) = y的每个十进制位上的数字的k次幂之和 给x, k 求 有多少个y满足 x = f(y, k) - y 思路: (据说这叫中途相遇法?) 由于 x >= 0 ...

  8. Torch 网络层 参数的初始化问题

    Torch 网络层 参数的初始化问题 参考链接: https://github.com/Kaixhin/nninit 从 Torch 中自带的包,可以看到:https://github.com/tor ...

  9. easycwmp的交叉编译

    原创作品,转载请注明出处 copyright:weishusheng   2015.3.18 email:642613208@qq.com 平台: Linux version 2.6.32-279.e ...

  10. #mysql:command not found

    一.问题描述 1.在linux中已经安装好mysql,通过#ps -ef |grep mysql 能显示mysql已经启动,但去进入mysql命令页面出现如下问题: [root@root ~]# my ...