1、hp rx26602+hp eva4400硬件环境:hp rx2660*2+hp eva4400软件环境:hpux 11.23,oracle 10g for hpux,oracle clusterware,mc/serviguard 11.181.安装HPUX2.打补丁,参照文档即可,或打到magepatch dec.12.07以后也可以3.安装mc/sg+SGeRAC(hp MC/Serviceguard为配合oracle rac所使用的模块)4.规划存储lock vg:1Grac:100G5.修改内核参数kctune -h nproc=4096kctune -h ksi_alloc_max
2、=(nproc*8)kctune -h max_thread_proc=1024kctune -h maxdsiz=1073741824kctune -h maxdsiz_64bit=2147483648kctune -h maxssiz=134217728kctune -h maxssiz_64bit=1073741824略过500字6.创建ORACLE用户和组groupadd -g 201 dbagroupadd -g 200 oinstalluseradd -u 200 -g oinstall -G dba,oinstall oracle7.调整hosts文件# vi /etc/host
3、s127.0.0.1 localhost192.168.10.7 his1192.168.10.8 his2192.168.10.3 his1-vip192.168.10.4 his2-vip10.0.0.1 his1_priv10.0.0.2 his2_priv8.配置mc/sg# cmquerycl -v -C /etc/cmcluster/cluster.ascii -n his1 -n his2# vi cmcluster.asciiCLUSTER_NAME rac-testFIRST_CLUSTER_LOCK_VG /dev/vglockNODE_NAME his1 NETWORK_
4、INTERFACE lan0 HEARTBEAT_IP 192.168.10.7 NETWORK_INTERFACE lan1 HEARTBEAT_IP 10.0.0.1 FIRST_CLUSTER_LOCK_PV /dev/dsk/c2t0d1NODE_NAME his2 NETWORK_INTERFACE lan0 HEARTBEAT_IP 192.168.10.8 NETWORK_INTERFACE lan1 HEARTBEAT_IP 10.0.0.2 FIRST_CLUSTER_LOCK_PV /dev/dsk/c2t0d1HEARTBEAT_INTERVAL 1000000NODE_
5、TIMEOUT 6000000 AUTO_START_TIMEOUT 600000000NETWORK_POLLING_INTERVAL 2000000NETWORK_FAILURE_DETECTION INOUTMAX_CONFIGURED_PACKAGES 150VOLUME_GROUP /dev/vgracOPS_VOLUME_GROUP /dev/vgrac# cmcheckconf -v -C /etc/cmcluster/cluster.ascii# vgchange a y /dev/vglock# vgchange a y /dev/vgrac# cmapplyconf -v
6、-C /etc/cmcluster/cluster.ascii9.创建DB及CRS安装目录# mkdir /oracle# mkidr /oracle/db# mkdir /oracle/crs修改目录属主及权限# chown -R oracle:dba /oracle# chmod -R 755 /oracle10.取消卷组的自动激活#vi /etc/lvmrcAUTO_VG_ACTIVATE=011.安装crs另附:root.sh执行步骤# /oracle/crs/root.shWARNING: directory /oracle is not owned by rootChecking
7、to see if Oracle CRS stack is already configuredChecking to see if any 9i GSD is up/var/opt/oracle does not exist. Creating it now.Setting the permissions on OCR backup directorySetting up NS directoriesOracle Cluster Registry configuration upgraded successfullyWARNING: directory /oracle is not owne
8、d by rootclscfg: EXISTING configuration version 3 detected.clscfg: version 3 is 10G Release 2.Successfully accumulated necessary OCR keys.Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.node : node 1: his1 his1_priv his1node 2: his2 his2_priv his2clscfg: Arguments check out successfully.N
9、O KEYS WERE WRITTEN. Supply -force parameter to override.-force is destructive and will destroy any previous clusterconfiguration.Oracle Cluster Registry for cluster has already been initializedStartup will be queued to init within 30 seconds.Adding daemons to inittabExpecting the CRS daemons to be
10、up within 600 seconds.CSS is active on these nodes. his1 his2CSS is active on all nodes.Waiting for the Oracle CRSD and EVMD to startOracle CRS stack installed and running under init(1M)Running vipca(silent) for configuring nodeappsThe given interface(s), lan0 is not public. Public interfaces should
11、 be used to configure virtual IPs.#12.配置集群VIP13.安装数据库软件再开个窗口进入ROOT用户模式,执行如下命令# cd /oracle/db# ./root.shRunning Oracle10 root.sh script.The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /oracle/dbEnter the full pathname of the local bin directory: /usr/local/bin: Copyi
12、ng dbhome to /usr/local/bin . Copying oraenv to /usr/local/bin . Copying coraenv to /usr/local/bin .Creating /etc/oratab file.Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1