VMware上安装RH4AS+Oracle10g RAC+ASM
来源:互联网 发布:工程设计优化方法手段 编辑:程序博客网 时间:2024/05/22 15:26
作者 阿九【转载时请务必以超链接形式标明文章原始出处和作者信息】
VMware上安装RH4AS+Oracle10g RAC+ASM
QQ:47538607 邮箱:daisycutter-y@163.com
一、安装环境
1.1、目录规划
节点一:D:\Vmware\RH_RAC1
节点二:D:\Vmware\RH_RAC2
共享存储:D:\Vmware\share_driver
1.2、网络规划:
节点
接口
类型
IP地址
子网掩码
rac1
rac1
公共
172.16.1.163
255.255.0.0
rac1
rac1-vip
虚拟
172.16.1.63
255.255.0.0
rac1
rac1-priv
专用
192.168.1.163
255.255.0.0
rac2
rac2
公共
172.16.1.164
255.255.0.0
rac2
rac2-vip
虚拟
172.16.1.64
255.255.0.0
rac2
rac2-priv
专用
192.168.1.164
255.255.0.0
1.3、存储规划
文件
大小
存储类型
Solaris10
6GB
Linux
Oracle Cluster
2GB
Linux
Oracle Database
4GB
ASM
Oracle CRS ocr
100MB
RAW
Oracle CRS voting
20MB
RAW
1.4、所需软件:
1、Vmware workstation 7.0
2、Oracle 10g clusterware for linux x86 32bit
3、Oracle10g database for linux x86 32bit
4、Oracle ASM包:oracleasm-2.6.9-78.ELsmp-2.0.5-1.el4.i686.rpm
oracleasm-support-2.1.3-1.el4.i386.rpm
二、配置Vmware虚拟机并安装系统
2.1这里指定的是操作系统用户名和密码
2.2选择虚拟机文件目录
2.3指定内存大小
2.4指定网卡与主机连接模式。
这里指定为host-only,也可根据自己具体情况选择。
2.5指定磁盘控制器类型,选择默认。
2.6指定磁盘大小
2.7指定磁盘文件目录
2.8添加网卡、单击Customize Hardware
2.9、开始安装。
2.10、选择安装向导语言。
2.11、分区时,选择手动分区。
2.12、磁盘空间分配
分配boot分区为100M,文件类型为:ext3
分配交换空间为 2048M,文件类型为:swap
分配根目录为:剩余全部空闲空间,文件类型为:ext3
2.13、分配IP地址。
2.14、防火墙配置
注意:一定不要启用防火墙。
2.15、指定操作系统语言。
2.16、指定时区。
2.17、指定root用户密码。
2.18、安装软件包,选择定制安装。
为了后期配置方便,这里选择安装全部软件包。
2.19、添加共享存储。
先关闭虚拟机。然后单击工具栏上的VM – setting
2.20、单击 Add,选择HardDisk,next
2.22、单击Advanced
2.23、选择SCSI 1:1
2.24、配置虚拟机文件。
在虚拟机存储目录下,打开RH_RAC1.vmx文件。添加如下文件。
disk.locking = "false"
diskLib.dataCacheMaxSize = "0"
diskLib.dataCacheMaxReadAheadSize ="0"
diskLib.DataCacheMinReadAheadSize ="0"
diskLib.dataCachePageSize ="4096"
diskLib.maxUnsyncedWrites = "0"
scsi1.sharedBus = "VIRTUAL"
scsi1:1.deviceType = "disk"
三、配置第一个系统
3.1、新建Oracle用户组和用户
[root@rac1 ~]# groupadd -g 201 oinstall
[root@rac1 ~]# groupadd -g 202 dba
[root@rac1 ~]# useradd -u 201 -g oinstall-G dba oracle
[root@rac1 ~]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionaryword
Retype new UNIX password:
passwd: all authentication tokens updatedsuccessfully.
[root@rac1 ~]#
3.2、配置Oracle用户环境变量
以Oracle用户登录,配置.bash_profile文件
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startupprograms
#export PS1="`id -un`@`/bin/hostname-s`-> "
export EDITOR=vi
export ORACLE_SID=devdb1
export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/product/db_1
export ORA_CRS_HOME=$ORACLE_BASE/product/crs_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
exportPATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
export NLS_LANG='SimplifiedChinese_China'.ZHS16GBK
umask 022
#ALIAS 以下为个人设置,不用写入。
alias tns=$ORACLE_HOME/network/admin
alias sq=”$ORACLE_HOME/bin/sqlplus '/assysdba'”
alias lss='lsnrctl start'
alias lst='lsnrctl stop'
alias vb='vi ~/.bash_profile'
alias cb='cat ~/.bash_profile'
alias zb='. ~/.bash_profile'
#PATH=$PATH:$HOME/bin
#export PATH
unset USERNAME
3.3、创建Oracle软件目录
[oracle@rac1 ~]$ mkdir -p $ORACLE_HOME
[oracle@rac1 ~]$ mkdir -p $ORA_CRS_HOME
3.4、检查安装Oracle软件所需系统包。
以root 用户登录,执行如下命令:
[root@rac1 ~]# rpm –qa binutils
binutils-2.15.92.0.2-13.EL4
compat-db-4.1.25-9
compat-libstdc++-296-2.96-132.7.2
control-center-2.8.0-12
gcc-3.4.3-22.1.EL4
gcc-c++-3.4.3-22.1.EL44
glibc-2.3.4-2.9
glibc-common-2.3.4-2.9
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-22.1
libstdc++-devel-3.4.3-22.1
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2
setarch-1.6-1
libaio-0.3.105-2.i386.rpm
libaio-devel-0.3.105-2.i386.rpm
3.5、规划共享存储.
以root用户登录。
[root@rac1 ~]# fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1044 8281507+ 83 Linux
/dev/sda3 1045 1305 2096482+ 82 Linux swap
Disk /dev/sdb: 5294 MB, 5551161344bytes
64 heads, 32 sectors/track, 512 cylinders
Units = cylinders of 2048 * 512 = 1048576bytes
Disk /dev/sdb doesn't contain a validpartition table
[root@rac1~]# fdisk /dev/sdb
Device contains neither a valid DOSpartition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes willremain in memory only,
until you decide to write them. After that,of course, the previous
content won't be recoverable.
Warning: invalid flag 0x0000 of partitiontable 4 will be corrected by w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-512, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK(1-512, default 512): 70
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (1-512, default 1): 71
Last cylinder or +size or +sizeM or +sizeK(1-512, default 512):
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
3.6、配置裸设备自动挂载
让系统自动挂载裸设备,在/etc/sysconfig/rawdevices文件中添加如下内容
/dev/raw/raw1 /dev/sdb1
/dev/raw/raw2 /dev/sdb2
/dev/raw/raw3 /dev/sdb3
使修改立即生效,以root用户执行如下命令:
/sbin/service rawdevices restart
root@rac1-> /sbin/service rawdevicesrestart
Assigning devices:
/dev/raw/raw1 --> /dev/sdb1
/dev/raw/raw1: bound to major 8, minor 17
/dev/raw/raw2 --> /dev/sdb2
/dev/raw/raw2: bound to major 8, minor 33
/dev/raw/raw3 --> /dev/sdb3
/dev/raw/raw3: bound to major 8, minor 49
done
root@rac1->
3.7、永久更改裸设备拥有者
当系统重新引导时,raw设备默认会更改拥有者为root,为防止raw被重新更改拥有者,修改/etc/udev/permissions.d/50-udev.permissions文件,为原始行“raw/*:root:disk:0660”添加注释,然后添加一个新行“raw/*:oracle:dba:0660”。
# raw devices
ram*:root:disk:0660
#raw/*:root:disk:0660
raw/*:oracle:dba:0660
3.8、修改RAW的归属主群和权限
root@rac1-> chown oracle:dba/dev/raw/raw[1-3]
root@rac1-> chmod 660 /dev/raw/raw[1-3]
root@rac1-> ls -lat /dev/raw/raw*
crw-rw---- 1 oracle dba 162, 3 6月 12 18:34 /dev/raw/raw3
crw-rw---- 1 oracle dba 162, 2 6月 12 18:34 /dev/raw/raw2
crw-rw---- 1 oracle dba 162, 1 6月 12 18:34 /dev/raw/raw1
root@rac1->
3.9、集群系统 host文件配置
将如下内容添加到/etc/hosts文件中
127.0.0.1 localhost
172.16.1.163 rac1.localdomain.com rac1
172.16.1.164 rac2.localdomain.com rac2
172.16.1.63 rac1-vip.localdomain.comrac1-vip
172.16.1.64 rac2-vip.localdomain.comrac2-vip
192.168.1.163 rac1-priv.localdomain.comrac1-priv
192.168.1.164 rac2-priv.localdomain.comrac2-priv
并确保/etc/sysconfig/network文件内容如下,红色字体:
root@rac1-> cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=rac1.localdomain.com(或 rac1)
GATEWAY=172.16.1.1
3.10、提高oracle用户shell限制。
编辑/etc/security/limits.conf、/etc/pam.d/login 和 /etc/profile添加如下内容:
/etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
/etc/pam.d/login
session required /lib/security/pam_limits.so
/etc/profile
if [ $USER = "oracle" ]; then
if [ $SHELL= "/bin/ksh" ]; then
ulimit-p 16384
ulimit-n 65536
else
ulimit-u 16384 -n 65536
fi
fi
3.11、配置内核参数。
编辑/etc/sysctl.conf文件,加入如下内容:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
要使内核参数立即生效,执行:/sbin/sysctl -p
3.12、配置hangcheck timer 内核模块。
内核模块可监控系统的运行情况,并重新启动出现故障的 RAC 节点。它使用两个参数,即hangcheck_tick(定义系统检查频率)和hangcheck_margin(定义在重置 RAC 节点前的最大挂起延时)来确定节点是否出现故障。
/etc/modprobe.conf
optionshangcheck-timer hangcheck_tick=30 hangcheck_margin=180
要立即加载模块,执行“modprobe -v hangcheck-timer”。
root@rac1-> modprobe -v hangcheck-timer
insmod /lib/modules/2.6.9-78.ELsmp/kernel/drivers/char/hangcheck-timer.kohangcheck_tick=30 hangcheck_margin=180
3.13、安装oracle ASM包
[root@rac1 ~]# rpm -Uvhoracleasm-support-2.1.3-1.el4.i386.rpm
警告:oracleasm-support-2.1.3-1.el4.i386.rpm:V3 DSA 簽章:NOKEY, keyID b38a8516
準備中... ########################################### [100%]
1:oracleasm-support ########################################### [100%]
[root@rac1 ~]#
root@rac2-> rpm -Uvh oracleasm-2.6.9-78.ELsmp-2.0.5-1.el4.i686.rpm
警告:oracleasm-2.6.9-78.ELsmp-2.0.5-1.el4.i686.rpm:V3 DSA 簽章:NOKEY, keyID b38a8516
準備中... ########################################### [100%]
1:oracleasm-2.6.9-78.ELsm###########################################[100%]
3.14、生成第二个系统
关闭系统,并拷贝文件到第二个虚拟机目录
3.15、修改第二个系统必要文件
修改/etc/hosts将主机名rac1改为rac2.
修改IP为第二节点IP
修改orcle主目录下.bash_profile中的ORACLE_SID为devdb2
四、双机配置
4.1、配置用户等效性
在两个节点上都执行下面的命令
节点一
oracle@rac1-> mkdir~/.ssh
oracle@rac1-> chmod700 ~/.ssh
oracle@rac1->ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key(/home/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in/home/oracle/.ssh/id_rsa.
Your public key has been saved in/home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
86:01:2b:a7:4b:8c:25:81:84:19:6b:dd:e6:88:40:8coracle@rac1
oracle@rac1->ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key(/home/oracle/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in/home/oracle/.ssh/id_dsa.
Your public key has been saved in/home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
c6:0e:a4:09:7c:6b:6b:b9:0f:37:c1:d2:8a:e4:30:5aoracle@rac1
oracle@rac1->
节点二
oracle@rac2-> mkdir~/.ssh
oracle@rac2-> chmod700 ~/.ssh
oracle@rac2->ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key(/home/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in/home/oracle/.ssh/id_rsa.
Your public key has been saved in/home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
9a:26:29:29:6f:e6:b6:92:ee:c2:e6:40:c3:9b:78:e8oracle@rac2
oracle@rac2->ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key(/home/oracle/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in/home/oracle/.ssh/id_dsa.
Your public key has been saved in/home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
9a:26:29:29:6f:e6:b6:92:ee:c2:e6:40:c3:9b:78:e8oracle@rac2
oracle@rac2->
在节点一上执行如下命令:
oracle@rac1-> cat~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
oracle@rac1-> cat~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
oracle@rac1-> ssh rac2cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
The authenticity of host 'rac2(172.16.1.154)' can't be established.
RSA key fingerprint is90:a8:f9:45:d5:fa:7c:60:6d:bb:cf:0e:16:6f:4c:25.
Are you sure you want to continueconnecting (yes/no)? yes
Warning: Permanently added'rac2,172.16.1.154' (RSA) to the list of known hosts.
oracle@rac2's password:
oracle@rac1-> ssh rac2cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
oracle@rac2's password:
oracle@rac1-> scp~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
authorized_keys 100% 1865 1.8KB/s 00:00
oracle@rac1->
在节点二上执行如下命令:
oracle@rac2-> cat~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
oracle@rac2-> cat~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
oracle@rac2-> ssh rac1 cat ~/.ssh/id_rsa.pub >>~/.ssh/authorized_keys
The authenticity of host 'rac1(172.16.1.153)' can't be established.
RSA key fingerprint is90:a8:f9:45:d5:fa:7c:60:6d:bb:cf:0e:16:6f:4c:25.
Are you sure you want to continueconnecting (yes/no)? yes
Warning: Permanently added'rac1,172.16.1.153' (RSA) to the list of known hosts.
oracle@rac2-> ssh rac1 cat ~/.ssh/id_dsa.pub >>~/.ssh/authorized_keys
oracle@rac2->
在两个节点上,以oracle用户分别执行如下命令,如不提示输入密码正配置正确
ssh rac1 date
ssh rac2 date
ssh rac1-priv date
ssh rac2-priv date
ssh rac1.localdomain.com date
ssh rac2.localdomain.com date
ssh rac1-priv.localdomain.com date
ssh rac2-priv.localdomain.com date
oracle@rac1-> ssh rac1 date
一 6月 13 15:32:30 CST 2011
oracle@rac1-> ssh rac2 date
一 6月 13 15:32:39 CST 2011
oracle@rac1-> ssh rac1-priv date
一 6月 13 15:32:37 CST 2011
oracle@rac1-> ssh rac2-priv date
一 6月 13 15:32:47 CST 2011
oracle@rac1-> ssh rac1.localdomain.comdate
一 6月 13 15:32:49 CST 2011
oracle@rac1-> ssh rac2.localdomain.comdate
一 6月 13 15:33:01 CST 2011
oracle@rac1-> sshrac1-priv.localdomain.com date
一 6月 13 15:33:05 CST 2011
oracle@rac1-> sshrac2-priv.localdomain.com date
一 6月 13 15:33:18 CST 2011
oracle@rac1->
五、安装Oracle Clusterware
5.1、指定CRS主目录
5.2、处理内存警告
在警告处打勾,用户验证内容大小。
5.3、添加第二节点网络接口名
5.4、指定网络接口类型
5.5、指定集群件注册磁盘。
5.7、指定表决磁盘位置。
5.8、执行root脚本
以root用户在每个节点上顺序执行以下两个脚本
root@rac1-> /home/oracle/oraInventory/orainstRoot.sh
更改权限/home/oracle/oraInventory到 770.
更改组名/home/oracle/oraInventory到 oinstall.
脚本的执行已完成
root@rac1->/home/oracle/product/crs_1/root.sh
WARNING: directory '/home/oracle/product'is not owned by root
WARNING: directory '/home/oracle' is notowned by root
Checking to see if Oracle CRS stack isalready configured
/etc/oracle does not exist. Creating itnow.
Setting the permissions on OCR backupdirectory
Setting up NS directories
Oracle Cluster Registry configurationupgraded successfully
WARNING: directory '/home/oracle/product'is not owned by root
WARNING: directory '/home/oracle' is notowned by root
assigning default hostname rac1 for node 1.
assigning default hostname rac2 for node 2.
Successfully accumulated necessary OCRkeys.
Using ports: CSS=49895 CRS=49896 EVMC=49898and 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 90seconds.
/home/oracle/.bash_profile: line 25: alias:/as sysdba: not found
Adding daemons to inittab
Expecting the CRS daemons to be up within600 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 CRSdaemons.
root@rac2->/home/oracle/oraInventory/orainstRoot.sh
更改权限/home/oracle/oraInventory到 770.
更改组名/home/oracle/oraInventory到 oinstall.
脚本的执行已完成
root@rac2->/home/oracle/product/crs_1/root.sh
WARNING: directory '/home/oracle/product'is not owned by root
WARNING: directory '/home/oracle' is notowned by root
Checking to see if Oracle CRS stack isalready configured
/etc/oracle does not exist. Creating itnow.
Setting the permissions on OCR backupdirectory
Setting up NS directories
Oracle Cluster Registry configurationupgraded successfully
WARNING: directory '/home/oracle/product'is not owned by root
WARNING: directory '/home/oracle' is notowned by root
assigning default hostname rac1 for node 1.
assigning default hostname rac2 for node 2.
Successfully accumulated necessary OCRkeys.
Using ports: CSS=49895 CRS=49896 EVMC=49898and 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 90seconds.
/home/oracle/.bash_profile: line 24: alias:/as sysdba: not found
Adding daemons to inittab
Expecting the CRS daemons to be up within600 seconds.
CSS is active on these nodes.
rac1
rac2
CSS is active on all nodes.
Waiting for the Oracle CRSD and EVMD tostart
Oracle CRS stack installed and runningunder init(1M)
Running vipca(silent) for configuringnodeapps
给定的接口"eth0" 不是公共接口。应使用公共接口来配置虚拟 IP。
root@rac2->
5.9、vip安装。
在第二节点上以root用户执行$ORA_CRS_HOME/bin/vipca,进行配置
5.9、单击确定
5.10、安装后检查
在任一节点已root用户执行如下命令:
root@rac1-> /home/oracle/product/crs_1/bin/crs_stat-t
Name Type Target State Host
------------------------------------------------------------
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2
六、安装Oracle Database软件
6.1、指定Oracle主目录
6.2、选择集群安装
root@rac1->/home/oracle/product/db_1/root.sh
RunningOracle10 root.sh script...
Thefollowing environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /home/oracle/product/db_1
Enter thefull pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating/etc/oratab file...
Entrieswill be added to the /etc/oratab file as needed by
DatabaseConfiguration Assistant when a database is created
Finishedrunning generic part of root.sh script.
Nowproduct-specific root actions will be performed.
root@rac1->
root@rac2->/home/oracle/product/db_1/root.sh
RunningOracle10 root.sh script...
Thefollowing environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /home/oracle/product/db_1
Enter thefull pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating/etc/oratab file...
Entrieswill be added to the /etc/oratab file as needed by
DatabaseConfiguration Assistant when a database is created
Finishedrunning generic part of root.sh script.
Nowproduct-specific root actions will be performed.
root@rac2->
七、配置Oracle 监听
7.1、监听配置后检查
在任一节点,以root用户执行如下命令
root@rac1->/home/oracle/product/crs_1/bin/crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....C1.lsnrapplication ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora....C2.lsnrapplication ONLINE ONLINE rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2
root@rac1->
八、配置Oracle ASM磁盘
8.1、配置Oracle ASM磁盘
在两个节点上执行
root@rac1->/etc/init.d/oracleasm configure
Configuringthe Oracle ASM library driver.
This willconfigure the on-boot properties of the Oracle ASM library
driver. The following questions will determinewhether the driver is
loaded onboot and what permissions it will have. The current values
will beshown in brackets ('[]'). Hitting<ENTER> without typing an
answerwill keep that current value. Ctrl-Cwill abort.
Defaultuser to own the driver interface []: oracle
Defaultgroup to own the driver interface []: dba
StartOracle ASM library driver on boot (y/n) [n]: y
Scan forOracle ASM disks on boot (y/n) [y]: y
WritingOracle ASM library driver configuration: done
Initializingthe Oracle ASMLib driver: [ OK ]
Scanningthe system for Oracle ASMLib disks: [ OK ]
root@rac2->/etc/init.d/oracleasm configure
Configuringthe Oracle ASM library driver.
This willconfigure the on-boot properties of the Oracle ASM library
driver. The following questions will determinewhether the driver is
loaded onboot and what permissions it will have. The current values
will beshown in brackets ('[]'). Hitting<ENTER> without typing an
answerwill keep that current value. Ctrl-Cwill abort.
Defaultuser to own the driver interface []: oracle
Defaultgroup to own the driver interface []: dba
StartOracle ASM library driver on boot (y/n) [n]: y
Scan forOracle ASM disks on boot (y/n) [y]: y
WritingOracle ASM library driver configuration: done
Initializingthe Oracle ASMLib driver: [ OK ]
Scanningthe system for Oracle ASMLib disks: [ OK ]
root@rac2->
8.2、创建磁盘组
在任一节点,以root用户执行如下命令
root@rac1->/etc/init.d/oracleasm createdisk VOL1 /dev/sdb3
Markingdisk "VOL1" as an ASM disk: [ OK ]
root@rac1->/etc/init.d/oracleasm scandisks
Scanningthe system for Oracle ASMLib disks: [ OK ]
root@rac1->/etc/init.d/oracleasm listdisks
VOL1
root@rac1->
九、安装Oracle Database
9.1、Database安装后检查
在任一节点,已root用户执行如下命令:
root@rac1->/oracle/product/crs_1/bin/crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.devdb.db application ONLINE ONLINE rac2
ora....b1.instapplication ONLINE ONLINE rac1
ora....b2.instapplication ONLINE ONLINE rac2
ora....SM1.asmapplication ONLINE ONLINE rac1
ora....C1.lsnrapplication ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora....SM2.asmapplication ONLINE ONLINE rac2
ora....C2.lsnrapplication ONLINE ONLINE rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2
root@rac1->
- VMware上安装RH4AS+Oracle10g RAC+ASM
- VMware上安装Oracle 10g RAC-ASM+裸设备
- centos4.7+rac+oracle10g + asm安装遇到问题
- Oracle10GR2 RAC+ASM on RHAS4U4在VMWare上的安装笔记
- VMWARE上suse linux 10环境: Oracle 10g cluster+asm+rac安装流程
- 在windows上安装Oracle10g RAC
- Oracle10g RAC Oracle Linux 上安装
- ORACLE10G+asm+RAC集群(linux)
- 虚拟机VMware安装OracleRAC.RedHat Enterprise AS4安装Oracle10g RAC
- 虚拟机VMware安装OracleRAC.RedHat Enterprise AS4安装Oracle10g RAC
- 手把手教你用vmware安装oracle10g RAC(一)
- 手把手教你用vmware安装oracle10g RAC(二)
- 手把手教你用vmware安装oracle10g RAC(三)
- 手把手教你用vmware安装oracle10g RAC(四)
- 手把手教你用vmware安装oracle10g RAC(五)
- [三思笔记]-手把手教你用vmware安装oracle10g RAC
- 配置安装ORacle10g ASM
- Vmware上安装Solaris10+Oracle10gRAC+ASM
- 软件工程师的视角看网络(网络那点事)
- linux系统下安装JDK
- AWR快照的深入分析和方法
- ClassLoader 类加载器
- 自己修改的lucene的jjt文件
- VMware上安装RH4AS+Oracle10g RAC+ASM
- thunderbird设置方法
- 多线程网络爬虫
- 首届华中区程序设计邀请赛暨第十届武汉大学程序设计大赛网络预赛A题(HDOJ-4215)
- linux mlockall mlock munlock munlockall
- MySQL Getting Started
- Vmware上安装Solaris10+Oracle10gRAC+ASM
- [置顶] Android 【真机】与【模拟器】触摸屏事件的模拟差异分析
- AIX 6.1安装 Oracle11g