Linux下Oracle 11.2.0.1 RAC安装笔记(2)

127.0.0.1 localhost.localdomain localhost #public 192.168.0.50 rac1.dbaora.com rac1 192.168.0.51 rac2.dbaora.com rac2 #private 192.168.1.60 rac1-priv.dbaora.com rac1-priv 192.168.1.61 rac2-priv.dbaora.com rac2-priv #virtual 192.168.0.70 rac1-vip.dbaora.com rac1-vip 192.168.0.71 rac2-vip.dbaora.com rac2-vip #scan 192.168.0.20 rac-scan.dbaora.com rac-scan

验证rac1.dbaora.com上的th0和eth1的网络响应

[root@rac1 ~]# ping rac1 -c 1 PING rac1.dbaora.com (192.168.0.50) 56(84) bytes of data. 64 bytes from rac1.dbaora.com (192.168.0.50): icmp_seq=1 ttl=64 time=0.032 ms --- rac1.dbaora.com ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.032/0.032/0.032/0.000 ms [root@rac1 ~]# ping rac1-priv -c 1 PING rac1-priv.dbaora.com (192.168.1.60) 56(84) bytes of data. 64 bytes from rac1-priv.dbaora.com (192.168.1.60): icmp_seq=1 ttl=64 time=0.036 ms --- rac1-priv.dbaora.com ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.036/0.036/0.036/0.000 ms

检查哪些软件包已安装,哪些软件包缺失

rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n' binutils \ compat-libstdc++-33 \ elfutils-libelf \ elfutils-libelf-devel \ gcc \ gcc-c++ \ glibc \ glibc-common \ glibc-devel \ glibc-headers \ ksh \ libaio \ libaio-devel \ libgcc \ libstdc++ \ libstdc++-devel \ make \ sysstat \ unixODBC \ unixODBC-devel

安装缺失的包。 这只是一个例子:

#directory with mounted Oracle Enterprise Linux 5 install disk cd <path with Oracle Enterprise Linux 5>/Server/Packages #install missed packages (example for package unixODBC*) rpm -Uvh unixODBC*

禁用Secure Linux

要禁用Secure Linux编辑“/etc/selinux/config”文件,确保SELINUX设置如下,它需要重启才能有效。

SELINUX=disabled

禁用Firewall

可以在图形模式下或手动禁用防火墙。

执行下面的命令手动禁用

service iptables stop chkconfig iptables off

更改NTP

需要禁用NTP(Network Time Protocol)或修改其设置,以便Oracle Cluster Time Synchronization Service(ctssd)可以同步RAC节点的时间。

选项1 - 禁用NTP

service ntpd stop Shutting down ntpd: [ OK ] chkconfig ntpd off mv /etc/ntp.conf /etc/ntp.conf.orig rm /var/run/ntpd.pid

选项2 - 更改NTP

如果要保留NTP,请在“/etc/sysconfig/ntpd”文件中添加“-x”选项。

OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"

并重新启动NTP

# service ntpd restart

在操作系统安装过程中,可以禁用 SElinux、Firewall,不启动NTP,这样在主机配置中可省略。

目录

创建ORACLE_BASE

mkdir -p /ora01/app/oracle

为grid和database软件创建ORACLE_HOME

mkdir -p /ora01/app/oracle/product/11.2.0/db_1 mkdir -p /ora01/app/grid/product/11.2.0/grid chown oracle:oinstall -R /ora01 chmod 775 /ora01/app/oracle

Oracle用户新的配置文件

修改Oracle配置文件 /home/oracle/.bash_profile

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/ed8c1cb17cd8fbab492bcabdb6d3cbf5.html