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

简介:

一、查看系统I/O(对于Oracle数据库需启用异步I/O)

对于AIX6.1,默认异步I/O在有需求时,自动被激活,不需要配置。
[root@aix203 /]#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

二、配置节点间的主机信任关系:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[root @aix203  /]#cat /etc/hosts.equiv 
aix203   root
aix204   root
aix203-vip root
aix204-vip root
aix203-priv root
aix204-priv root
aix203   oracle
aix204   oracle
aix203-vip  oracle
aix204-vip  oracle
aix203-priv  oracle
aix204-priv  oracle
 
[root @aix203  /]#cat .rhosts
aix203   root
aix204   root
aix203-vip root
aix204-vip root
aix203-priv root
aix204-priv root
aix203   oracle
aix204   oracle
aix203-vip  oracle
aix204-vip  oracle
aix203-priv  oracle
aix204-priv  oracle
 
[oracle @aix203  ~]$cat .rhosts
aix203   root
aix204   root
aix203-vip root
aix204-vip root
aix203-priv root
aix204-priv root
aix203   oracle
aix204   oracle
aix203-vip  oracle
aix204-vip  oracle
aix203-priv  oracle
aix204-priv  oracle

验证主机信任关系:
[oracle@aix203 ~]$rsh aix204 date
Tue Mar 15 16:18:47 CDT 2016
[oracle@aix203 ~]$rsh aix204-priv date
Tue Mar 15 16:18:50 CDT 2016
[oracle@aix204 ~]$rsh aix203 date
Tue Mar 15 16:17:12 CDT 2016
[oracle@aix204 ~]$rsh aix203-priv date
Tue Mar 15 16:18:26 CDT 2016

三、配置时间同步(NTP)

NTP SERVER:
[root@aix203 /]#cat /etc/ntp.conf 

# Default NTP configuration file.
#   Broadcast client, no authentication.
broadcastclient
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace
server 127.127.1.0


NTP CLIENT:
[root@aix204 /]#cat /etc/ntp.conf 

# Default NTP configuration file.
#
#   Broadcast client, no authentication.
#
#broadcastclient
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace
server 192.168.8.203
启动ntp services:
[root@aix203 /]#smit xntpd          ;;启动ntp service
[root@aix203 /]#lssrc -ls xntpd 
 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  Program name:    /usr/sbin/xntpd 
  Version:          3 
  Leap indicator:   11  (Leap indicator is insane.) 
  Sys peer:        no peer, system is insane 
  Sys stratum:      16 
  Sys precision:    -17 
  Debug/Tracing:   DISABLED 
  Root distance:    0.000000 
  Root dispersion:  0.000000 
  Reference ID:    no refid, system is insane 
  Reference time:  no reftime, system is insane 
  Broadcast delay:  0.003906  (sec) 
  Auth delay:       0.000122  (sec) 
  System flags:    bclient pll monitor filegen  
  System uptime:    5  (sec) 
  Clock stability:  0.000000  (sec) 
  Clock frequency:  0.000000  (sec) 
  Peer:  127.127. 1.0 
       flags: (configured)(refclock) 
       stratum:   3 , version:  3 
       our mode: client, his mode: server 
Subsystem         Group            PID          Status 
  xntpd            tcpip             3604550       active

四、配置node间私有网络传输参数
[root@aix203 /]#lsattr  -El  sys0  -a  pre520tune

pre520tune disable Pre-520 tuning compatibility mode True

[root@aix203 /]#no -a |grep tcp
 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
                   hstcp =  0
        tcp_bad_port_limit =  0
         tcp_cwnd_modified =  0
                   tcp_ecn =  0
        tcp_ephemeral_high =  65535
         tcp_ephemeral_low =  32768
                tcp_fastlo =  0
      tcp_fastlo_crosswpar =  0
              tcp_finwait2 =  1200
            tcp_icmpsecure =  0
           tcp_init_window =  0
     tcp_inpcb_hashtab_siz =  24499
               tcp_keepcnt =  8
              tcp_keepidle =  14400
              tcp_keepinit =  150
             tcp_keepintvl =  150
      tcp_limited_transmit =  1
               tcp_low_rto =  0
              tcp_maxburst =  0
               tcp_mssdflt =  1460
           tcp_nagle_limit =  65535
         tcp_nagleoverride =  0
                tcp_ndebug =  100
               tcp_newreno =  1
            tcp_nodelayack =  0
         tcp_pmtu_discover =  1
             tcp_recvspace =  16384
             tcp_sendspace =  16384
             tcp_tcpsecure =  0
              tcp_timewait =  1
                   tcp_ttl =  60
            tcprexmtthresh =  3
              tcptr_enable =  0

[root@aix203 /]#no -a |grep udp

1
2
3
4
5
6
7
8
9
   udp_bad_port_limit =  0
        udp_ephemeral_high =  65535
         udp_ephemeral_low =  32768
     udp_inpcb_hashtab_siz =  24499
         udp_pmtu_discover =  1
             udp_recvspace =  42080
             udp_sendspace =  9216
                   udp_ttl =  30
                  udpcksum =  1

配置脚本:            
[root@aix203 /]#cat chnet.sh
no -r -o ipqmaxlen=512
no -p -o rfc1323=1
no -p -o sb_max=1310720
no -p -o tcp_recvspace=65536
no -p -o tcp_sendspace=65536
no -p -o udp_recvspace=655360
no -p -o udp_sendspace=65536     


[root@aix203 /]#sh chnet.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  1310720
Setting sb_max to  1310720  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

------ 未完,待续 !










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