Redhat 6.2(x86_64)+oracle10g(RAC)+asm安装配置(2)

2019-03-10 19:08

#statistics clockstats cryptostats loopstats peerstats

restrict 127.0.0.1

server 10.36.106.34 prefer driftfile /var/lib/ntp/drift broadcastdelay 0.008

6)内核参数调整 节点1 ycweb1:

cat >> /etc/sysctl.conf << EOF kernel.shmall = 6291456 7864320

kernel.shmmax = 25769803776 32212254720 kernel.shmmni = 4096 4096

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

net.ipv4.ip_local_port_range = 9000 65500 1024 65000 net.core.rmem_default = 262144 262144 net.core.wmem_default = 262144 262144 net.core.rmem_max = 1048536 262144 net.core.wmem_max = 1048536 262144 #vm.pagecache = 1 10 30 6.2 中不存在 vm.min_free_kbytes=819200 819200 vm.vfs_cache_pressure=200 200 vm.swappiness =40 40 vm.nr_hugepages=8500 8500 kernel.core_uses_pid = 0 0 EOF

节点2 ycweb2 同上

REDHAT6.2下:

kernel.shmall = 7864320 kernel.shmmax = 32212254720 kernel.shmmni = 4096

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

net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 262144 net.core.rmem_max = 262144 net.core.wmem_default = 262144 net.core.wmem_max = 262144

vm.min_free_kbytes=819200 vm.vfs_cache_pressure=200 vm.swappiness =40 vm.nr_hugepages=8500 kernel.core_uses_pid = 0

7)安全限制调整 节点1 ycweb1

shell limits 设置:

cat >> /etc/security/limits.conf << EOF 内容如下:

orasrv soft nproc 4096 orasrv hard nproc 16384 orasrv soft nofile 65536 orasrv hard nofile 65536 orasrv soft memlock 30857216 orasrv hard memlock 30857216 * soft nproc 4096 * hard nproc 16384 * soft nofile 65536 * hard nofile 65536 EOF

节点2 ycweb2

shell limits 设置: 同上

8)会话限制调整 节点1 ycweb1

[root@ycweb1 ~]# vi /etc/pam.d/login # Add by RAC install

session required /lib/security/pam_limits.so

节点2 ycweb2

[root@ycweb2 ~]# vi /etc/pam.d/login # Add by RAC install

session required /lib/security/pam_limits.so

9)系统补丁包

要求安装Redhat6.2系统的补丁集。确保下面的包被安装,

binutils compat-db compat-libstdc++-33 glibc glibc-devel glibc-headers gcc gcc-c++ libstdc++ cpp make libaio ksh elfutils-libelf sysstat libaio libaio-devel setarch gcc make binutils openmotif glibc setarch libaio compat-db libXp

openmotif compat-libstdc++-33-3.2.3 compat-gcc-34-c++- 补丁包的安装工作非常重要,如果补丁包没有安装完整,在crs的安装过程中会出现各种问题,因此前期包的安装工作很重要。

二、安装前的准备工作

1)相关组、用户创建 节点1 ycweb1

[root@ycweb1 ~]# /usr/sbin/groupadd -g 502 dba

[root@ycweb1 ~]#/usr/sbin/useradd -g dba -d /rdbm/orasrv -u 501 -p ora123 orasrv 注意使用passwd命令修改orasrv用户的密码,且两节点的orasrv用户的ID号保持一致。 节点2 ycweb2同上。 2)建立信任关系:

两节点要实现orasrv用户,无口令ssh,rlogin。 3)环境变量设置

节点1 ycweb1

[grid@ycweb1 ~]$ vi .bash_profile # .bash_profile

# Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

export DISPLAY=:0.0 export TEMP=/tmp export TMPDIR=/tmp

export ORACLE_BASE=/rdbm/orasrv

export ORA_CRS_HOME=$ORACLE_BASE/product/10g/crs export CRS_HOME=$ORA_CRS_HOME

export ORACLE_HOME=$ORACLE_BASE/product/10g/db export ORACLE_OWNER=orasrv export ORACLE_SID=orcl1 export ORACLE_TERM=vt100

export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/bin:.:$PATH export

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:$ORACLE_HOME/rdbms/lib:$ORA_CRS_HOME/lib:/usr/local/lib

#export NLS_LANG=american_america.zhs16gbk export NLS_LANG=American_America.ZHS16GBK

export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data export

PATH=$PATH:.:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/usr/bin:/sbin:$ORACLE_HOME/OPatch

set -o emacs

export AIXTHREAD_SCOPE=S umask 022

if [ -t 0 ]; then stty intr ^C fi

节点2 ycweb2

[grid@ycweb2 ~]$ vi .bash_profile # .bash_profile

# Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

export DISPLAY=:0.0 export TEMP=/tmp export TMPDIR=/tmp

export ORACLE_BASE=/rdbm/orasrv

export ORA_CRS_HOME=$ORACLE_BASE/product/10g/crs export CRS_HOME=$ORA_CRS_HOME

export ORACLE_HOME=$ORACLE_BASE/product/10g/db export ORACLE_OWNER=orasrv export ORACLE_SID=orcl1 export ORACLE_TERM=vt100

export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/bin:.:$PATH export

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:$ORACLE_HOME/rdbms/lib:$ORA_CRS_HOME/lib:/usr/local/lib

#export NLS_LANG=american_america.zhs16gbk export NLS_LANG=American_America.ZHS16GBK

export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data

export

PATH=$PATH:.:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/usr/bin:/sbin:$ORACLE_HOME/OPatch

set -o emacs

export AIXTHREAD_SCOPE=S umask 022

if [ -t 0 ]; then stty intr ^C fi

4)确认网络配置正确

[root@ycweb1 ~]# ping ycweb1

[root@ycweb1 ~]# ping ycweb1-priv [root@ycweb1 ~]# ping ycweb2

[root@ycweb1 ~]# ping ycweb2-priv [root@ycweb2 ~]# ping ycweb2

[root@ycweb2 ~]# ping ycweb2-priv [root@ycweb2 ~]# ping ycweb1 [root@ycweb2 ~]# ping ycweb1-priv

5)Hangcheck-timer设置

修改文件/etc/rc.d/rc.local

增加以下内容:modprobe hangcheck-timer hangcheck_tick=30 hangcheck_margin=180 执行命令使其生效: modprobe -v hangcheck-timer

三、配置裸设备

1)对磁盘进行分区

由于linux6.2下,裸设备必须基于磁盘的逻辑分区才能进行创建,因此需要提前对磁盘进行分区。阵列安装完成后,不同的存储厂家根据存储软件的不同,在/dev下会生成不同的设备文件,具体到本现场,使用的是EMC的存储,因此阵列安装完成后,在/dev目录下生成了/dev/emcpowerb /dev/emcpowerc ……等文件,我们需要做的就是根据现场需求,对这些磁盘设备进行分区操作,比如:

[root@ycweb1 ~]#fdisk /dev/emcpowerf Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0x9755c97b.

Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to


Redhat 6.2(x86_64)+oracle10g(RAC)+asm安装配置(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:浅析高校思想政治教育的创新研究-精选教育文档

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: