一,基本环境配置

  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,解压安装包

 

最新文章

  1. 大于16MB的QSPI存放程序引起的ZYNQ重启风险
  2. centOs安装jdk1.7
  3. JAVA通过XPath解析XML性能比较(原创)
  4. SqlServer 杂记 不断补充中
  5. python 实现文件批量拷贝
  6. 【学习笔记】Spring JdbcTemplate (3-3-3)
  7. SystemTap Beginners Guide
  8. 使用通配符和泛型:完成父子类关系的List对象的类型匹配
  9. C++:如何正确的定义一个接口类
  10. Tomcat8 启动慢 Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [53,161] milliseconds
  11. vue 点击弹窗外框关闭弹框
  12. 【ZZ】详解哈希表的查找
  13. 第一个jquery程序
  14. RBF神经网络和BP神经网络的关系
  15. 160323、理解Java虚拟机体系结构
  16. NODE 开发 2-3年工作经验 掌握的相关知识
  17. C 六度空间理论的实现
  18. Centos&RHEL 6安装图形化
  19. [原创]SQL 把表中字段存储的逗号隔开内容转换成列表形式
  20. python 九九乘法表

热门文章

  1. IDEA的常用配置(Maven)一键导入及优化内存
  2. ASP.NET Core快速入门(第4章:ASP.NET Core HTTP介绍)--学习笔记
  3. MVC 创建Controllers 发生 EntityType has no key defined error
  4. select和checkbox回绑
  5. 最新整理的spring面试题从基础到高级,干货满满
  6. 开发技术--Python核心知识A
  7. Delphi2007 在Win10 下运行报错 Assertion failure
  8. opencv::GMM(高斯混合模型)
  9. SAP S4HANA 使用BP创建供应商报错 - You cannot create a vendor with grouping G001 - 对策
  10. DV型、OV型、EV型证书的主要区别