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

1
2
3
4
5
6
7
8
9
10
                     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

1
2
3
4
5
6
7
/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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
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


---- 精彩继续...










本文转自 客居天涯 51CTO博客,原文链接:http://blog.51cto.com/tiany/1765470,如需转载请自行联系原作者
目录
相关文章
|
运维 Oracle 前端开发
Oracle 11g RAC集群日常运维命令总结
Oracle 11g RAC集群日常运维命令总结
735 2
|
存储 负载均衡 Oracle
|
Oracle 关系型数据库
分布式锁设计问题之Oracle RAC保证多个节点写入内存Page的一致性如何解决
分布式锁设计问题之Oracle RAC保证多个节点写入内存Page的一致性如何解决
420 0
|
8月前
|
Oracle 关系型数据库 Linux
【赵渝强老师】Oracle数据库配置助手:DBCA
Oracle数据库配置助手(DBCA)是用于创建和配置Oracle数据库的工具,支持图形界面和静默执行模式。本文介绍了使用DBCA在Linux环境下创建数据库的完整步骤,包括选择数据库操作类型、配置存储与网络选项、设置管理密码等,并提供了界面截图与视频讲解,帮助用户快速掌握数据库创建流程。
689 93
|
7月前
|
Oracle 关系型数据库 Linux
【赵渝强老师】使用NetManager创建Oracle数据库的监听器
Oracle NetManager是数据库网络配置工具,用于创建监听器、配置服务命名与网络连接,支持多数据库共享监听,确保客户端与服务器通信顺畅。
376 0
|
10月前
|
存储 Oracle 关系型数据库
服务器数据恢复—光纤存储上oracle数据库数据恢复案例
一台光纤服务器存储上有16块FC硬盘,上层部署了Oracle数据库。服务器存储前面板2个硬盘指示灯显示异常,存储映射到linux操作系统上的卷挂载不上,业务中断。 通过storage manager查看存储状态,发现逻辑卷状态失败。再查看物理磁盘状态,发现其中一块盘报告“警告”,硬盘指示灯显示异常的2块盘报告“失败”。 将当前存储的完整日志状态备份下来,解析备份出来的存储日志并获得了关于逻辑卷结构的部分信息。
|
8月前
|
SQL Oracle 关系型数据库
Oracle数据库创建表空间和索引的SQL语法示例
以上SQL语法提供了一种标准方式去组织Oracle数据库内部结构,并且通过合理使用可以显著改善查询速度及整体性能。需要注意,在实际应用过程当中应该根据具体业务需求、系统资源状况以及预期目标去合理规划并调整参数设置以达到最佳效果。
549 8
|
10月前
|
SQL Oracle 关系型数据库
比较MySQL和Oracle数据库系统,特别是在进行分页查询的方法上的不同
两者的性能差异将取决于数据量大小、索引优化、查询设计以及具体版本的数据库服务器。考虑硬件资源、数据库设计和具体需求对于实现优化的分页查询至关重要。开发者和数据库管理员需要根据自身使用的具体数据库系统版本和环境,选择最合适的分页机制,并进行必要的性能调优来满足应用需求。
469 11
|
10月前
|
Oracle 关系型数据库 数据库
数据库数据恢复—服务器异常断电导致Oracle数据库报错的数据恢复案例
Oracle数据库故障: 某公司一台服务器上部署Oracle数据库。服务器意外断电导致数据库报错,报错内容为“system01.dbf需要更多的恢复来保持一致性”。该Oracle数据库没有备份,仅有一些断断续续的归档日志。 Oracle数据库恢复流程: 1、检测数据库故障情况; 2、尝试挂起并修复数据库; 3、解析数据库文件; 4、导出并验证恢复的数据库文件。

推荐镜像

更多