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

RHEL6.0下Oracle安装

名称 角色 server (rhel6.0) 服务器 1、前置条件的准备 (1)解压压缩文件 [root@localhost ~]# unzip linux_11gr2_
名称
角色
server
(rhel6.0)
服务器
1、前置条件的准备
(1)解压压缩文件
[root@localhost ~]# unzip linux_11gr2_database_1of2.zip  //解压后缀为.zip的文件包
[root@localhost ~]# unzip linux_11gr2_database_2of2.zip
[root@localhost ~]# ls database/    //查看生成的database数据文件
doc install response rpm runinstaller sshsetup stage welcome.html
[root@localhost ~]# mv database /    //移动database文件到根下,因为一会要到程序用户下安装oracle数据库
[root@localhost ~]# chmod 777 /database/       //普通用户没有权限,并给予777权限
(2)对于安装的前置要求
[root@localhost ~]# cat /etc/redhat-release   //系统为rhel6
red hat enterprise linux server release 6.1 (santiago)
[root@localhost ~]# grep memtotal /proc/meminfo   //物理内存不少于1g,虚拟机内存不少于1200mb
memtotal:        1563688 kb
[root@localhost ~]# grep swaptotal /proc/meminfo   //交换分区为物理内存的1-5~2倍,物理内存为2gb-16gb时,交换分区与物理内存大小相等
swaptotal:       2097144 kb
[root@localhost ~]# df -ht /tmp/    //确保/tmp目录所在的分区的空间不少于1gb,oracle 11g 硬盘空间不得少于8g
文件系统    类型      容量  已用  可用 已用%% 挂载点
/dev/sda3     ext4     18g   13g 4.0g 77% /
 [root@localhost ~]# hostname dbserver.benet.com //服务器要有完全合格的主机名
[root@localhost ~]# hostname
dbserver.benet.com
[root@localhost ~]# cat /etc/hosts
192.168.1.1 dbserver dbserver.benet.com
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
2、软件环境要求
挂载光盘
[root@localhost ~]# mount /dev/cdrom /media/
mount: block device /dev/sr0 is write-protected, mounting read-only
编辑yum仓库,修改配置行
[root@localhost ~]# vi /etc/yum.repos.d/rhel-source.repo //编辑yum仓库
[rhel-source]
name=red hat enterprise linux $releasever - $basearch - source
baseurl=file:///media/server //url访问路径
enabled=1    //启动软件仓库
gpgcheck=0 //不验证软件包签名
gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-redhat-release
yum安装软件环境
[root@localhost ~]# yum -y install binutils compat-libstdc++-33 compat-libstdc++ elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers libaio libaio-devel libgcc libcstdc++ libstdc++-devel make sysstat unixodbc unixodbc-devel
rhel6中安装的oracle 11g,对系统中的ksh软件包无法识别,所有只能挂载rhel5,安装此光盘中的pdksh软件包
[root@localhost ~]# ls 
anaconda-ks.cfg     linux_11gr2_database_1of2.zip 公共的  图片  音乐
install.log         linux_11gr2_database_2of2.zip 模板    文档  桌面
install.log.syslog pdksh-5.2.14-36.el5.i386.rpm   视频    下载
[root@localhost ~]# rm -rf linux_11gr2_database_1of2.zip //在安装pdksh时,先卸载llg 已节省内存占用率
[root@localhost ~]# rm -rf linux_11gr2_database_2of2.zip
[root@localhost ~]# rpm -ivh pdksh-5.2.14-36.el5.i386.rpm //挂载rhel5,安装pdksh
安装java-1.6.0软件包,,以支持使用中文的oracle安装界面
[root@localhost ~]# yum -y install java-1.6.0
[root@localhost ~]# cd /usr/lib/jvm/jre-1.6.0/lib/
[root@localhost lib]# mv fontconfig.bfc fontconfig.bfc.origin  //备份默认字体配置
[root@localhost lib]# cp fontconfig.redhat.6.0.bfc fontconfig.bfc   //建立rhel6的字体配置
其它类似信息

推荐信息