绑定完请刷新页面
取消
刷新

分享好友

×
取消 复制
【安装】RedHat 5.1 部署Oracle 10.2.0.1
2019-12-30 18:20:03
# 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 --

分享好友

分享这个小栈给你的朋友们,一起进步吧。

OCM联盟
创建时间:2019-12-27 14:04:54
OCM联盟(OCMU – Oracle Certified Master Union)是一群有着共同理想,共同志向的DBA的家。 ⚠️该小栈仅限ocm成员入驻!审核制! Oracle Certified Master (OCM) -Oracle认证大师,是Oracle认证的别,是对数据库从业人员的技术、知识和操作技能的别的认可。Oracle OCM是解决困难的技术难题和复杂的系统故障的佳Oracle专家人选,也是IT行业衡量IT专家和经理人的高专业程度及经验的基准。
展开
订阅须知

• 所有用户可根据关注领域订阅专区或所有专区

• 付费订阅:虚拟交易,一经交易不退款;若特殊情况,可3日内客服咨询

• 专区发布评论属默认订阅所评论专区(除付费小栈外)

栈主、嘉宾

查看更多
  • 侯圣文@secooler
    栈主

小栈成员

查看更多
  • gaokeke123
  • ?
  • 山中老狐狸
  • 飘絮絮絮丶
戳我,来吐槽~