Red Hat Enterprise Linux 7.4上安装Oracle 11.2.0.4
1. 配置Yum源及关闭SeLinux
[root@localhost ~]# mkdir /media/rhel
[root@localhost ~]# mount /dev/cdrom /media/rhel
mount: /dev/sr0 is write-protected, mounting read-only
[root@localhost ~]# vi /etc/yum.repos.d/iso.repo [iso]
name=iso
baseurl=file:///media/rhel
enabled=
gpgcheck=
[root@localhost ~]# vi /etc/selinux/config
# modify
SELINUX=disabled
2. 安装桌面环境(如果未安装)
[root@localhost ~]# yum -y group install "Server with GUI"
3. 安装软件包
[root@localhost ~]# yum -y install binutils binutils-devel compat-libcap1 compat-libstdc++- compat-libstdc++-.i686 ksh elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel glibc-headers gcc gcc-c++ libaio libaio.i686 libaio-devel libaio-devel.i686 libgcc libstdc++ libstdc++.i686 libstdc++-devel libstdc++-devel.i686 make sysstat unixODBC unixODBC-devel libXp libXp-devel libXpm-devel telnet
4. 建立用户
[root@localhost ~]# groupadd oinstall
[root@localhost ~]# groupadd dba
[root@localhost ~]# useradd -g oinstall -G dba oracle
[root@localhost ~]# passwd oracle
[root@localhost ~]# vi /etc/profile #在末尾加入
if [ \$USER = "oracle" ];then
if [ \$SHELL = "/bin/ksh" ];then
ulimit -p
ulimit -n
else
ulimit -u -n
fi
umask
fi
5. 建立文件夹
[root@localhost ~]# mkdir -p /u01/oracle
[root@localhost ~]# mkdir -p /u01/oracle/11.2./db_1
[root@localhost ~]# chown -R oracle:oinstall /u01/oracle/
[root@localhost ~]# chown -R oracle:oinstall /u01/oracle/11.2./db_1/
[root@localhost ~]# chmod -R /u01/oracle/
[root@localhost ~]# chmod -R /u01/oracle/11.2./db_1/
6. 配置系统核心参数,Oracle用户资源限制,Oracle用户环境变量
[root@localhost ~]# MEMTOTAL=$(free -b | sed -n '2p' | awk '{print $2}')
[root@localhost ~]# SHMMAX=$(expr $MEMTOTAL / )
[root@localhost ~]# SHMMNI=
[root@localhost ~]# PAGESIZE=$(getconf PAGE_SIZE)
[root@localhost ~]# cat >> /etc/sysctl.conf << EOF
fs.aio-max-nr =
fs.file-max =
kernel.shmmax = $SHMMAX
kernel.shmall = $(expr \( $SHMMAX / $PAGESIZE \) \* \( $SHMMNI / \))
kernel.shmmni = $SHMMNI
kernel.sem =
net.ipv4.ip_local_port_range =
net.core.rmem_default =
net.core.rmem_max =
net.core.wmem_default =
net.core.wmem_max =
EOF
[root@localhost ~]# sysctl -p
[root@localhost ~]# vi /etc/security/limits.conf
# add to the end
oracle soft nproc
oracle hard nproc
oracle soft nofile
oracle hard nofile
oracle soft stack
oracle hard stack
[root@localhost ~]# vi /home/oracle/.bash_profile
# add to the end
export ORACLE_SID=sdzy;
export ORACLE_BASE=/u01/oracle;
export ORACLE_HOME=/u01/oracle/11.2./db_1;
export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
[root@localhost ~]# reboot
7. 编辑主机名
[root@localhost ~]# vi /etc/hosts
# add
192.168.10.11 oracle
[root@localhost ~]# vi /etc/hostname
# modify
oracle
[root@localhost ~]# vi /etc/sysconfig/network
8. 解压安装文件
[root@localhost ~]# cd /opt
[root@localhost opt]# unzip p13390677_112040_Linux-x86-64_1of7.zip ;unzip p13390677_112040_Linux-x86-64_2of7.zip
9. 开始安装
[oracle@localhost ~]$ cd $ORACLE_HOME/sysman/lib
[oracle@localhost lib]$ cp ins_emagent.mk ins_emagent.mk.bak
[oracle@localhost lib]$ vi ins_emagent.mk
查找$(MK_EMAGENT_NMECTL)
更改为$(MK_EMAGENT_NMECTL) -lnnz11
[root@localhost rhel]# xhost +
access control disabled, clients can connect from any host
[root@localhost rhel]# su - oracle
[oracle@localhost ~]$ export DISPLAY=10.1.105.52:0.0 #此处IP请改为客户端的IP
[oracle@localhost ~]$ cd /opt/database/
[oracle@localhost database]$ ./runInstaller
检查发现少了一个软件包,且在光盘中搜不到,需要网上下载后手动安装。
[root@localhost opt]# rpm -ivh compat-libstdc++--3.2.-.el7.x86_64.rpm
[root@localhost opt]# /u01/oracle/oraInventory/orainstRoot.sh
[root@localhost opt]# /u01/oracle/11.2./db_1/root.sh
至此安装完成!
Red Hat Enterprise Linux 7.4上安装Oracle 11.2.0.4的更多相关文章
- 在Red Hat Enterprise Linux 7.3上安装SQL Server 2017
必要条件: 1.在此快速安装过程中,您需要安装SQL Server 2017或SQL Server 2019上Red Hat Enterprise Linux (RHEL) 7.3 +.然后使用sql ...
- Red Hat Enterprise Linux Server(RHEL) yum安装软件时This system is not registered with RHN. RHN support will be disabled. 的解决方法(转)
新安装了redhat6.5.安装后,登录系统,使用yum update 更新系统.提示: This system is not registered to Red Hat Subscription M ...
- Red Hat Enterprise Linux Server 6.5安装GCC 4.9.2
现在很多程序员都应用GCC,怎样才能更好的应用GCC.目前,GCC可以用来编译C/C++.FORTRAN.JAVA.OBJC.ADA等语言的程序,可根据需要选择安装支持的语言.本文以在RedHat L ...
- Red Hat Enterprise Linux / CentOS 7 yum安装zabbix4.0
添加Zabbix存储库安装存储库配置包. 该软件包包含yum(软件包管理器)配置文件. rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_6 ...
- Red Hat Enterprise Linux AS4, C++ OCCI connect Oracle 9i
前提是已经安装好Oracle 9i. 1. 下载对应的ORACLE client安装. http://www.oracle.com/technetwork/database/features/inst ...
- Deploy Oracle 10.2.0.5 DataGuard on Red Hat Enterprise Linux 6.4
系统:Red Hat Enterprise Linux 6.4 数据库:Oracle 10.2.0.5.0 Patch Set 4 主机:10dg1 192.168.1.91 10dg2192.168 ...
- Red Hat Enterprise Linux 6.6安装体验
Red Hat Enterprise Linux 6.6的安装首界面有五个选项,这跟以前的Red Hat Enterprise Linux 5.x的安装界面是有一些区别的. 安装或者升级现有系统( ...
- Red Hat Enterprise Linux 6 “桌面”、“工作站”、“服务器” 版本差异比较
Red Hat Enterprise Linux 6,共有三个版本.通过安装发现,所谓的"桌面"."工作站"."服务器"这三个版本的区别就在 ...
- Red Hat Enterprise Linux 5 64-bit chinese language support config steps
Red Hat Enterprise Linux 5 64-bit 系统下安装中文语言支持方法 测试环境:Windows2012+Vmvare9.0+Red Hat Enterprise Linux ...
随机推荐
- Javascript 跨域访问解决方案 总结
在客户端编程语言中,如javascript和ActionScript,同源策略是一个很重要的安全理念,它在保证数据的安全性方面有着重要的意义.同 源策略规定跨域之间的脚本是隔离的,一个域的脚本不能访问 ...
- css 让背景图片不停旋转
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- Kubernetes 部署kafka ACL(单机版)
一.概述 在Kafka0.9版本之前,Kafka集群时没有安全机制的.Kafka Client应用可以通过连接Zookeeper地址,例如zk1:2181:zk2:2181,zk3:2181等.来获取 ...
- mac上Homebrew安装以及python安装
Homebrew homebrew是一款Mac OS平台下的软件包管理工具,拥有安装.卸载.更新.查看.搜索等很多实用的功能. Homebrew常用命令 查看brew的帮助:brew –help 安装 ...
- Java流(Stream)、Scanner类
读取控制台输入 Java 的控制台输入由 System.in 完成. 为了获得一个绑定到控制台的字符流,你可以把 System.in 包装在一个 BufferedReader 对象中来创建一个字符流. ...
- C# TabControl 隐藏标签头(TabControl Hide Head)
TabControl控件,有时候需要动态显示一个或者多个标签页,如果只是显示一个标签页的时候不想显示标签头,所以有可能隐藏头部的需求. 如下代码可以实现 public Form1() { Initia ...
- progressDialog和子线程模拟显示拷贝进度
package com.example.wang.myapplication; import android.app.ProgressDialog; import android.os.Bundle; ...
- CCF CSP 201312-3 最大的矩形
CCF计算机职业资格认证考试题解系列文章为meelo原创,请务必以链接形式注明本文地址 CCF CSP 201312-3 最大的矩形 问题描述 在横轴上放了n个相邻的矩形,每个矩形的宽度是1,而第i( ...
- mycat 配置文件详解
server.xml 包含mycat的系统配置信息,它有两个标签,分别是user和system,掌握system标签的各项配置属性是mycat调优的关键. <?xml version=" ...
- Redis(二)CentOS7安装Redis4.0.10与集群搭建
一 Redis单机安装 1 Redis下载安装 1.1 检查依赖环境(Redis是C语言开发,编译依赖gcc环境) [root@node21 redis-]$ gcc -v -bash: gcc: c ...