ITPub博客

首页 > 数据库 > Oracle > 安裝Oracle10G在RHEL5.11

安裝Oracle10G在RHEL5.11

原创 Oracle 作者:mvajeff 时间:2015-02-13 12:24:33 0 删除 编辑
第一步:配置Yum源
rpm -qa|grep pirut | xargs rpm -e
rpm -qa|grep subscription-manager-firstboot | xargs rpm -e
rpm -qa|grep rhn | xargs rpm -e
rpm -qa|grep subscription-manager|xargs rpm -e
rpm -qa|grep yum|xargs rpm -e

wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-6.el5.noarch.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/pirut-1.3.28-20.el5.centos.noarch.rpm

rpm -ivh python-iniparse-0.2.3-6.el5.noarch.rpm
rpm -ivh yum*
rpm -ivh pirut-1.3.28-20.el5.centos.noarch.rpm

cd /etc/yum.repos.d/  將原有的repo文件刪除
vim CentOS-Base.repo

# CentOS-Base.repo ###################begin#################################  
#  
# The mirror system uses the connecting IP address of the client and the  
# update status of each mirror to pick mirrors that are updated to and  
# geographically close to the client. You should use this for CentOS updates  
#  
# unless you are manually picking other mirrors.  
#  
# If the mirrorlist= does not work for you, as a fall back you can try the  
# remarked out baseurl= line instead.  
#  
[base]  
name=CentOS-5 – Base  
#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=os  
baseurl=http://mirror.centos.org/centos/5/os/$basearch/  
gpgcheck=1  
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  
#released updates  
[updates]  
name=CentOS-5 – Updates  
#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=updates  
baseurl=http://mirror.centos.org/centos/5/updates/$basearch/  
gpgcheck=1  
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  
#additional packages that may be useful  
[extras]  
name=CentOS-5 – Extras  
#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=extras  
baseurl=http://mirror.centos.org/centos/5/extras/$basearch/  
gpgcheck=1  
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  
#additional packages that extend functionality of existing packages  
[centosplus]  
name=CentOS-5 – Plus  
#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=centosplus  
baseurl=http://mirror.centos.org/centos/5/centosplus/$basearch/  
gpgcheck=1  
enabled=0  
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  
#contrib – packages by Centos Users  
[contrib]  
name=CentOS-5 – Contrib  
#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=contrib  
baseurl=http://mirror.centos.org/centos/5/contrib/$basearch/  
gpgcheck=1  
enabled=0   
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  
##########################end########################################  

wget http://mirror.centos.org/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5
cp RPM-GPG-KEY-CentOS-5 /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

yum clean all
yum makecache

第二步:安裝所需軟件包
yum install binutils compat-db control-center gcc gcc-c++ glibc glibc-common libstdc++ libstdc++-devel make pdksh sysstat xscreensaver glibc* gcc* make* compat-db* libstdc* libXp* libXtst* compat-libstdc++* libgomp kernel-headers glibc-headers libstdc++ sysstat glibc-devel libaio-devel gcc gcc-c++ elfutils-libelf-devel-static elfutils-libelf-devel libtermcap-devel readline-devel unixODBC unixODBC-devel glibc-devel libaio-devel compat-db compat-gcc-34 compat-gcc-34-c++ gdb libXp libstdc++ compat-libstdc++-33

第三步:建立用戶及組
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/useradd -g oinstall -G dba oracle
/usr/sbin/usermod -g oinstall -G dba oracle
passwd oracle

第四步:修改系統參數
vim /etc/sysctl.conf
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144

sysctl -p

vim /etc/security/limits.conf
oracle           soft    nproc   2047
oracle           hard    nproc   16384
oracle           soft    nofile  1024
oracle           hard    nofile  65536

vim /etc/pam.d/login
session    required     pam_limits.so

vim /etc/profile
if [ $USER = "oracle" ]; then
        if [ $SHELL = "/bin/ksh" ]; then
              ulimit -p 16384
              ulimit -n 65536
        else
              ulimit -u 16384 -n 65536
        fi
fi

mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01
chmod -R 775 /u01/app/oracle
mkdir /u01/tmp
chmod a+wr /u01/tmp
cp /etc/redhat-release /etc/redhat-release.original
echo "redhat-4" > /etc/redhat-release

su - oracle
vi .bash_profile     
export DISPLAY=10.0.10.119:0.0
umask 022
TEMP=/u01/tmp
TMPDIR=/u01/tmp
export TEMP TMPDIR


最後,開始安裝
gunzip 10201_database_linux_x86_64.cpio.gz
cpio -idmv < 10201_database_linux_x86_64.cpio
./runInstaller


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30122793/viewspace-1435095/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2015-01-30

  • 博文量
    1
  • 访问量
    1649