一、操作系统准备
首先virtual box安装加强功能,把操作系统分辨率提高。
mount Oracle Linux 5.7的iso文件作为yum源,我的做法如下:
[root@db media]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sr0 on /media/OL5.7 x86_64 dvd 20110728 type iso9660 (ro,nosuid,nodev,uid=0)
[root@db media]# umount /media/OL5.7\ x86_64\ dvd\ 20110728/
[root@db media]# mkdir /media/iso
[root@db media]# mount /dev/sr0 /media/iso
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@db ~]# vi /etc/yum.repos.d/ol5.repo
[root@db ~]# cat /etc/yum.repos.d/ol5.repo
[OL5]
name=OL 5
enabled=1
gpgcheck=0
baseurl=file:///media/iso/Server/
然后执行yum -y install oracle-validated
二、oracle准备
# /usr/sbin/groupadd -g 501 oinstall
# /usr/sbin/useradd -u 501 -g oinstall oracle
例子:
groupadd -g 200 dba
groupadd -g 201 oinstall
useradd -u 200 -g oinstall -G dba oracle
passwd oracle
创建目录、修改操作系统核心参数,编辑环境变量参数文件.bash_profile等等
vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
vi /etc/sysctl.conf
kernel.SHMMAX= 4294967295
kernel.shmmni = 4096
kernel.shmall = 2097152
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
net.ipv4.tcp_wmem = 262144 262144 262144
net.ipv4.tcp_rmem = 262144 262144 262144
.bash_profile
export ORACLE_SID=db1
export ORACLE_BASE=/u01/app/oracle/
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db
export ORA_CRS_HOME=$ORACLE_BASE/product/10.2.0/crs
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:$PATH
export NLS_LANG="AMERICAN_AMERICA.ZHS16GBK"
umask 022
三、开始安装
解压缩介质之后,可能有操作系统没有认证,可以修改此文件:
./database/install/oraparam.ini
[Certified Versions]
Linux=redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2,redhat-5
./runInstaller
安装就略过了。
首先virtual box安装加强功能,把操作系统分辨率提高。
mount Oracle Linux 5.7的iso文件作为yum源,我的做法如下:
[root@db media]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sr0 on /media/OL5.7 x86_64 dvd 20110728 type iso9660 (ro,nosuid,nodev,uid=0)
[root@db media]# umount /media/OL5.7\ x86_64\ dvd\ 20110728/
[root@db media]# mkdir /media/iso
[root@db media]# mount /dev/sr0 /media/iso
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@db ~]# vi /etc/yum.repos.d/ol5.repo
[root@db ~]# cat /etc/yum.repos.d/ol5.repo
[OL5]
name=OL 5
enabled=1
gpgcheck=0
baseurl=file:///media/iso/Server/
然后执行yum -y install oracle-validated
二、oracle准备
# /usr/sbin/groupadd -g 501 oinstall
# /usr/sbin/useradd -u 501 -g oinstall oracle
例子:
groupadd -g 200 dba
groupadd -g 201 oinstall
useradd -u 200 -g oinstall -G dba oracle
passwd oracle
vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
vi /etc/sysctl.conf
kernel.SHMMAX= 4294967295
kernel.shmmni = 4096
kernel.shmall = 2097152
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
net.ipv4.tcp_wmem = 262144 262144 262144
net.ipv4.tcp_rmem = 262144 262144 262144
.bash_profile
export ORACLE_SID=db1
export ORACLE_BASE=/u01/app/oracle/
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db
export ORA_CRS_HOME=$ORACLE_BASE/product/10.2.0/crs
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:$PATH
export NLS_LANG="AMERICAN_AMERICA.ZHS16GBK"
umask 022
解压缩介质之后,可能有操作系统没有认证,可以修改此文件:
./database/install/oraparam.ini
[Certified Versions]
Linux=redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2,redhat-5
./runInstaller
安装就略过了。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/89196/viewspace-1460208/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/89196/viewspace-1460208/
本文详细介绍了如何使用 VirtualBox 加强功能安装虚拟机,通过 mount 命令挂载 Oracle Linux 5.7 ISO 文件作为 yum 源,安装必要的软件包,并配置操作系统核心参数、环境变量等步骤,最终完成 Oracle Linux 5.7 的安装。同时,还提供了 Oracle 用户和组的创建、目录结构的建立以及关键配置文件的编辑指南。
3万+

被折叠的 条评论
为什么被折叠?



