Oracle Study之-AIX6.1构建Oracle 11gR2 RAC(2)

Oracle Study之-AIX6.1构建Oracle 11gR2 RAC(2)

一、修改系统内核参数

[root@aix209 app]#chdev -l sys0 -a ncargs=256
sys0 changed
[root@aix209 app]#lsattr -El sys0 -a ncargs
ncargs 256 ARG/ENV list size in 4K byte blocks True
[root@aix209 app]#vmo -p -o minperm%=3
Setting minperm% to 3 in nextboot file
Setting minperm% to 3
[root@aix209 app]#vmo -p -o maxperm%=90
Modification to restricted tunable maxperm%, confirmation required yes/no yes
Setting maxperm% to 90 in nextboot file
Setting maxperm% to 90
Warning: a restricted tunable has been modified
[root@aix209 app]#vmo -p -o maxclient%=90 
Modification to restricted tunable maxclient%, confirmation required yes/no yes
Setting maxclient% to 90 in nextboot file
Setting maxclient% to 90
Warning: a restricted tunable has been modified
[root@aix209 app]#vmo -p -o lru_file_repage=0
Modification to restricted tunable lru_file_repage, confirmation required yes/no yes
Setting lru_file_repage to 0 in nextboot file
Setting lru_file_repage to 0
Warning: a restricted tunable has been modified
[root@aix209 app]#vmo -p -o strict_maxclient=1
Modification to restricted tunable strict_maxclient, confirmation required yes/no yes
Setting strict_maxclient to 1 in nextboot file
Setting strict_maxclient to 1
Warning: a restricted tunable has been modified
[root@aix209 app]#vmo -p -o strict_maxperm=0
Modification to restricted tunable strict_maxperm, confirmation required yes/no yes
Setting strict_maxperm to 0 in nextboot file
Setting strict_maxperm to 0
Warning: a restricted tunable has been modified




二、配置系统异步I/O

[root@aix209 /]#ioo -a |grep aio

                    aio_active = 0
                   aio_maxreqs = 65536
                aio_maxservers = 30
                aio_minservers = 3
         aio_server_inactivity = 300
              posix_aio_active = 0
             posix_aio_maxreqs = 65536
          posix_aio_maxservers = 30
          posix_aio_minservers = 3
   posix_aio_server_inactivity = 300

-----  对于aix 6.1,异步I/O(AIO)系统在有异步I/O需求时自动激活,无需配置。

三、时钟同步配置

ntp:
[root@aix209 /]#smit xntpd
[root@aix209 /]#mv /etc/ntp.conf /etc/ntp.conf.bak
----  对于Oracle 11g RAC时钟通过通过grid的ctssd进程解决,可以关闭系统的ntp服务


四、配置tcp/udp参数

[root@aix209 /]#lsattr -E -l sys0 -a pre520tune 
pre520tune disable Pre-520 tuning compatibility mode True
对于disable compatibility,做以下配置:
[root@aix209 /]#cat mknet.sh

/usr/sbin/no -r -o ipqmaxlen=512 
/usr/sbin/no -p -o rfc1323=1 
/usr/sbin/no -p -o sb_max=4194304 
/usr/sbin/no -p -o tcp_recvspace=65536 
/usr/sbin/no -p -o tcp_sendspace=65536 
/usr/sbin/no -p -o udp_recvspace=655360 
/usr/sbin/no -p -o udp_sendspace=65536

执行,有的参数需要系统重启后生效:
[root@aix209 /]#sh mknet.sh

