77范文网 - 专业文章范例文档资料分享平台

Oracle 11gR2 rac for linux安装实施(2)

来源:网络收集 时间:2019-03-09 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

First cylinder (40471-65270, default 40471): Using default value 40471

Last cylinder, +cylinders or +size{K,M,G} (40471-65270, default 65270): +60G Using default value 65270

Command (m for help): n Command action l extended

p primary partition (1-4) l

Selected partition 4

First cylinder (40471-65270, default 40471): Using default value 40471

Last cylinder, +cylinders or +size{K,M,G} (40471-65270, default 65270): +60G Using default value 65270

Command (m for help): n Command action l extended

p primary partition (1-4) l

Selected partition 4

First cylinder (40471-65270, default 40471): Using default value 40471

Last cylinder, +cylinders or +size{K,M,G} (40471-65270, default 65270): Using default value 65270

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table. Syncing disks.

[root@RAC2 ~]# fdisk -l

Disk /dev/sda: 64.4 GB, 64424509440 bytes 255 heads, 63 sectors/track, 7832 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System /dev/sda1 * 1 25 200781 83 Linux

/dev/sda2 26 2065 16386300 82 Linux swap / Solaris /dev/sda3 2066 7832 46323427+ 83 Linux

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdb: 536.8 GB, 536870912000 bytes 255 heads, 63 sectors/track, 65270 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/sdb1 1 65270 524281243+ 5 Extended /dev/sdb5 1 487 3911764+ 83 Linux /dev/sdb6 488 974 3911796 83 Linux /dev/sdb7 975 1461 3911796 83 Linux /dev/sdb8 1462 11188 78132096 83 Linux /dev/sdb9 11189 20915 78132096 83 Linux /dev/sdb10 20916 30642 78132096 83 Linux /dev/sdb11 30643 40369 78132096 83 Linux /dev/sdb12 40370 47665 58605088+ 83 Linux /dev/sdb13 47666 54961 58605088+ 83 Linux /dev/sdb14 54962 65270 82807011 83 Linux

1. 安装必需包:

a) 安装软件包:# rpm -ivh compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm

# rpm -ivh libaio-devel-0.3.105-10.el6.x86_64.rpm

binutils-2.15.92.0.2

compat-libstdc++-33-3.2.3

compat-libstdc++-33-3.2.3 (32 bit) elfutils-libelf-0.97

elfutils-libelf-devel-0.97 expat-1.95.7 gcc-3.4.6 gcc-c++-3.4.6 glibc-2.3.4-2.41

glibc-2.3.4-2.41 (32 bit) glibc-common-2.3.4 glibc-devel-2.3.4 glibc-headers-2.3.4 libaio-0.3.105

libaio-0.3.105 (32 bit) libaio-devel-0.3.105

libaio-devel-0.3.105 (32 bit) libgcc-3.4.6

libgcc-3.4.6 (32-bit) libstdc++-3.4.6

libstdc++-3.4.6 (32 bit) libstdc++-devel 3.4.6 make-3.80 pdksh-5.2.14 sysstat-5.0.5 unixODBC-2.2.11

unixODBC-2.2.11 (32 bit) unixODBC-devel-2.2.11

unixODBC-devel-2.2.11 (32 bit)

修改配置文件:

2. 配置hosts 文件 (两台主机都需要修改)

修改主机的hosts 文件 vi /etc/hosts 在最后添加如下内容 #公共pub

10.163.145.173 RAC1 10.163.145.174 RAC2 #虚拟vip

10.163.145.171 RAC1-vip 10.163.145.172 RAC2-vip #私有pri

192.168.123.1 RAC1-pri 192.168.123.2 RAC2-pri #scan

10.163.145.170 scan-cluster

3. 修改 /etc/security/limits.conf 文件,加入如下内容:(两台主机都需要修改)

#for oracle

grid soft nproc 2047 grid hard nproc 16384 grid soft nofile 1024 grid hard nofile 65536 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 4. 修改 /etc/pam.d/login 文件,添加如下内容:(两台主机都需要修改)

# for oracle

session required pam_limits.so 5. 修改 /etc/sysctl.conf 文件,添加如下内容:(两台主机都需要修改)

# for oracle

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 fs.aio-max-nr = 1048576 fs.file-max = 6815744

添加完成后输入如下命令使内核文件生效: [root@RAC1 /]# /sbin/sysctl -p

6. 修改 /etc/profile 文件,添加如下内容:(两台主机都需要修改)

# for oracle

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

ulimit -u 16384 -n 65536 fi

umask 022 fi

7. 修改 /etc/csh.login 文件,添加如下内容:(两台主机都需要修改)

# for oracle

if ( $USER = \limit maxproc 16384 limit descriptors 65536 endif

8. 添加用户组和用户:(两台主机都需要修改)

/usr/sbin/groupadd -g 501 oinstall /usr/sbin/groupadd -g 502 dba /usr/sbin/groupadd -g 503 oper

/usr/sbin/groupadd -g 504 asmadmin /usr/sbin/groupadd -g 506 asmdba /usr/sbin/groupadd -g 507 asmoper

/usr/sbin/useradd -u 501 -g oinstall -G asmadmin,asmdba,asmoper,dba grid /usr/sbin/useradd -u 502 -g oinstall -G dba,asmdba,oper oracle

9. 添加用户密码:(manager)(两台主机都需要修改)

[root@RAC1 /]# passwd grid 更改用户 grid 的密码 。 新的 密码:

无效的密码: 它基于字典单词 无效的密码: 过于简单

重新输入新的 密码:

passwd: 所有的身份验证令牌已经成功更新。 [root@RAC1 /]#

[root@RAC1 /]# passwd oracle

更改用户 oracle 的密码 。 新的 密码:

无效的密码: 它基于字典单词 无效的密码: 过于简单 重新输入新的 密码:

passwd: 所有的身份验证令牌已经成功更新。

10. 配置环境变量:

在 grid 用户中配置如下: su – grid

vi .bash_profile

在 grid 用户下 修改 .bash_profile 文件,在最后添加如下内容:

export ORACLE_SID=+ASM1

export ORACLE_BASE=/u01/app/grid

export ORACLE_HOME=/u01/app/11.2.0/grid export PATH=$ORACLE_HOME/bin:.:$PATH

export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK export ORACLE_UNQNAME=orcl export ORACLE_HOSTNAME=rac1

在 oracle 用户中配置如下: su – oracle vi .bash_profile

在 oracle 用户下 修改 .bash_profile 文件,在最后添加如下内容:

export ORACLE_SID=orcl1

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 export PATH=$ORACLE_HOME/bin:.:$PATH

export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK export ORACLE_UNQNAME=orcl export ORACLE_HOSTNAME=rac1

11. 创建 oracle 安装目录: (两台主机都需要修改) mkdir -p /u01/app chmod -R 777 /u01/app chown -R grid:oinstall /u01/app mkdir -p /u01/app/oracle chmod -R 777 /u01/app/oracle chown -R oracle:oinstall /u01/app/oracle

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库Oracle 11gR2 rac for linux安装实施(2)在线全文阅读。

Oracle 11gR2 rac for linux安装实施(2).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/504424.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: