首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 冲浪宝典 > 网络资源 > 在Debia上安装 Oracle 10gR2 RAC: 安装oracle clusterware
【标  题】:在Debia上安装 Oracle 10gR2 RAC: 安装oracle clusterware
【关键字】:Debia,Oracle,10gR2,RAC,oracle,clusterware
【来  源】:http://www.cublog.cn/u/7667/showart.php?id=177981

在Debia上安装 Oracle 10gR2 RAC: 安装oracle clusterware

1 以oracle登陆rac1,然后使用startx启动图形界面
2 打开一个终端,运行/mnt/oracle/10201/clusterware/runInstaller -IgnoreSysPreReqs启动安装界面
3 Welcome, 按"Next"
4 Specify Inventory Directory and credentials "Enter the full path of the inventory directory" 中输入"/u01/app/oracle/oraInventory"(默认), "Specify Operating System group name:"中输入"oinstall"(默认),按"Next"
5 Specify Home Details中指定目录Name 中输入"OraCrs10g_home(默认),Path中输入"/u01/app/oacle/product/10.2.0/crs"( 默认值为"/u01/app/oacle/oracle/product/10.2.0/crs",最好修改), 按"Next"
6 指定集群配置,按"add",Public Node Name: 中输入 "rac2", Private Node Name:中输入"rac2-priv",virtual host name中输入"rac2-vip" 按"Ok"添加节点。按"next"进入下一步配置。
7 "Specify Network Interface Usage" 指定网络设置选择eth0,点"Edit",将"Interface Type"设置为"Public", 然后点"OK"确认,按"Next"
8 "Specify Oracle cluster Registry(OCR) Location", 将"OCR Configuration"设置为"External Redundancy","Specify OCR Location" 为/dev/raw/raw1,按"Next".
9 "Specify voting Disk Location" "Voting Disk configuration"设置为"External Redundancy", Voting Disk Location设置为"/dev/raw/raw2",按"Next".
10 "Summary" 按"Install"开始安装
11 安装结束后oui提示以root身份执行两个配置脚本/u01/app/oracle/oraInventory/orainstRoot.sh和 /u01/app/oracle/product/10.2.0/crs/root.sh
在rac1,rac2上分别运行/u01/app/oracle/oraInventory/orainstRoot.sh
rac1:~# /u01/app/oracle/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oracle/oraInventory to 770.
Changing groupname of /u01/app/oracle/oraInventory to oinstall.
The execution of the script is complete

修改$ORACLE_CRS_HOME/crs/admin/init.crsd,将第79行
$SU -l $ORACLE_USER -c "$ECHO \$TZ > /tmp/oratz.$$ " > /dev/null 2>&1
修改为
$SU - $ORACLE_USER -c "$ECHO \$TZ > /tmp/oratz.$$ " > /dev/null 2>&1

修改$ORACLE_CRS_HOME/crs/admin/inittab,将
h1:35:respawn:/etc/init.d/init.evmd run >/dev/null 2>&1 </dev/null
h2:35:respawn:/etc/init.d/init.cssd fatal >/dev/null 2>&1 </dev/null
h3:35:respawn:/etc/init.d/init.crsd run >/dev/null 2>&1 </dev/null
修改为
h1:23:respawn:/etc/init.d/init.evmd run >/dev/null 2>&1 </dev/null
h2:23:respawn:/etc/init.d/init.cssd fatal >/dev/null 2>&1 </dev/null
h3:23:respawn:/etc/init.d/init.crsd run >/dev/null 2>&1 </dev/null

修改$ORACLE_CRS_HOME/css/admin/init.cssd,将第 181行
SU="/bin/su -l"
修改为
SU="/bin/su -"

修改$ORACLE_CRS_HOME/css/admin/inittab_local,将
h1:35:respawn:/etc/init.d/init.cssd run >/dev/null 2>&1 </dev/null
修改为
h1:23:respawn:/etc/init.d/init.cssd run >/dev/null 2>&1 </dev/null

