分类: Oracle
2006-09-28 15:24:28
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 h2:35:respawn:/etc/init.d/init.cssd fatal >/dev/null 2>&1 h3:35:respawn:/etc/init.d/init.crsd run >/dev/null 2>&1 修改为
h1:23:respawn:/etc/init.d/init.evmd run >/dev/null 2>&1 h2:23:respawn:/etc/init.d/init.cssd fatal >/dev/null 2>&1 h3:23:respawn:/etc/init.d/init.crsd run >/dev/null 2>&1
修改$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 修改为
h1:23:respawn:/etc/init.d/init.cssd run >/dev/null 2>&1
修改$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:
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:
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的安装。
chinaunix网友2008-08-06 22:09:41
我是按你的步骤来的啊,还是报同样的错 [root@rac1 ~]# /home/db/oracle/app/product/10.2.0/crs/root.sh WARNING: directory '/home/db/oracle/app/product/10.2.0' is not owned by root WARNING: directory '/home/db/oracle/app/product' is not owned by root WARNING: directory '/home/db/oracle/app' is not owned by root WARNING: directory '/home/db/oracle' is not owned by root Checking to see if Oracle CRS stack is already configured Oracle CRS stack is already configured and will be running under init(1M)