Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2868604
  • 博文数量: 599
  • 博客积分: 16398
  • 博客等级: 上将
  • 技术积分: 6875
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-30 12:04
个人简介

WINDOWS下的程序员出身,偶尔也写一些linux平台下小程序, 后转行数据库行业,专注于ORACLE和DB2的运维和优化。 同时也是ios移动开发者。欢迎志同道合的朋友一起研究技术。 数据库技术交流群:58308065,23618606

文章分类

全部博文(599)

文章存档

2014年(12)

2013年(56)

2012年(199)

2011年(105)

2010年(128)

2009年(99)

分类: Oracle

2009-12-07 22:07:55

7. 安装 Oracle 集群件

下载后,在 rac1 上以 oracle 用户身份执行

rac1-> /u01/staging/clusterware/runInstaller
  1. 欢迎页面:单击 Next
  2. 指定 Inventory 目录和证书:
    • 输入 inventory 目录的完整路径:/u01/app/oracle/oraInventory。
    • 指定操作系统组名:oinstall。
  3. 指定 Home 详细内容:
    • 名称:OraCrs10g_home
    • /u01/app/oracle/product/10.2.0/crs_1
  4. 特定于产品的必要条件检查:
    • 忽略有关物理内存要求的警告。
  5. 指定集群配置:单击 Add
    • 公共节点名称:rac2.mycorpdomain.com
    • 专用节点名称:rac2-priv.mycorpdomain.com
    • 虚拟主机名称:rac2-vip.mycorpdomain.com
  6. 指定网络接口用法:
    • 接口名称:eth0
    • 子网: 192.168.2.0
    • 接口类型:Public
    • 接口名称:eth1
    • 子网: 10.10.10.0
    • 接口类型:Private
  7. 指定 Oracle 集群注册表 (OCR) 位置:选择 External Redundancy
    为了简单起见,这里将不镜像 OCR。在生产环境中,您可能会考虑复用 OCR 以实现更高的冗余。
    • 指定 OCR 位置:/ocfs/clusterware/ocr
  8. 指定表决磁盘位置:选择 External Redundancy
    同样,为了简单起见,我们选择不镜像表决磁盘。
    • 表决磁盘位置:/ocfs/clusterware/votingdisk
  9. 摘要:单击 Install
  10. 执行配置脚本:以 root 用户身份按顺序执行以下脚本(一次执行一个)。在当前脚本完成后,再继续执行下一个脚本。
    • 在 rac1 上执行 /u01/app/oracle/oraInventory/orainstRoot.sh。
    • 在 rac2 上执行 /u01/app/oracle/oraInventory/orainstRoot.sh。
    • 在 rac1 上执行 /u01/app/oracle/product/10.2.0/crs_1/root.sh。
    • 在 rac2 上执行 /u01/app/oracle/product/10.2.0/crs_1/root.sh。
    rac2 上的 root.sh 脚本会自动调用 VIPCA,但会因为“The given interface(s), "eth0" is not public.Public interfaces should be used to configure virtual IPs.”错误而失败。如果您的公共接口使用不可路由的 IP 地址 (192.168.x.x),则 Oracle 集群验证实用程序 (CVU) 将无法找到合适的公共接口。一种解决方法是手动运行 VIPCA。
  11. 以 root 用户身份在第二个节点上手动调用 VIPCA。
    # /u01/app/oracle/product/10.2.0/crs_1/bin/vipca
  12. 欢迎页面:单击 Next
  13. 网络接口:选择 eth0
  14. 集群节点的虚拟 IP:
    • 节点名称:rac1
    • IP 别名:rac1-vip
    • IP 地址: 192.168.2.31
    • 子网掩码: 255.255.255.0
    • 节点名称:rac2
    • IP 别名:rac2-vip
    • IP 地址: 192.168.2.32
    • 子网掩码: 255.255.255.0
  15. 摘要:单击 Finish

    图 6

  16. 配置助手进度对话框:配置完成后,单击 OK
  17. 配置结果:单击 Exit
  18. 返回到 rac1 的执行配置脚本屏幕,然后单击 OK

    图 7

  19. 配置助手:验证所有检查均成功。OUI 在最后会执行集群件安装后检查。如果 CVU 失败,请更正问题,并以 oracle 用户身份重新运行以下命令:
    rac1-> /u01/app/oracle/product/10.2.0/crs_1/bin/cluvfy stage 
    -post crsinst -n rac1,rac2
    
    Performing post-checks for cluster services setup
    
    Checking node reachability...
    Node reachability check passed from node "rac1".
    
    Checking user equivalence...
    User equivalence check passed for user "oracle".
    
    Checking Cluster manager integrity...
    
    Checking CSS daemon...
    Daemon status check passed for "CSS daemon".
    
    Cluster manager integrity check passed.
    
    Checking cluster integrity...
    
    Cluster integrity check passed
    
    Checking OCR integrity...
    
    Checking the absence of a non-clustered configuration...
    All nodes free of non-clustered, local-only configurations.
    
    Uniqueness check for OCR device passed.
    
    Checking the version of OCR...
    OCR of correct Version "2" exists.
    
    Checking data integrity of OCR...
    Data integrity check for OCR passed.
    
    OCR integrity check passed.
    
    Checking CRS integrity...
    
    Checking daemon liveness...
    Liveness check passed for "CRS daemon".
    
    Checking daemon liveness...
    Liveness check passed for "CSS daemon".
    
    Checking daemon liveness...
    Liveness check passed for "EVM daemon".
    
    Checking CRS health...
    CRS health check passed.
    
    CRS integrity check passed.
    
    Checking node application existence...
    
    Checking existence of VIP node application (required)
    Check passed.
    
    Checking existence of ONS node application (optional)
    Check passed.
    
    Checking existence of GSD node application (optional)
    Check passed.
    
    Post-check for cluster services setup was successful.
    
  20. 安装结束:单击 Exit
阅读(1640) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-09-21 09:43:50

Oracle不开源,即使运行在开源的linux上,也照样影响中国信息安全,要坚决抵制!