ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 【安装】RedHat 5.1 部署Oracle 10.2.0.1

【安装】RedHat 5.1 部署Oracle 10.2.0.1

原创 Linux操作系统 作者:secooler 时间:2009-06-24 14:19:44 0 删除 编辑
# rpm -q gcc make binutils libXp-1 openmotif setarch compat-db compat-gcc compat-gcc-c++ compat-libstdc++ compat-libstdc++-devel

gcc-4.1.2-14.el5
make-3.81-1.1
binutils-2.17.50.0.6-5.el5
package libXp-1 is not installed
package openmotif is not installed
setarch-2.0-1.1
package compat-db is not installed
package compat-gcc is not installed
package compat-gcc-c++ is not installed
package compat-libstdc++ is not installed
package compat-libstdc++-devel is not installed


# cd /media/RHEL_5.1/x86_64/DVD/Server/

# rpm -ivh setarch-2*
# rpm -ivh make-3*
# rpm -ivh glibc-2*
# rpm -ivh libaio-0*
# rpm -ivh compat-libstdc++-33-3*
# rpm -ivh compat-gcc-34-3*
# rpm -ivh compat-gcc-34-c++-3*
# rpm -ivh libXp-1*
# rpm -ivh openmotif-2*
# rpm -ivh compat-db-4*

------------------------------------------------------------------------
# vi /etc/sysctl.conf
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
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

# /sbin/sysctl -p

------------------------------------------------------------------------
# vi /etc/security/limits.conf
*     soft      nproc          2047
*     hard      nproc         16384
*     soft      nofile         1024
*     hard      nofile        65536

------------------------------------------------------------------------
# vi /etc/pam.d/login
session    required     /lib/security/pam_limits.so

------------------------------------------------------------------------
# vi /etc/selinux/config
SELINUX=disabled
#SELINUXTYPE=targeted(注销该行)
SELINUXTYPE=disabled

------------------------------------------------------------------------
# groupadd oinstall
# groupadd dba
# groupadd oper
# useradd -m -g oinstall -G dba oracle
# passwd oracle
输入密码:oracle

------------------------------------------------------------------------
# mkdir -p /oracle/app/oracle/product/10.2.0/db_1
# chown -R oracle:oinstall /oracle
# chmod -R 775 /oracle

------------------------------------------------------------------------
# vi /etc/redhat-release
点击insert后,把release 5 (Tikanga) 替换成 release 4 (Tikanga)
Oracle启动后需要重新修改linux版本为Redhat 5

------------------------------------------------------------------------
访问控制列表(逐一输入)
# export DISPLAY=:0.0
# xhost local:oracle


------------------------------------------------------------------------
# gunzip 10201_database_linux_x86_64.cpio.gz
# cpio -idmv < 10201_database_linux_x86_64.cpio

------------------------------------------------------------------------
# su - oracle
# vi ~/.bash_profile
# Oracle Settings
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/oracle/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=orcl
export ORACLE_TERM=xterm
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
#LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL
if [ $USER = "oracle" ]; then
  if [ $SHELL = "/bin/ksh" ]; then
    ulimit -p 16384
    ulimit -n 65536
  else
    ulimit -u 16384 -n 65536
  fi
fi

------------------------------------------------------------------------
VNC中进行如下操作
# su - oracle
$ cd oracle
$ ./runInstaller.sh
选择高级安装Advanced Installation
选择Custom安装
选定perform. type configuration
Custom Database
Specify Flash recovery Area
注意字符集:
Character Sets: WE8ISO8859P1-ISO 8859-1 West European
National Character set: AL16UTF16-Unicode UTF-16 Universal character set

------------------------------------------------------------------------
vi /etc/oratab 直接把orcl:/oracle/app/oracle/product/10.2.0/db 1:N改为Y

------------------------------------------------------------------------
如果配置开机启动,可使用/oracle/app/oracle/product/10.2.0/db_1/bin/目录下的启动停止文件
启动:
#./dbstart
停止:
#./dbshut

-- The End --

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

请登录后发表评论 登录
全部评论
Oracle ACE 总监,阿里云MVP,北京大学理学硕士,恩墨学院创始人,教育专家,中国区 Cloudera 首位官方授权大数据讲师,金牌培训专家,BDA大数据联盟创始人,OCM联盟创始人,ACCUG创始人、ACOUG核心专家,Blogger。

注册时间:2008-03-16

  • 博文量
    797
  • 访问量
    7978541