一,基本环境配置

  01,hosts

 cat /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
:: localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.0.240 SHLPDBWX01
192.168.0.241 SHLPDBWX02
172.168.0.240 SHLPDBWX01-priv
172.168.0.241 SHLPDBWX02-priv
192.168.0.243 SHLPDBWX01-vip
192.168.0.244 SHLPDBWX02-vip
192.168.0.242 dgwxpdb dgwxpdb.localdomain

  02,用户环境配置

groupadd –g  oinstall
useradd oracle –u –g oinstall echo |passwd --stdin oracle

  03,配置目录

cat .bash_profile

PATH=$PATH:$HOME/bin
ORACLE_BASE=/u01/app/oracle
export ORA_CRS_HOME=$ORACLE_BASE/product/10.2./crs
export ORACLE_HOME=$ORACLE_BASE/product/10.2./db_1
export ORACLE_SID=WXPDB01
export PATH=$PATH:$ORA_CRS_HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:.
alias sqlplus='rlwrap sqlplus' # oracle sqlpls
alias rman='rlwrap rman' # oracle rman
alias ggsci='rlwrap ggsci' # oracle goldengate
stty erase ^h
export PATH 创建目录授予权限 mkdir /u01/app/oracle/product/10.2./db_1 -p
chown -R oracle.oinstall /u01/
chmod -R /u01/

  04,磁盘配置

见https://www.cnblogs.com/kingle-study/p/10972214.html

  05,配置参数

vi /etc/sysctl.conf

kernel.core_uses_pid =
fs.file-max =
fs.aio-max-nr =
net.ipv4.ip_local_port_range =
net.core.rmem_default =
net.core.rmem_max =
net.core.wmem_default =
net.core.wmem_max =
kernel.shmmni =
kernel.sem =
net.ipv4.tcp_tw_reuse =
net.ipv4.tcp_tw_recycle =
vi /etc/security/limits.conf
oracle soft nproc
oracle hard nproc
oracle soft nofile
oracle hard nofile

  06,安装包检测

检测
rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils \
compat-libstdc++ \
elfutils-libelf-devel \
elfutils-libelf-devel-static \
gcc \
gcc-c++ \
glibc \
glibc-common \
glibc-devel \
glibc-headers \
kernel-headers \
ksh \
libaio \
libaio-devel \
libgcc \
libgomp \
libstdc++ \
libstdc++-devel \
make \
sysstat \
unixODBC \
unixODBC-devel \
libXp 缺少的对应安装 10C的包可能有的需要i686
通过RPm包安装

  07,配置互信

