oracle 12c grid db如何安装的的checklist

55次阅读
没有评论

共计 3122 个字符,预计需要花费 8 分钟才能阅读完成。

这篇文章给大家分享的是有关 oracle 12c grid db 如何安装的的 checklist 的内容。丸趣 TV 小编觉得挺实用的,因此分享给大家做个参考,一起跟随丸趣 TV 小编过来看看吧。

oracle 12c  安装  checklist
iptables NetworkManager selinux
service iptables stop
chkconfig iptables off
service NetworkManager stop
chkconfig NetworkManager off
修改 /etc/selinux/config  文件
将 SELINUX=enforcing 改为 SELINUX=disabled
重启机器即可
创建 oracle 用户
groupadd -g 500 oinstall
groupadd -g 501 dba
useradd -g oinstall -G dba oracle
passwd oracle
chown -R oracle:oinstall /u01 /u02
chmod -R 775 /u01
su - oracle
mkdir -p /u01/app/oracle/product/12.1.0/db
mkdir -p /u01/app/12.1.0/grid
配置互信关系
oralce 用户:1)生成密钥对
su - oracle  在两个节点都建立一个.ssh 的文件夹
[oracle@node1 ~]$ ssh-keygen -t rsa 
[oracle@node1 ~]$ ssh-keygen -t dsa  建立密钥两个节点都输入
2)配置信任关系
[oracle@node1 ~]$ cat .ssh/id_rsa.pub  .ssh/authorized_keys
[oracle@node1 ~]$ cat .ssh/id_dsa.pub  .ssh/authorized_keys
[oracle@node1 ~]$ ssh node2 cat .ssh/id_rsa.pub  .ssh/authorized_keys
[oracle@node1 ~]$ ssh node2 cat .ssh/id_dsa.pub  .ssh/authorized_keys
[oracle@node1 ~]$ scp .ssh/authorized_keys node2:~/.ssh
检查 oracle 软件安装的缺包
rpm -q binutils compat-libstdc++ gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXext libXtst libX11 libXau libXi make sysstat |grep  not installed 
配置本地的 yum 源
mount -t iso9660 -o loop /soft/rhel-server-6.5-x86_64-dvd.iso /media
cd /etc/yum.repos.d
[root@node1 yum.repos.d]# cp rhel-debuginfo.repo yum.repo
[root@node1 yum.repos.d]# mv rhel-debuginfo.repo rhel-debuginfo.repo.bk
[root@node1 yum.repos.d]#vi yum.repo
[base]
name=Red Hat Enterprise Linux
baseurl=file:///media/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
安装 asmlib,配置 asmlib 创建共享盘
配置系统参数 sysctl.conf
kernel.shmmax = 68719476736
kernel.shmall = 6029312
kernel.shmmni = 4096
kernel.sem =250 32000 100 128
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
net.ipv4.ip_local_port_range =9000 65500
fs.file-max=65536
fs.aio-max-nr=1048576
sysctl -p  使系统参数生效
vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 10240
Add the following line to the  /etc/pam.d/login  file,
if it does not already exist.
session required /lib/security/pam_limits.so
session required pam_limits.so
配置 ntp  服务器
编辑配置文件 vi /etc/ntp.conf ,加入红标处  NTP 服务器的 IP:restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict -6 ::1
restrict 10.62.1.0 mask 255.255.255.0 nomodify notrap
server 10.62.137.100
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
配置文件说明如下:第一行 restrict、default 定义默认访问规则,nomodify 禁止远程主机修改本地服务器配置,notrap 拒绝特殊的 ntpdq 捕获消息,noquery 拒绝 btodq/ntpdc 查询(这里的查询是服务器本身状态查询)。restrict 10.62.1.0 mask 255.255.255.0 nomodify notrap
这句是手动增加的,意思是从 10.62.1.1-10.62.1.254 的服务器都可以使用我们的 NTP 服务器来同步时间。server 192.168.146.225
这句也是手动增加的,指明局域网中作为 NTP 服务器的 IP;配置文件的最后两行作用是当服务器与公用的时间服务器失去联系时以本地时间为客户端提供时间服务。#chkconfig ntpd on / 配置 NTPD 服务开机自动引导
 #service ntpd start / 启动 NTPD 服务
安装 grid 的的包
rpm -ivh rpm/cvuqdisk-1.0.9-1.rpm

感谢各位的阅读!关于“oracle 12c grid db 如何安装的的 checklist”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-07-17发表,共计3122字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)