打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
安装Oracle11.2 RAC for Solaris10 sparc64(一)

以下所有操作除非特别声明,否则都需要在两个节点上进行配置。

首先在两个节点上分别检查内存情况:

# /usr/sbin/prtconf | grep 'Memory size'
Memory size: 4096 Megabytes
# /usr/sbin/swap -s
总数:分配了 187048k 字节 + 保留 24008k = 已使用 211056k5143752k 可用

如果要安装RAC环境,也就是说Cluster和数据库,要求内存不小于2.5G,虽然这台Sun480已经老掉牙了,但是还能满足安装的最小要求。

SWAP分区至少1.5G,当然5G空间,也可以满足。

# df -h
文件系统               大小   用了   可用容量      挂接在
/dev/dsk/c2t0d0s0       29G   4.6G    24G    17%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   4.9G   696K   4.9G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
                        29G   4.6G    24G    17%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                        29G   4.6G    24G    17%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   4.9G    88K   4.9G     1%    /tmp
swap                   4.9G    32K   4.9G     1%    /var/run
/dev/dsk/c2t0d0s7      2.6G   2.6M   2.5G     1%    /export/home
/dev/dsk/c0t500601603022E66Ad9s6
                       492G    70G   417G    15%    /data

检查系统安装空间,在/data目录下有足够的空间安装RAC数据库。

# df -h /tmp
文件系统               大小   用了   可用容量      挂接在
swap                   4.9G    88K   4.9G     1%    /tmp

检查临时空间大小,CLUSTER的安装和日后使用需要至少5.5G以上空间和1.5G以上的临时空间。

在两个节点上分别建立等同的用户和组:

# groupadd -g 1000 oinstall
# groupadd -g 1031 dba
# mkdir /export/home/oracle
# useradd -u 1101 -g oinstall -G dba -d /export/home/oracle oracle
# chown -R oracle:oinstall /export/home/oracle
# passwd oracle

在两个节点上分别创建CLUSTERORACLE的安装目录:

# mkdir /data/grid
# mkdir -p /data/oracle/product/11.2
# chown -R oracle:oinstall /data
# chmod -R 775 /data/

检查操作系统版本和软件包安装情况:

# uname -r
5.10
# more /etc/release
Solaris 10 10/09 s10s_u8wos_08a SPARC
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 16 September 2009

Oracle要求的系统版本必须是U6以上,0810月之后的版本。

# pkginfo -i SUNWarc SUNWbtool SUNWcsl SUNWhea SUNWi1cs SUNWi15cs SUNWi1of SUNWlibC SUNWlibm SUNWlibms SUNWsprot SUNWtoo SUNWxwfnt
system      SUNWarc   Lint Libraries (usr)
system      SUNWbtool CCS tools bundled with SunOS
system      SUNWcsl   Core Solaris, (Shared Libs)
system      SUNWhea   SunOS Header Files
system      SUNWi1of  ISO-8859-1 (Latin-1) Optional Fonts
system      SUNWlibC  Sun Workshop Compilers Bundled libC
system      SUNWlibm  Math & Microtasking Library Headers & Lint Files (Usr)
system      SUNWlibms Math & Microtasking Libraries (Usr)
system      SUNWsprot Solaris Bundled tools
system      SUNWtoo   Programming Tools
system      SUNWxwfnt X Window System platform. required fonts
   
错误: 未发现'SUNWi1cs'的信息
   
错误: 未发现'SUNWi15cs'的信息

11.2要求Solaris10以上版本,对于缺少的SUNWi1csSUNWi15cs包,似乎在以前的版本安装列表中也会出现,但是缺少这两个包并不会导致安装出现问题。

下面检查一下补丁的情况,需要最小安装下列的补丁:119963-14120753-06139574-03141414-02141444-09

