1 Linux平台下安装oracle安装的集群的实验
1.1本案例的实验的安装环境的准备:
在安装之前需要对环境进行了解:
windows 环境
CPU
Pentium® Dual-Core T4500 2.3GHz
RAM
2G
系统位数
32 操作系统
HDD
240G
软件的环境
虚拟机
VirtualBox-4.1.18-78361-Win
linux软件
OracleLinux-R5-U8-Server-i386-dvdiso
oracle 软件
10201_clusterware_linux32
10201_database_linux32
p8202632_10205_linux32
网络的规划:
IP 地址
主机名
类型
解析方式
192.168.1.172
vrh3
public
DNS 或/etc/hosts
192.168.1.186
vrh3-vip
Virtual
DNS 或/etc/hosts
192.168.1.187
vrh4
public
DNS 或/etc/hosts
192.168.1.188
vrh4-vip
Virtual
DNS 或/etc/hosts
172.168.1.191
vrh3-priv
private
/etc/hosts
172.168.1.192
vrh4-priv
private
/etc/hosts
vm box,linux的安装
首先安装vm box安装好打开界面如下:
1.2.1在vm上 创建虚拟电脑具体步骤参照vm新建虚拟电脑文档。
1.2.2 在Vbox上安装OracleEnterprise Linux 5.8虚拟主机 步骤参照 linux安装文档
2 配置并且克隆Oracle Enterprise Linux 5.8虚拟主机
2.1 在vrh3上安装 Oracle Validated Configuration
[root@vrh3~]# mkdir /media/disk
[root@vrh3~]# mount /dev/cdrom /media/disk
mount:block device /dev/cdrom is write-protected, mounting read-only
touch/etc/yum.repos.d/public-yum-el5.repo,并加入以下内容
[oel5]
name =Enterprise Linux 5.8 DVD
baseurl=file:///media/disk/Server/
gpgcheck=0
enabled=1
yuminstall oracle-validated
这个过程中建立了oracle 的用户,安装了linux的补丁包,对oracle的gcc降级
2.2 查看/etc/sysctl.conf的配置
fs.file-max = 6815744
kernel.msgmni = 2878
kernel.msgmax = 8192
kernel.msgmnb = 65536
kernel.sem = 250 32000 100 142
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4294967295
2.3 修改文件的权限和oracle 密码
[root@vrh3 ~]# mkdir /s01
[root@vrh3 ~]# chown oracle:oinstall /s0
[root@vrh3 ~]# passwd oracle
2.4 修改/etc/hosts下的 配置:
[root@vrh3 yum.repos.d]# vi /etc/hosts
# Do not remove the following line, orvarious programs
# that require network functionality willfail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.1.172 vrh3 vrh3.oracle.com
192.168.1.186 vrh3-vip
192.168.1.187 vrh4 vrh4.oracle.com
192.168.1.188 vrh4-vip
172.168.1.191 vrh3-priv
172.168.1.192 vrh4-priv
阅读(905) | 评论(0) | 转发(0) |