云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > oracle集群安装 - 图文

oracle集群安装 - 图文

  • 62 次阅读
  • 3 次下载
  • 2025/5/5 2:58:12

添加完成后,手动执行propagate把设置同步到另一节点机。

4)在两个节点机上执行执行以下命令:

[root@his01b ocfs2]# /etc/init.d/o2cb configure Configuring the O2CB driver.

This will configure the on-boot properties of the O2CB driver.

The following questions will determine whether the driver is loaded on boot. The current values will be shown in brackets ('[]'). Hitting without typing an answer will keep that current value. Ctrl-C will abort.

Load O2CB driver on boot (y/n) [y]: () Cluster stack backing O2CB [o2cb]:

Cluster to start on boot (Enter \Specify heartbeat dead threshold (>=7) [31]:

Specify network idle timeout in ms (>=5000) [30000]: Specify network keepalive delay in ms (>=1000) [2000]: Specify network reconnect delay in ms (>=2000) [2000]: Writing O2CB configuration: OK Cluster ocfs2 already online

5)create mount point /oradata,manual mount ocfs2:

mount -t ocfs2 -L oradata1 -o nointr,datavolume /oradata1 (注:oradata为

LABEL,/oradata为挂载点,两个都要修改,两台节点机都需操作。umount /oradata1解挂载)

#df -k 查看是否已挂靠

For auto mount,vi /etc/fstab,add follow line:

LABEL=oradata1 /oradata1 ocfs2 _netdev,datavolume,nointr 0 0 (注:oradata为LABEL,/oradata为挂靠点,这两个需要修改,两台节点机都需操作)

#shutdown -r now 重启后查看是否已挂靠

#重启后查看oradata那些文件夹的从属是否正确,不对的话需要重新再设置下。chmod -R 775 /oradata。

6)Create crs dir and db dir on one node(it's a cluster file system): [root@his01a oradata]# mkdir oracrs [root@his01a oradata]# mkdir oradata

[root@his01a oradata]# chown oracle:oinstall oracrs [root@his01a oradata]# chmod 775 oracrs

[root@his01a oradata]# chown oracle:oinstall oradata [root@his01a oradata]# chmod 775 oradata

7)Create oracle install directory:(注:两节点机都创建,执行以下三条语句) mkdir -p /usr/appsoft/oracle

chown -R oracle:oinstall /usr/appsoft/oracle chmod -R 775 /usr/appsoft/oracle

vi .bash_profile (注:home/oracle主目录下,a机为iesdb1,b机为iesdb2) export ORACLE_BASE=/usr/appsoft/oracle export ORACLE_SID=iesdb1

8)Configure Kernel Parameters:(注:两节点机都修改) vi /etc/sysctl.conf:

kernel.shmall = 4294967296

kernel.shmmax = 6871947294 (这个值太大,应该是内存一半或4G-1 bye中的较小者,4294967295-1)

#(the value of these two parameter is greater than recommand ,so leave these values) kernel.shmmni = 4096

kernel.sem = 250 32000 100 128 fs.file-max = 65536

#on 10.2.0.5,the requrement:(fs.file-max = 101365) net.ipv4.ip_local_port_range = 1024 65000

#on 10.2.0.5,the requrement:ip_local_port_range=9000 - 65500 net.core.rmem_default = 262144

#on 10.2.0.5,the requrement:rmem_default=1048576 net.core.rmem_max = 1048576

net.core.wmem_default = 262144 net.core.wmem_max = 1048576

执行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 pam_limits.so

vi /etc/profile

if [ $USER = \

if [ $SHELL = \ ulimit -p 16384 ulimit -n 65536 else

ulimit -u 16384 -n 65536 fi fi

9)Configure the Hangcheck Timer:

Assuming the default setting of \ (注:两节点机都修改)

modprobe hangcheck-timer hangcheck_tick=1 hangcheck_margin=10 hangcheck_reboot=1 (此命令执行后添加到/etc/rc.d/rc.local后)

重启使其生效

三、 依赖包安装

执行如下脚本,检测需要的软件包是否已经安装:

rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\\n' binutils \\ compat-db \\

compat-libstdc++-296 \\ compat-libstdc++-33 \\ control-center \\ gcc \\ gcc-c++ \\ glibc \\

glibc-common \\ glibc-devel \\ glibc-headers \\ ksh \\ libaio \\

libaio-devel \\ libgcc \\ libgnome \\ libgnomeui \\ libgomp \\ libstdc++ \\

libstdc++-devel \\ libXp \\ libXtst \\ make \\ sysstat \\ unixODBC \\

unixODBC-devel \\ unixODBC-kde

此命令列出已安装包的具体版本,同时对于缺失的包,将会如下提示: package unixODBC is not installed 缺失的包可以使用rpm命令从光盘进行安装,但有可能会遇到依赖包需要多级安装的问题,在此我们推荐使用yum工具,可以完美解决依赖包的问题: # vi /etc/yum.repos.d/RHES5-dvd.repo 添加内容如下:

[cd-media] name=RHEL-$releasever - Local baseurl=file:///mnt/Server/ gpgcheck=0 enabled=1 其中/mnt为操作系统光盘的实际挂载目录 执行如下命令进行安装 #yum update # yum install unixODBC ———————————————————————————————————————

说明:

搜索更多关于: oracle集群安装 - 图文 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

添加完成后,手动执行propagate把设置同步到另一节点机。 4)在两个节点机上执行执行以下命令: [root@his01b ocfs2]# /etc/init.d/o2cb configure Configuring the O2CB driver. This will configure the on-boot properties of the O2CB driver. The following questions will determine whether the driver is loaded on boot. The current values will be shown in brackets ('[]'). Hitting without typing an an

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com