# patchadd -p |grep 119963
Patch: 119963-16 Obsoletes: Requires: Incompatibles: Packages: SUNWlibC
# patchadd -p |grep 120753
Patch: 120753-07 Obsoletes: Requires: Incompatibles: Packages: SUNWlibmsr SUNWlibm
# patchadd -p |grep 139574
Patch: 139555-08 Obsoletes: 120062-01 121130-01 125551-02 126264-01 127743-02 127853-02 128253-01 128296-01 128318-01 128322-01 128340-01 128406-01 137095-01 137106-01 137278-01 138058-01 138106-02 138114-01 138231-01 138241-05 138397-01 138639-01 138850-01 138864-01 138878-01 138888-08 139385-02 139458-01 139459-01 139466-04 139483-05 139489-03 139492-01 139494-01 139498-04 139500-04 139502-03 139506-01 139551-01 139558-03 139560-02 139562-02 139566-01 139570-05 139571-01 139572-02 139574-03 139579-04 139931-01 139936-01 139938-01 139939-01 139942-01 139947-01 139951-01 139952-01 139960-02 139965-01 139994-01 140000-04 140076-02 140077-01 140142-01 140173-01 140194-04 140196-01 140197-01 140334-01 140389-01 140402-01 140411-01 140677-01 140679-01 140774-03 140776-01 140794-01 140855-01 141006-01 141008-01 Requires: 125555-02 118731-01 118833-36 118918-24 119042-09 119254-41 119578-30 120011-14 120900-04 121133-02 126897-02 127127-11 127755-01 137137-09 138217-01 140796-01 140899-01 141016-01 Incompatibles: Packages: SUNWcsu SUNWcsr SUNWcsl SUNWcakr FJSVhea SUNWkvm SUNWckr SUNWcsd SUNWpl5u SUNWesu SUNWperl584core SUNWcslr SUNWcpcu FJSVcpcu SUNWib SUNWibsdpib SUNWfmdr SUNWfmd FJSVfmd SUNWmdb FJSVmdb SUNWmdbr FJSVmdbr SUNWpiclu FJSVpiclu SUNWzfskr SUNWsmapi SUNWzfsr SUNWzfsu SUNWpool SUNWzoneu SUNWs8brandr SUNWtoo SUNWs9brandr SUNWssad SUNWudaplu SUNWtavor SUNWudapltu SUNWudfr SUNWmdr SUNWmdu SUNWipfh SUNWipfu SUNWopenssl-libraries SUNWwbsup SUNWnfsckr SUNWxcu4 SUNWiscsitgtr SUNWiscsitgtu SUNWloc SUNWbtool SUNWarc SUNWarcr SUNWnfssu SUNWdhcsu SUNWdmgtu SUNWcvcr SUNWfruip SUNWidn SUNWnxge SUNWsckmr SUNWsckmu SUNWus SUNWdtrc SUNWcry SUNWdcsr SUNWdtrp SUNWefcl SUNWncau SUNWhea SUNWopenssl-commands SUNWopenssl-include SUNWpd SUNWpdu SUNWrds SUNWsshcu SUNWroute SUNWsshdu SUNWsshu SUNWhermon
# patchadd -p |grep 141414
Patch: 141444-09 Obsoletes: 119143-02 120807-01 122754-01 123402-01 124924-01 125915-01 126266-01 126421-02 128004-01 128304-04 128306-05 128328-01 128334-01 128491-01 137021-03 137121-06 137129-06 137141-01 137289-02 137292-01 138044-02 138083-01 138104-01 138130-01 138174-04 138255-03 138269-02 138392-01 138625-02 138629-01 139386-02 139462-02 139464-01 139490-01 139881-01 139928-03 139956-01 139964-03 139973-01 139974-03 139977-07 139982-04 139985-02 139991-03 139993-03 139996-02 140150-01 140338-01 140408-01 140589-02 140916-02 140919-04 141028-01 141057-01 141414-10 141494-01 141510-03 141520-01 141524-03 141530-01 141538-01 141540-01 141546-01 141554-01 141556-01 141560-02 141690-02 141692-01 141694-02 141715-03 141721-03 141729-01 141731-01 141733-04 141736-05 141742-04 141743-04 141767-01 141770-01 141771-01 141775-01 141777-01 141781-02 141892-01 141894-01 141902-02 141908-01 141918-01 141920-03 141934-01 142004-01 142013-01 142051-01 142056-02 142246-01 142284-01 142479-01 142483-01 142489-01 Requires: 118833-36 118918-24 119042-09 119254-41 119578-30 120011-14 120900-04 121133-02 121901-01 121921-02 125503-02 126540-02 126897-02 127127-11 127755-01 137137-09 139555-08 142292-01 Incompatibles: Packages: SUNWcsu SUNWcsr SUNWcsl SUNWcar SUNWcakr FJSVhea SUNWkvm SUNWckr SUNWcsd SUNWpl5u SUNWesu SUNWperl584core SUNWcslr SUNWcpcu FJSVcpcu SUNWcryr SUNWib SUNWipoib SUNWibsdpib SUNWfmdr SUNWfmd FJSVfmd SUNWibsdpu SUNWmdb FJSVmdb SUNWmdbr FJSVmdbr SUNWpiclu FJSVpiclu SUNWzfskr SUNWsmapi SUNWzfsr SUNWzfsu SUNWpool SUNWzoneu SUNWtnfc SUNWtoo SUNWs9brandr SUNWssad SUNWigb SUNWusb SUNWudaplu SUNWtavor SUNWudapltu SUNWudapltr SUNWmdr SUNWmdu SUNWintgige SUNWio-tools SUNWopenssl-libraries SUNWwbsup SUNWnfsckr SUNWnfscr SUNWnfscu SUNWvolu SUNWrcmdc SUNWbcp SUNWxcu4 SUNWiscsitgtu SUNWixgbe SUNWbtool SUNWarc SUNWarcr SUNWnfssu SUNWpmu SUNWpmr SUNWdmgtu SUNWcpr SUNWefc SUNWfruip SUNWluxd SUNWnxge SUNWus SUNWatfsu SUNWdtrc SUNWcry SUNWefcl SUNWnfsskr SUNWftdur SUNWhea SUNWopenssl-commands SUNWopenssl-include SUNWpcmem SUNWpd SUNWpdu SUNWpl5v SUNWpsdpr SUNWrds SUNWsshcu SUNWrpcib SUNWs8brandu SUNWs9brandu SUNWsshdr SUNWsshdu SUNWsshu SUNWhermon

