Redhat Linux安装Oracle 11g
** yum的宗旨是自动化地升级,安装/移除rpm包,收集rpm包的相关信息,检查依赖性并自动提示用户解决。
yum的关键之处是要有可靠的repository,顾名思义,这是软件的仓库,它可以是http或ftp站点,也可以是本地软件池,但必须包含rpm的header, header包括了rpm包的各种信息,包括描述,功能,提供的文件,依赖性等.正是收集了这些 header并加以分析,才能自动化地完成余下的任务。**
-
mount iso,unzip这部分略,基础。。。
- 配置本地yum源
-
创建本地目录
cd /mnt mkdir rhel/RHEL
-
将系统文件拷贝到此目录中
-
yum源相关配置
cat /etc/yum.repos.d/rhel-source.repo
[root@zhizi ~]# vi /etc/yum.repos.d/rhel-source.repo
[root@zhizi ~]# cat /etc/yum.repos.d/rhel-source.repo
[rhel-source]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=ftp:///mnt/rhel/RHEL/
enabled=1
gpgcheck=0
[rhel-source-beta]
name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source
baseurl=ftp:///mnt/rhel/RHEL/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
-
编辑yum配置文件
vi rhel-source.repo
-
Oracle安装中必须安装的软件包
- binutils
- compat-db
- compat-libstdc++
- control-center-
- gcc
- gcc-c++
- glibc
- glibc-common
- libstdc++
- libstdc+±devel
- libXp
- make
- ksh
- sysstat
- setarch
-
安装软件包
yum -y install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc gilbc-common glibc-devel gcc gcc-c++ libaio-devel libaio libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel pdksh ksh libaio.i686 glibc.i686 compat-libstdc++-33.i686 libaio-devel.i686 libgcc.i686 libstdc++.i686 unixODBC.i686 unixODBC-devel.i686
-
创建用户和组
groupadd -g 5001 oinstall groupadd -g 5002 dba groupadd -g 5003 oper groupadd -g 504 asmadmin groupadd -g 505 asmoper groupadd -g 506 asmdba useradd -m -u 600 -g oinstall -G dba,asmdba,oper orale useradd -m -u 601 -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid
-
-
配置 limits.conf文件
cat /etc/security/limits.conf
oracle soft nofile 1024 oracle hard nofile 25000 orcle soft nproc 2047 oracle hard nproc 32768
-
修改内核变量文件
vi /etc/sysctl.conf # Controls the default maxmimum size of a mesage queue kernel.msgmnb = 65536 # Controls the maximum size of a message, in bytes kernel.msgmax = 65536 # Controls the maximum shared segment size, in bytes kernel.shmmax =4294967295 # Controls the maximum number of shared memory segments, in pages kernel.shmall = 2097152 kernel.sem=25032000100128 fs.aio-max-nr=1048576 fsfile-max=6815744 net.ipv4.ip_local_port_range=9000 65500 net.core.rmem_default=262144 net.core.wmem_default=262144 net.core.wmem_max=1048576 net.core.rmem_max=4194304
- sysctl -p 生效
- 修改内核变量配置文件
将limits.conf加入到登陆验证模块
vi /etc/pam.d/login
session required pam_limits.so
环境变量文件
vi /etc/profile
if[$USER="oracle"]||[$USER="grid"];then
if[$SHELL="/bin/ksh"];then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
后面的自己百度吧~~
:wq!