修改$ORACLE_CRS_HOME/evm/admin/init.evmd,将第65行
SU="/bin/su -l"
修改为
SU="/bin/su -"
将$ORACLE_CRS_HOME/install/rootconfig 第344,345行
RCSDIR="/etc/rc.d/rc3.d /etc/rc.d/rc5.d"
RCKDIR="/etc/rc.d/rc0.d /etc/rc.d/rc1.d /etc/rc.d/rc2.d /etc/rc.d/rc4.d /etc/rc.d/rc6.d"
修改为
RCSDIR="/etc/rc.d/rc3.d /etc/rc.d/rc2.d"
RCKDIR="/etc/rc.d/rc0.d /etc/rc.d/rc1.d /etc/rc.d/rc5.d /etc/rc.d/rc4.d /etc/rc.d/rc6.d"

运行/u01/app/oracle/product/10.2.0/crs/root.sh
rac1:/u01/app/oracle/product/10.2.0/crs# /u01/app/oracle/product/10.2.0/crs/root.sh
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.

Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
assigning default hostname rac1 for node 1.
assigning default hostname rac2 for node 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: rac1 rac1-priv rac1
node 2: rac2 rac2-priv rac2
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Now formatting voting device: /dev/raw/raw2
Format of 1 voting devices complete.
Startup will be queued to init within 90 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
rac1
CSS is inactive on these nodes.
rac2
Local node checking complete.
Run root.sh on remaining nodes to start CRS daemons.
rac1:/u01/app/oracle/product/10.2.0/crs#


rac2:/u01/app/oracle/product/10.2.0/crs# ./root.sh
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.

Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
assigning default hostname rac1 for node 1.
assigning default hostname rac2 for node 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: rac1 rac1-priv rac1
node 2: rac2 rac2-priv rac2
clscfg: Arguments check out successfully.

NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 90 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
rac1
rac2
CSS is active on all nodes.
Waiting for the Oracle CRSD and EVMD to start
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
The given interface(s), "eth0" is not public. Public interfaces should be used to configure virtual IPs.

以root的身份运行$ORACLE_CRS_HOME/bin/vipca,需要图形界面
Welcome,按"Next",network interface 选择eth0,按"next", rac1 的 ip alias name 设置为rac1-vip ip address设置为192.168.0.191
rac2的ip alias name 设置为rac2-vip,ip address 设置为192.168.0.192,按"Next", 出现summary按"Finish" 万成设定。等待配制万成后点”OK“却认,弹出"configuration Results",按"Exit"退出
反回安装界面,点"Ok"却认完成root脚本的运行
点"Exit"完成crs的安装。
在Debia上安装 Oracle 10gR2 RAC: 安装oracle 数据库:【上一篇】
set autotrace on:【下一篇】
【相关文章】
  • 在Debia上安装 Oracle 10gR2 RAC: 安装oracle 数据库
  • 在Debia上安装 Oracle 10gR2 RAC: 配置监听器
  • 在Debia上安装 Oracle 10gR2 RAC: 建立数据库
  • Oracle和SUN Solaris内核参数
  • Debian NFS 配置
  • 在Debia上安装 Oracle 10gR2 RAC: 虚拟机的建立
  • 在Debia上安装 Oracle 10gR2 RAC:配置虚拟机
  • 在Debia上安装 Oracle 10gR2 RAC: 安装debian gnu/linux 3.1
  • 在Debia上安装 Oracle 10gR2 RAC:建立虚拟机集群
  • 在Debia上安装 Oracle 10gR2 RAC: 定制软件包
  • 【随机文章】
  • 硬盘微码升级
  • VB打造超酷个性化菜单(2)
  • Webmin的安装使用
  • AltoMP3 Maker的破解
  • ASP+ 与 Java 2
  • Win[sp2]下Apache无法正常工作的解法办法
  • FreeBSD dnstracer 命令介绍
  • 怎么捅破那层纸?
  • 虚函数(方法)的重载
  • 以太网调试器的实现
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.