安装所要求的补丁不是比系统中的低,就是被其他补丁替代,因此系统满足安装需要。

检查操作系统架构:

# /bin/isainfo -kv
64-bit sparcv9 kernel modules

在两个服务器的/etc/hosts中,分别添加另外节点的主机名和IP地址:

# more /etc/hosts
#
# Internet host table
#
::1     localhost      
127.0.0.1       localhost      
172.25.198.222  racnode1        loghost
172.25.198.223  racnode2
10.0.0.1        racnode1-priv
10.0.0.2        racnode2-priv
172.25.198.200  racnode-cluster

节点1上启用第二网卡:

bash-3.00# ifconfig ce1 plumb
bash-3.00# ifconfig ce1 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255 up
# vi /etc/hostname.ce1
racnode1-priv

在节点2上启用第二网卡:

# ifconfig ce1 plumb
# ifconfig ce1 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255 up

# vi /etc/hostname.ce1
racnode2-priv

修改系统的参数限制:

set noexec_user_stack=1
set semsys:seminfo_semmni=100
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmsl=256
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmni=100

/etc/system文件中添加上面的配置。如果愿意可以重新系统使配置生效,不过11gr2的安装程序,可以自动调整系统的配置。

检查系统TCPUDP端口范围:

# /usr/sbin/ndd /dev/tcp tcp_smallest_anon_port tcp_largest_anon_port
32768

65535
# /usr/sbin/ndd -set /dev/tcp tcp_smallest_anon_port 9000

这是系统默认配置,应该将最小端口设置到9000,同样UDP协议进行同样的端口设置:

# /usr/sbin/ndd /dev/udp udp_smallest_anon_port udp_largest_anon_port
32768

65535
# /usr/sbin/ndd -set /dev/udp udp_smallest_anon_port 9000

检查并设置core文件创建信息:

# coreadm
   
全局(主存储器)信息转储文件模式:
    
全局信息转储文件内容: default
      
初始(主存储器)信息转储文件模式: core
      
初始信息转储文件内容: default
          
全局(主存储器)信息转储: disabled
      
每进程的(主存储器)信息转储: enabled
    
全局 setid (主存储器)信息转储: disabled
每进程的 setid (主存储器)信息转储: disabled
   
全局(主存储器)信息转储记录: disabled
# mkdir -p /var/cores
# coreadm -g /var/cores/%f.%n.%p.%t.core -e global -e global-setid -e log -d process -d proc-setid

11.2中,Oracle提供了CLUSTER节点间时间同步的服务,如果打算使用这个功能,就需要禁止ntp时间同步服务:

# /usr/sbin/svcadm disable ntp

11.2中,图形化工具可以自动配置ssh网络连接,但是由于图形接口的默认配置与Solaris系统不一致,需要添加下来的链接:

# mkdir /usr/local
# ln -s /etc/ssh /usr/local/etc
# ln -s /usr/bin /usr/local/bin

下面切换到oracle用户,编辑shell启动脚本:

# su - oracle
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
$ echo $SHELL
/bin/sh
$ vi .profile
'.profile'
[新文件]
umask 022
DISPLAY=172.25.0.90:1.0
export DISPLAY

CLUSTER的安装不需要ORACLE_HOMEORACLE_BASEORACLE_SID的设置。需要设置DISPLAY参数,好启用图形界面。

检查进程和系统的限制:

$ ulimit -t
没有限制
$ ulimit -f
没有限制
$ ulimit -d
没有限制
$ ulimit -s
8192
$ ulimit -n
256
$ ulimit -v
没有限制

将下面的设置放到.profile中:

ulimit -s 32768
ulimit -n 65536

对于共享存储设备,需要对oracle用户授权:

# chown oracle:oinstall /dev/rdsk/c0*

注意一点,各个节点的共享存储磁盘路径可能不一致,比如在节点2上,上面的授权变为:

# chown oracle:oinstall /dev/rdsk/c1*

至此,所有准备工作完成,可以利用图形化工具进行安装操作了。

 

 

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
ORACLE
史上最详细Solaris 10上Oracle 10g安装步骤图解新手教程
Oracle10g(10.2) 在Redhat AS4u2 x86_64 上安装
solaris 系统日常维护
转 Ubuntu 12.04 安装 Oracle 11G 小计
系统管理员工具包: 交换空间管理和技巧
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服