3. 各节点的配置
Perform the following steps on all nodes in the cluster:
3.1 Mount the target Oracle partition(s). I used only /dev/sdb7, and I chose /mnt/oracle as the target for Oracle. During installation, Oracle asked you to run a script which set up symbolic links and/or copy files. We must Run this script on each node as the root user:
# mount -t ext3 /dev/sdb1 /mnt/oracle # /mnt/oracle/home/root.sh # umount /mnt/oracle
3.2 Copy /etc/oratab and /etc/oraInst.loc from the install node on which to /etc using scp or another utility .
3.3 Since the cluster daemons are still not running, copy
/etc/cluster/cluster.conf from the install node in to /etc/cluster using scp.
3.4 At your option, you may wish to perform basic sanity checks on the Oracle installation. See Part 2, steps 8-10; the procedure is the same. DO NOT START THE ORACLE SERVICE ON MORE THAN ONE NODE. 4. 完成集群和起动服务
Hacks in oracledb.sh
4.1 Automatically switches to the correct UID at the right time. RGmanager runs as root, while Oracle must run as the oracle user.
4.2 Automatically creates and sets LD_PRELOAD environment variables so that Oracle will always get the right information from the gethostname(2) call. This means that you can not start or stop the clustered Oracle instance outside of the oracledb.sh resource agent/script without also setting the LD_PRELOAD environment variable!, i.e.:
# export LD_PRELOAD=$ORACLE_HOME/hostname.so
This library is not created until the oracle.sh script is run for the first time.
4.3 The oracledb.sh script is designed to be used outside of RHCS4 as a regular init script, too. Change the environment variables, and it should work.
五、需要注意
1、如果使用了防火墙,则: 如下端口需要被打开:
41966 rgmanager/clurgmgrd tcp 41967 rgmanager/clurgmgrd tcp 41968 rgmanager/clurgmgrd tcp 41969 rgmanager/clurgmgrd tcp 50006 ccsd tcp 50007 ccsd udp 50008 ccsd tcp 50009 ccsd tcp 21064 dlm tcp
6809 (RHEL4 and under) cman (RHEL4 and under) udp 5405 (RHEL5 and above) openais (RHEL5 and above) udp 14567 gnbd tcp
六、RHCS及ORACLE的管理
1、RHCS的启动与停止顺序
service rgmanager stop service gfs stop service clvmd stop service fenced stop service cman stop service ccsd stop
service ccsd start service cman start service fenced start service clvmd start service gfs start
service rgmanager start
2、常用命令
#clustat –l 结点与服务状态
#clusvadm –r 各结点之间的手动切换
3、根据使用过程的经验,再加入…….
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库RHCS+ORACLE10G安装(5)在线全文阅读。
相关推荐: