您的位置:首页 > 数据库 > Oracle

linux 5.5 x86_x64下安装oracle 10.2.0.1

2020-01-15 09:51 176 查看
环境:Redhat linux 5.5 x86_x64
        oracle10g release2

创建用户和用户组
groupadd -g 500 oinstall
groupadd -g 501 dba
useradd -u 500 -g 500 -G 501 oracle

修改环境变量
#vi .bash_profile
alias sqlplus='/usr/local/rlwrap/bin/rlwrap sqlplus'
alias rman='/usr/local/rlwrap/bin/rlwrap rman'
export ORACLE_SID=single
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin

创建目录
mkdir -p /u01/app/oracle/product/10.2.0/db_1
mkdir -p /u01/app/oracle/oraInventory
chown -R oracle:oinstall /u01

--安装rpm包
yum install -y binutils && 
yum install -y compat-db &&
yum install -y compat-libstdc++-33 &&
yum install -y compat-libstdc++-296 &&
yum install -y control-center &&
yum install -y gcc &&
yum install -y gcc-c++ &&
yum install -y glibc &&
yum install -y glibc-common &&
yum install -y glibc-devel && 
yum install -y libstdc++ &&
yum install -y libstdc++-devel &&
yum install -y make &&
yum install -y pdksh &&
yum install -y sysstat &&
yum install -y libXp &&
yum install -y openmotif &&
yum install -y libaio &&
yum install -y setarch &&
yum install -y readline-devel &&
yum install -y readlne 


--修改内核参数

vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
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
-----------------------------------

vi /etc/security/limits.conf 

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
---------------------------

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

--------------------------------------
#vi /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

修改linux系统版本号为4.
重启机器安装。

安装rlwrap软件。

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

转载于:http://blog.itpub.net/29249734/viewspace-1786724/

  • 点赞
  • 收藏
  • 分享
  • 文章举报
cozyer1979 发布了0 篇原创文章 · 获赞 0 · 访问量 75 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: