Redhate5.4下Oracle 11g安装
1.如果是重新安裝系統,建議在定制時:
Desktop Environments選上GNOME Desktop Environment和KDE
Application選上Graphical Internet選上 Text-base InternetOffice/Productivity、Engineering and Scientific
Development選上Development Tools(全選)
Server選上DNS NAME Server(全選)、Web Server(全選)、Server Configuration Tools(全選)、 Windows File Server(全選)和Printing Support
Base System選上Administrator Tools
2. 在linux檢查必需的包
rpm -q binutils compat-libstdc++-33? elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc gcc-c++ libaio-devel libaio libstdc++-devel make sysstat unixODBC unixODBC-devel
3.修改內核參數vim /sbin/sysctl
kernel.shmmax = 536870912(修改)
????? kernel.shmall = 2097152fs.file-max =6 5536(修改)
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 4194304
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 262144
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
?
4.創建用戶環境和修改文件夾權限
groupadd oinstall? 創建oinstall組
groupaadd] dba?? 創建dba組
useradd -g ointsall -G dba oracle 創建主組為oinstall附屬組為dba的用戶oracle
passwd oracle 更改密碼
mkdir -p /opt/oracle/orcl
mkdir -p /opt/oraInventory?????????????????????
chown -R oracle:oinstall? /opt/oracle
chown -R oracle:oinstall? /opt/oraInventory chomod -R 775 oracle
chomod -R 775? /opt/oraInventory
$su oracle
vim ~/.bash_profile
export PATH
export ORACLE_BASE=/opt/orcl
export ORACLE_HOME=$ORACLE_BASE/oracle
export ORACLE_SID=orcl
export PATH=$ORACLE_HOME/bin/:$PATH
#export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib??? (這個不知有什么用,注釋掉未見有影響)
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib (這個不知有什么用,注釋掉未見有影響)
5.vim /etc/security/limits.conf,添加
oracle? soft? nproc? 2047
oracle? hard? nproc? 16384
oracle? soft? nproc? 1024
oracle? hard? nproc? 65535
vim /etc/pam.d/login,添加
session??? required???? /lib/security/pam_limits.so
session??? required???? pam_limits.so
vim /etc/profile (BSHELL)添加
#oracle
if [ $USER = "oracle" ];then
if [ $SHELL = "/bin/ksh" ];then
? ulimit -p 16384
? ulimit -n 65535
else
? ulimit -u 16384 -n 65535
fi
umask 022
fi
6.運行安裝文件內的runInstall進行安裝,最后使用root用戶運行兩個sh腳本
?
?
轉載于:https://www.cnblogs.com/leungtse/archive/2013/04/02/Oracle11g.html
總結
以上是生活随笔為你收集整理的Redhate5.4下Oracle 11g安装的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Loader的load方法和loadBy
- 下一篇: 数据库——startup,startup