RHEL 6.5安装oracle11gR2
admin
2023-04-28 10:03:03
0

RHEL 6.5安装oracle11gR2

1、安装前准备

OS安装,RHEL6.5默认安装即可,关闭iptables,关闭selinux,修改本地hosts文件

~]# service iptables stop   
~]# chkconfig --del iptables
~]# vim /etc/selinux/config #配置重启后永久有效
SELINUX=disabled
~]# vim /etc/hosts

制作本地yum仓库,oracle11gR2所依赖包安装

~]# cd /
/]# mkdir local.repo    
~]# cd /media/RHEL_6.5\ x86_64\ Disc\ 1/
cp -rf * /localrepo/

~]# vim /etc/yum.repos.d/localrepo
[localrepo]
name=localrepo
baseurl=file:///localrepo
gpgcheck=0
enabled=1
~]# yum repolist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
localrepo                                                          | 3.9 kB     00:00 ... 
localrepo/primary_db                                               | 3.1 MB     00:00 ... 
repo id                                   repo name                                 status
localrepo                                 localrepo                                 3,690
repolist: 3,690

安装所依赖包:

yum install binutils-2.* compat-libstdc++-33* elfutils-libelf-0.* elfutils-libelf-devel-* gcc-4.* gcc-c++-4.* glibc-2.* glibc-common-2.* glibc-devel-2.* glibc-headers-2.* ksh-2* libaio-0.* libaio-devel-0.* libgcc-4.* libstdc++-4.* libstdc++-devel-4.* make-3.* sysstat-7.* unixODBC-2.* unixODBC-devel-2.* pdksh* -y

注意:还有一个包需要单独安装
rpm -ivh pdksh-5.2.14-30.x86_64.rpm 
warning: pdksh-5.2.14-30.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 73307de6: NOKEY
error: Failed dependencies:
pdksh conflicts with ksh-20120801-10.el6.x86_64


先要对ksh-20120801-10.el6.x86_64进行卸载处理
rpm -e ksh-20120801-10.el6.x86_64

rpm -ivh pdksh-5.2.14-30.x86_64.rpm
warning: pdksh-5.2.14-30.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 73307de6: NOKEY
Preparing...                ########################################### [100%]
   1:pdksh                  ########################################### [100%]

创建用户并修改环境变量

~]# groupadd -g 1000 oinstall
~]# groupadd -g 1100 dba
~]# useradd -m -g oinstall -G dba -u 1200 oracle
~]# id oracle
uid=1200(oracle) gid=1000(oinstall) groups=1000(oinstall),1100(dba)
~]# passwd oracle

[oracle@~]$ vim .bash_profile 

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
export ORACLE_SID=*****
export ORACLE_HOME=/home/u01/app/oracle/product/11.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
if [ $USER = "oracle" ]; then
  if [ $SHELL = "/bin/ksh" ]; then
    ulimit -p 16384
    ulimit -n 65536
  else
  ulimit -u 16384 -n 65536
  fi
fi
export PATH

创建目录

~]# mkdir -p /home/u01/app/oracle/product/11.2.0/db_1
~]# chown -R oracle:oinstall /home/u01

修改系统参数配置

~]# vim /etc/sysctl.conf    #添加如下

# Controls the maximum size of a message, in bytes
kernel.msgmax = 65536

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 32000000000

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 8388608
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 = 4194304
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 262144
kernel.msgmnb = 65536
kernel.msgmax = 65536
fs.aio-max-nr = 262144

sysctl -p

~]# vim /etc/security/limits.conf   #添加如下
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536


~]# vim /etc/pam.d/login    #添加如下
session required pam_limits.so

~]# vim /etc/security/limits.d/90-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.

*          -    nproc     16384
root       soft    nproc     unlimited

oracle11204软件安装

授权oracle权限
tmp]# chmod 777 -R oracle/
[root tmp]# chown -R oracle.oinstall oracle/    

进入oracle用户进行解压
oracle]$ unzip p13390677_112040_Linux-x86-64_1of7.zip 
oracle]$ unzip p13390677_112040_Linux-x86-64_2of7.zip

root用户下进行桌面共享xhost+
进入oracle用户进行安装
oracle]# cd /tmp/oracle/database/
database]# ./runInstaller

注意安装路径要和之前配置的环境变量路径一致,安装时选择仅安装software,安装验证时报的swap空间错误可以忽略
后续建库可用通过dbca完成,配置监听通过netca

RHEL 6.5安装oracle11gR2

RHEL 6.5安装oracle11gR2

RHEL 6.5安装oracle11gR2

RHEL 6.5安装oracle11gR2

RHEL 6.5安装oracle11gR2

RHEL 6.5安装oracle11gR2

RHEL 6.5安装oracle11gR2

RHEL 6.5安装oracle11gR2

RHEL 6.5安装oracle11gR2

RHEL 6.5安装oracle11gR2

RHEL 6.5安装oracle11gR2

RHEL 6.5安装oracle11gR2

RHEL 6.5安装oracle11gR2

RHEL 6.5安装oracle11gR2

RHEL 6.5安装oracle11gR2


相关内容

热门资讯

从“看山看水”到“乐享山水”—... “十五五”首个“五一”假期,文旅市场热力迸发、全线升温。从“看山看水”到“乐享山水”,从品文化到入生...
工作时间减少1%,肥胖率或下降... 澎湃新闻记者 季敬杰合理调整生活与工作的平衡可能会给健康带来意想不到的好处。近日一项研究指出,年度工...
美媒:中美元首会晤或讨论AI护... 据凤凰卫视援引美国媒体报道,美方希望借中美领导人会晤的机会,开启有关人工智能安全与管控的对话,并推动...
卫生间水管布置图尺寸高度 卫生间的水管布置可能比较复杂一些,因为卫生间的管道比较多。比如有热水器的通水管道,有座便器的冲水管道...
电脑尺寸在哪里看 电脑尺寸在哪里看1、可以选择手工测量法来测量电脑尺寸,这时测量一下屏幕对角线,因为显示面积都会小于显...
电脑机箱尺寸标准 常规的机箱一般是立体式,或桌面式,再就是横式。电脑机箱尺寸,目前市面上根据不同的规格有不同的方案。 ...
斯塔默发声:不会辞职 【环球时报驻英国特约记者 纪双城 环球时报特约记者 甄翔 于文】执政党工党在英国地方选举中遭遇“历史...
抽油烟机管道有异味怎么办 抽油烟机是厨房中不可或缺的设备,它能有效地排出油烟,保证室内空气的清新。但是,长时间使用后,抽油烟机...
抽油烟机管道有油垢怎么办 抽油烟机管道是我们家庭生活中必不可少的设备,但长时间的使用会导致管道内部积累大量的油垢,如不及时清理...
沈伯洋与台北市长格局有落差,叶... 海峡导报综合报道 民进党将正式拍板征召民代沈伯洋出战台北市长,并发布采访通知,预计在13日下午举行台...