Setting ipqmaxlen to 512 in nextboot file
Warning: changes will take effect only at next reboot
Setting rfc1323 to 1
Setting rfc1323 to 1 in nextboot file
Change to tunable rfc1323, will only be effective for future connections
Setting sb_max to 4194304
Setting sb_max to 4194304 in nextboot file
Setting tcp_recvspace to 65536
Setting tcp_recvspace to 65536 in nextboot file
Change to tunable tcp_recvspace, will only be effective for future connections
Setting tcp_sendspace to 65536
Setting tcp_sendspace to 65536 in nextboot file
Change to tunable tcp_sendspace, will only be effective for future connections
Setting udp_recvspace to 655360
Setting udp_recvspace to 655360 in nextboot file
Change to tunable udp_recvspace, will only be effective for future connections
Setting udp_sendspace to 65536
Setting udp_sendspace to 65536 in nextboot file
Change to tunable udp_sendspace, will only be effective for future connections

五、配置共享存储


    构建RAC,DataBase是存储在共享存储上(即阵列设备上),由于此次系统使用的是Sun T300的存储阵列,磁盘不支持并发访问,故此次的存储的共享需要配置hacmp加concurrent VG实现;如果阵列支持并发,可直接使用ASM和raw实现存储共享。

[root@aix210 /]#lsdev -c disk 
hdisk0 Available 1S-08-00-8,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 1n-08-02     Other FC SCSI Disk Drive

[root@aix209 /]#lspv
hdisk0          00096b0dc9e3531f                    rootvg          active      
hdisk1          000f823ae67f2ef2                    None                        
hdisk2          00096b0dbf3e15be                    None       

[root@aix210 /]#lsattr -El hdisk1

clr_q         no                                                            Device CLEARS its Queue on error True
location                                                                     Location Label                   True
lun_id        0x0                                                          Logical Unit Number ID           False
max_transfer  0x40000                                             Maximum TRANSFER Size            True
node_name     0x50020f2000004999                        FC Node Name                     False
pvid          000f823ae67f2ef20000000000000000      Physical volume identifier       False
q_err         yes                                                            Use QERR bit                     True
q_type        simple                                                     Queuing TYPE                     True
queue_depth   1                                                         Queue DEPTH                      True
reassign_to   120                                                        REASSIGN time out value          True
rw_timeout    30                                                            READ/WRITE time out value        True
scsi_id       0x10800                                                     SCSI ID                          False
start_timeout 60                                                             START unit time out value        True
ww_name       0x50020f2300004999                            FC World Wide Name               False

------- hdisk1为阵列共享磁盘,不具有reserve_polic 或reserve_lock属性

配置并发卷组通过HACMP实现共享:

HACMP Install:http://blog.csdn.net/lqx0405/article/details/50883875

并发卷组的配置:http://blog.csdn.net/lqx0405/article/details/51007358

配置HACMP:http://blog.csdn.net/lqx0405/article/details/51007358

六、配置主机间的信任关系

   通过ssh配置主机间的信任关系,具体文档见:

http://blog.csdn.net/lqx0405/article/details/51191832


---- 精彩继续...

优秀的个人博客,低调大师

微信关注我们

原文链接:https://blog.51cto.com/tiany/1765470

转载内容版权归作者及来源网站所有!

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

相关文章

发表评论

资源下载

更多资源
Mario,低调大师唯一一个Java游戏作品

Mario,低调大师唯一一个Java游戏作品

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

Oracle Database,又名Oracle RDBMS

Oracle Database,又名Oracle RDBMS

Oracle Database,又名Oracle RDBMS,或简称Oracle。是甲骨文公司的一款关系数据库管理系统。它是在数据库领域一直处于领先地位的产品。可以说Oracle数据库系统是目前世界上流行的关系数据库管理系统,系统可移植性好、使用方便、功能强,适用于各类大、中、小、微机环境。它是一种高效率、可靠性好的、适应高吞吐量的数据库方案。

Java Development Kit(Java开发工具)

Java Development Kit(Java开发工具)

JDK是 Java 语言的软件开发工具包,主要用于移动设备、嵌入式设备上的java应用程序。JDK是整个java开发的核心,它包含了JAVA的运行环境(JVM+Java系统类库)和JAVA工具。

Sublime Text 一个代码编辑器

Sublime Text 一个代码编辑器

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。