[oracle@SHLPDBWX01 ~]$ mkdir ~/.ssh
mkdir: cannot create directory `/home/oracle/.ssh': File exists
[oracle@SHLPDBWX01 ~]$ chmod 700 ~/.ssh
[oracle@SHLPDBWX01 ~]$ cd .ssh/ 下面这命令双截点操作(就下面一条)
[oracle@SHLPDBWX01 .ssh]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_rsa.
Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
b1:17:b3:dd:7b:43:8b:8b:7c:06:22:58:c0:29:aa:0a oracle@SHLPDBWX01
The key's randomart image is:
+--[ RSA ]----+
| . . |
| . + |
| . . . . o |
| . . o = . |
|. o S o . .. |
|E . . o . o..|
|o . . ...o.|
|. . .o...|
| oo. |
+-----------------+
[oracle@SHLPDBWX01 .ssh]$ ssh SHLPDBWX01 cat /home/oracle/.ssh/id_rsa.pub >> authorized_keys
The authenticity of host 'shlpdbwx01 (192.168.0.240)' can't be established.
RSA key fingerprint is 11:46:62:ee:23:09:da:62:5f:ae:92:ee:19:6e:0c:4a.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'shlpdbwx01,192.168.0.240' (RSA) to the list of known hosts.
oracle@shlpdbwx01's password:
[oracle@SHLPDBWX01 .ssh]$ ssh SHLPDBWX02 cat /home/oracle/.ssh/id_rsa.pub >> authorized_keys
The authenticity of host 'shlpdbwx02 (192.168.0.241)' can't be established.
RSA key fingerprint is 11:46:62:ee:23:09:da:62:5f:ae:92:ee:19:6e:0c:4a.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'shlpdbwx02,192.168.0.241' (RSA) to the list of known hosts.
oracle@shlpdbwx02's password:
[oracle@SHLPDBWX01 .ssh]$ chmod 600 ~/.ssh/authorized_keys
[oracle@SHLPDBWX01 .ssh]$ scp authorized_key SHLPDBWX02:/home/oracle/.ssh/
oracle@shlpdbwx02's password:
authorized_key: No such file or directory
[oracle@SHLPDBWX01 .ssh]$ scp authorized_keys SHLPDBWX02:/home/oracle/.ssh/
oracle@shlpdbwx02's password:
authorized_keys % .8KB/s :
[oracle@SHLPDBWX01 .ssh]$ ssh SHLPDBWX01 date
Wed Jun :: CST
[oracle@SHLPDBWX01 .ssh]$ ssh SHLPDBWX02 date
Wed Jun :: CST

二,集群安装

  01,解压安装包

 

Oracle 10G RAC集群安装的更多相关文章

  1. Oracle 12cR1 RAC集群安装(一)--环境准备

    基本环境 操作系统版本 RedHat6.7 数据库版本 12.1.0.2 数据库名称 testdb 数据库实例 testdb1.testdb2 (一)安装服务器硬件要求 配置项目 参数要求 网卡 每台 ...

  2. Oracle 12cR1 RAC集群安装(二)--使用图形界面安装

    Oracle 12cR1 RAC集群安装文档:Oracle 12cR1 RAC集群安装(一)--环境准备Oracle 12cR1 RAC集群安装(二)--使用图形界面安装Oracle 12cR1 RA ...

  3. 转载:【Oracle 集群】RAC知识图文详细教程(七)--Oracle 11G RAC集群安装

    文章导航 集群概念介绍(一) ORACLE集群概念和原理(二) RAC 工作原理和相关组件(三) 缓存融合技术(四) RAC 特殊问题和实战经验(五) ORACLE 11 G版本2 RAC在LINUX ...

  4. 案例:Oracle 10g RAC 集群无法启动

    环境:RHEL 5.7 + Oracle 10.2.0.5 RAC 很多年前的一套测试环境,今天发现集群无法启动.手工尝试启动crs,集群日志也无任何输出.进一步检查集群配置: [oracle@rac ...

  5. RAC集群安装校验输出信息

    RAC集群安装校验输出信息 作者:Eric 微信:loveoracle11g [grid@rac-node1 grid]$ [grid@rac-node1 grid]$ ./runcluvfy.sh ...

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

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

  7. Oracle 11gR2 RAC集群服务启动与关闭总结

    引言:这写篇文章的出处是因为我的一名学生最近在公司搭建RAC集群,但对其启动与关闭的顺序和原理不是特别清晰,我在教学工作中也发现了很多学员对RAC知识了解甚少,因此我在这里就把RAC里面涉及到的最常用 ...

  8. Oracle RAC集群安装之:Grid软件安装过程蓝屏

    前几天在安装一套RAC服务器的过程中,遇到了蓝屏事件,折腾了蛮久(在排查是否存在硬件问题上花费了相当多一部分时间),整个过程大概说明如下: 1.两台华为的PC SERVER,操作系统为WIN SERV ...

  9. oracle 11g rac集群重启顺序以及常用管理命令简介

    转至:https://www.cnblogs.com/yj411511/p/12459533.html 目录 1.关闭数据库 1.1 查看数据库实例状态 1.2 停止所有节点上实例 1.3 确认数据库 ...

随机推荐

  1. hdu-5573 Binary Tree

    The Old Frog King lives on the root of an infinite tree. According to the law, each node should conn ...

  2. RestController 能不能通过配置关闭

    https://stackoverflow.com/questions/29958231/can-a-spring-boot-restcontroller-be-enabled-disabled-us ...

  3. sc命令创建和删除服务

    安装服务 sc create 服务名 binPath= "C:\Users\Administrator\Desktop\win32srvDemo\win32srvdemo\Debug\win ...

  4. IDEA设置方法参数列表类型自动提示

    默认情况下,IDEA的提示不够完全,可以通过以下设置,将提示功能打开的更完善. 效果如下面俩图所示

  5. 如何当上Leader和六千个bug的系统

    在昨天的读书会上我分享了我是如何当上leader以及当上leader之后的体会.然后今天Sophie总结了我的发言,大家对此有些反馈.我根据大家的反馈写了这篇文章,主要针对几点: 大家如何当上lead ...

  6. CentOS6 + MapServer7.4编译

    先升级gcc 1.python3.6 ./configure --enable-shared --enable-profiling make –j 20 make install 2.proj-4.9 ...

  7. C++调用linux命令并获取返回值

    qt中封装了相关的方法, 但是因为我的命令中用到了管道命令, 出现了非预期结果, 所有改用了linux系统原生的方法. 下边是一个判断某进程是否存在的例子. 当前存在一个问题,当linux返回多行时, ...

  8. pytest-Mark数据驱动

    数据驱动 import pytest @pytest.mark.parametrize(("a", "b", "expected"), [ ...

  9. 用maven对ssm进行整合

    网上有很多ssm整合的教程,这里给像我这样的初学的新手提供一个整合方法,同时也记录一下自己的学习进度. 同时推荐观看相关视频  https://www.bilibili.com/video/av536 ...

  10. [b0014] HDFS 常用JAVA 操作实战

    目的: 学习用java进行的常用hdfs操作 参考: [b0002] Hadoop HDFS cmd常用命令练手 环境: hadoop2.6.4 win7 下的eclipse环境调试已经配置好,参考前 ...