您好,欢迎访问一九零五行业门户网

VM虚拟机下在Linux上安装Oracle 11G单实例数据库

vm虚拟机下在linux上安装oracle 11g单实例数据库
vm虚拟机下在linux上安装oracle 11g单实例数据库1.环境及安装前规划:虚拟机及os如下
环境:vmware wordstation ace版 6.0.2
操作系统:oraclelinux-r5-u8-server-i386-dvd 3.2g
操作系统下载地址: 
安装操作系统,这里需要注意的是磁盘空间要预留足够。
我的规划是:
虚拟机分配1024m内存,当然如果主机内存足够,安装时内存设置2048m可以更快。
虚拟机分配一块磁盘,,30g磁盘空间。
/boot 100m ext3
/ 20g ext3
swap 2048m
剩余的近8g空间留着做asm时用。
同时最好安装系统时选择图形模式安装,直接安装好图形模式,比较省事。
2.os的配置:操作系统安装好后,暂时需要配置以下内容
固定ip及dns /etc/sysconfig/network-scripts/ifcfg-eth0
主机名 /etc/sysconfig/network
修改开机运行级别 /etc/inittab
关闭selinux /boot/grub/menu.lst
修改sshd_config,解决ssh超时自动断开问题
login as: root
root@192.168.1.212's password:
last login: wed jun 5 09:11:26 2013
[root@oel-01 ~]# hostname
oel-01
[root@oel-01 ~]# cat/etc/sysconfig/network-scripts/ifcfg-eth0
# advanced micro devices [amd] 79c970[pcnet32 lance]
device=eth0
bootproto=none
hwaddr=00:0c:29:99:8b:c9
onboot=yes
netmask=255.255.255.128
ipaddr=192.168.1.212
gateway=192.168.1.254
type=ethernet
userctl=no
ipv6init=no
peerdns=yes
[root@oel-01 ~]# cat /etc/resolv.conf
nameserver 222.88.88.88
[root@oel-01 ~]# cat /etc/sysconfig/network
networking=yes
networking_ipv6=yes
hostname=oel-01
[root@oel-01 ~]# vi /etc/inittab
id:3:initdefault:
[root@oel-01 ~]# vi /boot/grub/menu.lst
[root@oel-01 ~]# cd /etc/ssh/
[root@oel-01 ssh]# grepclientalive sshd_config
#clientaliveinterval 0
#clientalivecountmax 3
[root@oel-01 ssh]# cp sshd_configsshd_config.bak
[root@oel-01 ssh]# sed -is/#clientaliveinterval 0/clientaliveinterval 60/g sshd_config
[root@oel-01 ssh]# grepclientalive sshd_config
clientaliveinterval 60
#clientalivecountmax 3
[root@oel-01 ssh]# sed -is/#clientalivecountmax 3/clientalivecountmax 10/g sshd_config
[root@oel-01 ssh]# grepclientalive sshd_config
clientaliveinterval 60
clientalivecountmax 10
[root@oel-01 ssh]# service sshd restart
stopping sshd: [ ok ]
starting sshd: [ ok ]
到此应该将系统重启,验证以上各项配置是否生效。如生效,关机,在vmware中做快照
更多详情见请继续阅读下一页的精彩内容:
推荐阅读:
centos 5.6 上安装 oracle 11g r2 单实例数据库详解
oracle vm虚拟机中安装oracle clusterware 11g步骤
其它类似信息

推荐信息