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
[[email protected] ~]# vi /etc/yum.repos.d/rhel-source.repo
[[email protected] ~]# 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!