当前位置:数据库 > Oracle >>

yum -y install oracle-rdbms-server-11gR2-preinstall

yum -y install oracle-rdbms-server-11gR2-preinstall
 
该方法oel6.4上实验通过
 
#!/etc/bash

 

 
#1,加载DVD安装盘:注意光驱位置 可用df -lh 查看 我的虚拟机中为 /dev/sr0 
mkdir -p /media/disk
mount /dev/sr0 /media/disk
#mount -t iso9660 -o loop /tmp/image.iso /media/disk 
#可加入 /etc/rc.local

 

 
#2. 修改
 /usr/lib/python2.6/site-packages/yum/yumRepo.py
#   remote = url + '/' + relative 为 remote = "file:///media/disk/Server/" + '/' + relative
cd /usr/lib/python2.6/site-packages/yum/
sed -i 's/remote.*relative$/remote\ =\ "file:\/\/\/media\/disk\/Server\/"\ +\ relative/g' yumRepo.py

 

 
#3.修改
/etc/yum.repos.d/public-yum-ol6.repo
cd /etc/yum.repos.d/
sed -i 's/baseurl.*$/baseurl=file:\/\/\/media\/disk\/Server\//g' public-yum-ol6.repo
sed -i 's/enabled.*$/enabled=1/g' public-yum-ol6.repo
sed -i 's/gpgcheck.*$/gpgcheck=0/g' public-yum-ol6.repo
cat /etc/yum.repos.d/public-yum-ol6.repo

 

 
#4.打补丁
yum -y install oracle-rdbms-server-11gR2-preinstall

 

 
#遇到错误 Error: failure: repodata/primary.xml.gz
# 使用其中命令
#yum clean all
#yum makecache
#yum update

 

#解决
 
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,